From 17ccdafa03331d860c55f6ecd4093ca520d0737b Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 19 May 2000 07:00:04 +0000 Subject: The only packets that look like SMUX packets *are* SMUX packets (unlike SNMP, where we let the ATM code tell the SNMP dissector to call it "ILMI"), so don't pass a protocol name string into "dissect_smux_pdu()", just have "dissect_smux_pdu()" call it "SMUX". svn path=/trunk/; revision=1983 --- packet-snmp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'packet-snmp.c') diff --git a/packet-snmp.c b/packet-snmp.c index 750df12480..1e44e81661 100644 --- a/packet-snmp.c +++ b/packet-snmp.c @@ -2,7 +2,7 @@ * Routines for SNMP (simple network management protocol) * D.Jorand (c) 1998 * - * $Id: packet-snmp.c,v 1.32 2000/05/15 08:02:39 guy Exp $ + * $Id: packet-snmp.c,v 1.33 2000/05/19 07:00:04 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -1571,7 +1571,7 @@ dissect_snmp_pdu(const u_char *pd, int offset, frame_data *fd, static void dissect_smux_pdu(const u_char *pd, int offset, frame_data *fd, - proto_tree *tree, char *proto_name, int proto, gint ett) + proto_tree *tree, int proto, gint ett) { ASN1_SCK asn1; const guchar *start; @@ -1605,7 +1605,7 @@ dissect_smux_pdu(const u_char *pd, int offset, frame_data *fd, guint cls, con; if (check_col(fd, COL_PROTOCOL)) - col_add_str(fd, COL_PROTOCOL, proto_name); + col_add_str(fd, COL_PROTOCOL, "SMUX"); if (tree) { item = proto_tree_add_item(tree, proto, NullTVB, offset, @@ -1842,7 +1842,7 @@ dissect_snmp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) static void dissect_smux(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) { - dissect_smux_pdu(pd, offset, fd, tree, "SMUX", proto_smux, ett_smux); + dissect_smux_pdu(pd, offset, fd, tree, proto_smux, ett_smux); } void -- cgit v1.2.3