diff options
author | guy <guy> | 2000-10-06 05:35:36 +0000 |
---|---|---|
committer | guy <guy> | 2000-10-06 05:35:36 +0000 |
commit | 0e40e56ff0942b9abf4fef2505fce40783fcdd5b (patch) | |
tree | b047f065736f9e35d51a9e57d0941d40bdf87d10 /print-udp.c | |
parent | 412fcb315ab679b33b60d7db51e340579f9ff2d1 (diff) | |
download | tcpdump-0e40e56ff0942b9abf4fef2505fce40783fcdd5b.tar.gz |
"timed" dissector, from Ben Smithurst.
Diffstat (limited to 'print-udp.c')
-rw-r--r-- | print-udp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/print-udp.c b/print-udp.c index d7eec1d9..2a99488a 100644 --- a/print-udp.c +++ b/print-udp.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-udp.c,v 1.82 2000-10-03 04:19:08 itojun Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-udp.c,v 1.83 2000-10-06 05:35:37 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -394,6 +394,7 @@ static int udp6_cksum(const struct ip6_hdr *ip6, const struct udphdr *up, #define NTP_PORT 123 /*XXX*/ #define SNMPTRAP_PORT 162 /*XXX*/ #define ISAKMP_PORT 500 /*XXX*/ +#define TIMED_PORT 525 /*XXX*/ #define RIP_PORT 520 /*XXX*/ #define KERBEROS_SEC_PORT 750 /*XXX*/ #define L2TP_PORT 1701 /*XXX*/ @@ -628,6 +629,8 @@ udp_print(register const u_char *bp, u_int length, register const u_char *bp2) #define ISPORT(p) (dport == (p) || sport == (p)) if (ISPORT(NAMESERVER_PORT)) ns_print((const u_char *)(up + 1), length); + else if (ISPORT(TIMED_PORT)) + timed_print((const u_char *)(up + 1), length); else if (ISPORT(TFTP_PORT)) tftp_print((const u_char *)(up + 1), length); else if (ISPORT(IPPORT_BOOTPC) || ISPORT(IPPORT_BOOTPS)) |