diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-09-17 05:56:58 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-09-17 05:56:58 +0000 |
commit | 96e79ab6f80abdad1e3b525f4febef278de7eacc (patch) | |
tree | 7b49cc8eb0de5d9a929aa1676bc1981c3ebcfad3 /packet-tcp.c | |
parent | ff20b92b67d90a1e14ef73fde3300cec25c54932 (diff) |
Add a "BYTES_ARE_IN_FRAME()" macro, to test whether there are a
specified number of bytes of captured data in the frame at the specified
offset, and a "IS_DATA_IN_FRAME()" macro, to test whether there are any
bytes of captured data in the frame at the specified offset, and convert
some bounds checks to use them.
Add a dissector for the Internet Printing Protocol.
svn path=/trunk/; revision=685
Diffstat (limited to 'packet-tcp.c')
-rw-r--r-- | packet-tcp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packet-tcp.c b/packet-tcp.c index f4216d8eab..672110f857 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.32 1999/08/28 08:31:27 guy Exp $ + * $Id: packet-tcp.c,v 1.33 1999/09/17 05:56:56 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -489,7 +489,8 @@ dissect_tcp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) { } else if (PORT_IS(TCP_PORT_PPTP)) { pi.match_port = TCP_PORT_PPTP; dissect_pptp(pd, offset, fd, tree); - } else if (PORT_IS(TCP_PORT_HTTP) || PORT_IS(TCP_ALT_PORT_HTTP)) + } else if (PORT_IS(TCP_PORT_HTTP) || PORT_IS(TCP_ALT_PORT_HTTP) + || PORT_IS(631)) dissect_http(pd, offset, fd, tree); else if (PORT_IS(TCP_PORT_NBSS)) { pi.match_port = TCP_PORT_NBSS; |