diff options
author | hannes <hannes> | 2003-10-27 22:44:37 +0000 |
---|---|---|
committer | hannes <hannes> | 2003-10-27 22:44:37 +0000 |
commit | 00a6f199f0c6a708a8746d750bf54a757e28ba18 (patch) | |
tree | 81a7d439894daaab2c3f60cbb1187f41f1ac0f21 /print-udp.c | |
parent | 4b32b1020ea8b7df85787bea5fa9d563bc9a1b84 (diff) | |
download | tcpdump-00a6f199f0c6a708a8746d750bf54a757e28ba18.tar.gz |
- move UDP port numbers to udp.h
- then the number defines# are acessible from outside
- make a differentiation between BFD_ECHO_PORT and BFD_CONTROL_PORT
Diffstat (limited to 'print-udp.c')
-rw-r--r-- | print-udp.c | 42 |
1 files changed, 1 insertions, 41 deletions
diff --git a/print-udp.c b/print-udp.c index dafc2b22..2bf77d4b 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.122 2003-10-27 10:13:44 hannes Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-udp.c,v 1.123 2003-10-27 22:44:37 hannes Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -362,46 +362,6 @@ static int udp6_cksum(const struct ip6_hdr *ip6, const struct udphdr *up, } #endif - -/* XXX probably should use getservbyname() and cache answers */ -#define TFTP_PORT 69 /*XXX*/ -#define KERBEROS_PORT 88 /*XXX*/ -#define SUNRPC_PORT 111 /*XXX*/ -#define SNMP_PORT 161 /*XXX*/ -#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 LDP_PORT 646 -#define AODV_PORT 654 /*XXX*/ -#define KERBEROS_SEC_PORT 750 /*XXX*/ -#define L2TP_PORT 1701 /*XXX*/ -#define ISAKMP_PORT_USER1 7500 /*XXX - nonstandard*/ -#define ISAKMP_PORT_USER2 8500 /*XXX - nonstandard*/ -#define RX_PORT_LOW 7000 /*XXX*/ -#define RX_PORT_HIGH 7009 /*XXX*/ -#define NETBIOS_NS_PORT 137 -#define NETBIOS_DGRAM_PORT 138 -#define CISCO_AUTORP_PORT 496 /*XXX*/ -#define RADIUS_PORT 1645 -#define RADIUS_NEW_PORT 1812 -#define RADIUS_ACCOUNTING_PORT 1646 -#define RADIUS_NEW_ACCOUNTING_PORT 1813 -#define HSRP_PORT 1985 /*XXX*/ -#define LWRES_PORT 921 -#define ZEPHYR_SRV_PORT 2103 -#define ZEPHYR_CLT_PORT 2104 -#define MPLS_LSP_PING_PORT 3503 /* draft-ietf-mpls-lsp-ping-02.txt */ -#define BFD_CONTROL_PORT 3784 /* draft-katz-ward-bfd-v4v6-1hop-00.txt */ -#define BFD_ECHO_PORT 3785 /* draft-katz-ward-bfd-v4v6-1hop-00.txt */ - -#ifdef INET6 -#define RIPNG_PORT 521 /*XXX*/ -#define DHCP6_SERV_PORT 546 /*XXX*/ -#define DHCP6_CLI_PORT 547 /*XXX*/ -#endif - static void udpipaddr_print(const struct ip *ip, int sport, int dport) { |