Add {0, NULL} to the isup_Pass_on_not_possible_indicator_vals and
[obnox/wireshark/wip.git] / packet-msnip.c
index 0f0829255427a3c9838f71cea3709c6fc4d48fcc..40d0dcd22272aade62633551682c85a42724b1a4 100644 (file)
@@ -1,22 +1,22 @@
 /* packet-msnip.c   2001 Ronnie Sahlberg <See AUTHORS for email>
  * Routines for IGMP/MSNIP packet disassembly
  *
- * $Id: packet-msnip.c,v 1.7 2002/08/02 23:35:54 jmayer Exp $
+ * $Id: packet-msnip.c,v 1.9 2003/11/16 23:17:20 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
  * Copyright 1998 Gerald Combs
- * 
+ *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
  * as published by the Free Software Foundation; either version 2
  * of the License, or (at your option) any later version.
- * 
+ *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 
                        MSNIP
-       code                    
+       code
 
        0x23            x
-       0x24            x       
+       0x24            x
        0x25            x
 
        MSNIP " Multicast Source Notification of Interest Protocol
@@ -104,7 +104,7 @@ dissect_msnip_rmr(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, in
                guint32 maddr;
                int old_offset = offset;
 
-               item = proto_tree_add_item(parent_tree, hf_groups, 
+               item = proto_tree_add_item(parent_tree, hf_groups,
                                tvb, offset, -1, FALSE);
                tree = proto_item_add_subtree(item, ett_groups);
 
@@ -124,7 +124,7 @@ dissect_msnip_rmr(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, in
 
                if (item) {
                        proto_item_set_text(item,"Group: %s %s",
-                               ip_to_str((guint8 *)&maddr), 
+                               ip_to_str((guint8 *)&maddr),
                                val_to_str(rec_type, msnip_rec_types,
                                        "Unknown Type:0x%02x"));
 
@@ -183,7 +183,7 @@ dissect_msnip_gm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, int
                guint8 masklen;
                int old_offset = offset;
 
-               item = proto_tree_add_item(parent_tree, hf_groups, 
+               item = proto_tree_add_item(parent_tree, hf_groups,
                                tvb, offset, -1, FALSE);
                tree = proto_item_add_subtree(item, ett_groups);
 
@@ -195,7 +195,7 @@ dissect_msnip_gm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, int
 
                /* mask length */
                masklen = tvb_get_guint8(tvb, offset);
-               proto_tree_add_uint(tree, hf_mask, tvb, 
+               proto_tree_add_uint(tree, hf_mask, tvb,
                        offset, 1, masklen);
                offset += 1;
 
@@ -209,7 +209,7 @@ dissect_msnip_gm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, int
                        proto_item_set_len(item, offset-old_offset);
                }
        }
-       
+
        return offset;
 }
 
@@ -222,7 +222,7 @@ dissect_msnip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, int of
        proto_item *item;
        guint8 type;
 
-       if (!proto_is_protocol_enabled(proto_msnip)) {
+       if (!proto_is_protocol_enabled(find_protocol_by_id(proto_msnip))) {
                /* we are not enabled, skip entire packet to be nice
                   to the igmp layer. (so clicking on IGMP will display the data)
                 */
@@ -244,7 +244,7 @@ dissect_msnip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, int of
        type = tvb_get_guint8(tvb, offset);
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_add_fstr(pinfo->cinfo, COL_INFO,
-                       "%s",val_to_str(type, msnip_types, 
+                       "%s",val_to_str(type, msnip_types,
                                "Unknown Type:0x%02x"));
        }