aboutsummaryrefslogtreecommitdiffstats
path: root/packet-udp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-02-01 04:13:47 +0000
committerGuy Harris <guy@alum.mit.edu>2000-02-01 04:13:47 +0000
commit67c78197e3a3749dcaf2955c5a0012bd20ea3b35 (patch)
tree1fa0189fe82fc6c11434e506c79763149396e3fe /packet-udp.c
parentfa8b170ac9d3513c0bd0525b933689779b14e035 (diff)
downloadwireshark-67c78197e3a3749dcaf2955c5a0012bd20ea3b35.tar.gz
wireshark-67c78197e3a3749dcaf2955c5a0012bd20ea3b35.tar.bz2
wireshark-67c78197e3a3749dcaf2955c5a0012bd20ea3b35.zip
Dissect packets to or from port 162 as SNMP packets - that's the port to
which SNMP traps are sent. Thanks and a tip of the Hatlo Hat to Craig Rodrigues for discovering this. svn path=/trunk/; revision=1589
Diffstat (limited to 'packet-udp.c')
-rw-r--r--packet-udp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/packet-udp.c b/packet-udp.c
index 395c2fa5eb..19a3bf23ba 100644
--- a/packet-udp.c
+++ b/packet-udp.c
@@ -1,7 +1,7 @@
/* packet-udp.c
* Routines for UDP packet disassembly
*
- * $Id: packet-udp.c,v 1.46 2000/01/15 00:22:33 gram Exp $
+ * $Id: packet-udp.c,v 1.47 2000/02/01 04:13:47 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -75,6 +75,7 @@ typedef struct _e_udphdr {
#define UDP_PORT_NBNS 137
#define UDP_PORT_NBDGM 138
#define UDP_PORT_SNMP 161
+#define UDP_PORT_SNMP_TRAP 162
#define UDP_PORT_SRVLOC 427
#define UDP_PORT_PIM_RP_DISC 496
#define UDP_PORT_ISAKMP 500
@@ -293,7 +294,7 @@ dissect_udp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) {
(uh_dport >= UDP_PORT_RX_LOW && uh_dport <= UDP_PORT_RX_HIGH) ||
PORT_IS(UDP_PORT_RX_AFS_BACKUPS))
dissect_rx(pd, offset, fd, tree); /* transarc AFS's RX protocol */
- else if (PORT_IS(UDP_PORT_SNMP))
+ else if (PORT_IS(UDP_PORT_SNMP) || PORT_IS(UDP_PORT_SNMP_TRAP))
dissect_snmp(pd, offset, fd, tree);
else if (PORT_IS(UDP_PORT_VINES)) {
/* FIXME: AFAIK, src and dst port must be the same */