diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-04-06 02:02:12 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-04-06 02:02:12 +0000 |
commit | bad78f629a420ede7fa0ad7929efb343354fb037 (patch) | |
tree | 72dfc79e5d496961dab74281d5fa7ee891577e08 /packet-tcp.c | |
parent | b59c4a366d156d08a7f50fce3009db16b4bf3bbc (diff) |
Add NNTP support.
svn path=/trunk/; revision=241
Diffstat (limited to 'packet-tcp.c')
-rw-r--r-- | packet-tcp.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/packet-tcp.c b/packet-tcp.c index aa40d0a8d8..85d0919117 100644 --- a/packet-tcp.c +++ b/packet-tcp.c @@ -1,7 +1,7 @@ /* packet-tcp.c * Routines for TCP packet disassembly * - * $Id: packet-tcp.c,v 1.19 1999/04/05 21:54:40 guy Exp $ + * $Id: packet-tcp.c,v 1.20 1999/04/06 02:02:11 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -69,6 +69,7 @@ static int info_len; #define TCP_PORT_SMTP 25 #define TCP_PORT_HTTP 80 #define TCP_PORT_POP 110 +#define TCP_PORT_NNTP 119 #define TCP_PORT_PRINTER 515 #define TCP_ALT_PORT_HTTP 8080 @@ -480,12 +481,17 @@ dissect_tcp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) { dissect_pop(pd, offset, fd, tree, payload); break; - - case TCP_PORT_HTTP: - case TCP_ALT_PORT_HTTP: + case TCP_PORT_NNTP: + pi.match_port = TCP_PORT_NNTP; + dissect_nntp(pd, offset, fd, tree, payload); + break; + + case TCP_PORT_HTTP: + case TCP_ALT_PORT_HTTP: dissect_http(pd, offset, fd, tree); break; - default: + + default: /* check existence of high level protocols */ if (memcmp(&pd[offset], "GIOP", 4) == 0) { |