summaryrefslogtreecommitdiff
path: root/packet-snmp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-04-15 09:05:17 +0000
committerGuy Harris <guy@alum.mit.edu>2001-04-15 09:05:17 +0000
commit5f89c1d71531aaf70749107baa6f88a48d42e112 (patch)
tree6071fb02a695a5bd92a811574595235ab8e05fc2 /packet-snmp.c
parent560c3102372041320825719807ec36a38449fb11 (diff)
downloadwireshark-5f89c1d71531aaf70749107baa6f88a48d42e112.tar.gz
Conversation dissectors are called through a mechanism that doesn't
check for disabled protocols or set "pinfo->current_proto", so they have to do that for themselves. svn path=/trunk/; revision=3306
Diffstat (limited to 'packet-snmp.c')
-rw-r--r--packet-snmp.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/packet-snmp.c b/packet-snmp.c
index 70e2415114..e5f17167be 100644
--- a/packet-snmp.c
+++ b/packet-snmp.c
@@ -8,7 +8,7 @@
*
* See RFCs 1905, 1906, 1909, and 1910 for SNMPv2u.
*
- * $Id: packet-snmp.c,v 1.65 2001/04/15 07:51:11 guy Exp $
+ * $Id: packet-snmp.c,v 1.66 2001/04/15 09:05:17 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -2098,6 +2098,15 @@ dissect_snmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
conversation_t *conversation;
/*
+ * XXX - this is a conversation dissector, and the code to
+ * call a conversation dissector doesn't check for disabled
+ * protocols or set "pinfo->current_proto".
+ */
+ CHECK_DISPLAY_AS_DATA(proto_snmp, tvb, pinfo, tree);
+
+ pinfo->current_proto = "SNMP";
+
+ /*
* The first SNMP packet goes to the SNMP port; the second one
* may come from some *other* port, but goes back to the same
* IP address and port as the ones from which the first packet