aboutsummaryrefslogtreecommitdiffstats
path: root/packet-udp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-04-18 04:46:07 +0000
committerGuy Harris <guy@alum.mit.edu>2000-04-18 04:46:07 +0000
commitfad892ff59a6a71fde4effbaac8e7c02bea8a5ef (patch)
treedcf2189db112d718c247d93478d18dffba12f609 /packet-udp.c
parent73a42b360c683f4b9c3b25014fd705ee44fe75ba (diff)
In the NCP dissector, construct conversations using the source and
destination network-layer addresses of the servers, and the NCP connection number, and use the pointer to the conversation and the request sequence number as the hash key for the table of requests used to find the request for a given response; this lets it work with NCP-over-TCP and NCP-over-UDP. Register the NCP dissector with the UDP dissector in the handoff registration routine for NCP, just as we do with the TCP dissector. svn path=/trunk/; revision=1878
Diffstat (limited to 'packet-udp.c')
-rw-r--r--packet-udp.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/packet-udp.c b/packet-udp.c
index 3eb1a7bf6d..eebfc9fa45 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.67 2000/04/17 02:47:43 guy Exp $
+ * $Id: packet-udp.c,v 1.68 2000/04/18 04:46:07 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -74,7 +74,6 @@ typedef struct _e_udphdr {
/* UDP Ports -> should go in packet-udp.h */
#define UDP_PORT_TFTP 69
-#define UDP_PORT_NCP 524
#define UDP_PORT_VINES 573
static dissector_table_t udp_dissector_table;
@@ -129,9 +128,7 @@ decode_udp_ports( const u_char *pd, int offset, frame_data *fd,
/* XXX - we should do these with the subdissector table as well. */
#define PORT_IS(port) (uh_sport == port || uh_dport == port)
- if (PORT_IS(UDP_PORT_NCP))
- dissect_ncp(pd, offset, fd, tree); /* XXX -- need to handle nw_server_address */
- else if (PORT_IS(UDP_PORT_VINES)) {
+ if (PORT_IS(UDP_PORT_VINES)) {
/* FIXME: AFAIK, src and dst port must be the same */
dissect_vines_frp(pd, offset, fd, tree);
} else if (PORT_IS(UDP_PORT_TFTP)) {