For Babel, recognise both UDP/6696 and UDP/6697.

IANA has reallocated the Babel port; it is now 6696.  This patch makes
tcpdump recognise both the old and the new Babel ports.
This commit is contained in:
Juliusz Chroboczek 2011-08-27 16:36:10 +02:00 committed by Michael Richardson
parent 79bb56d318
commit 2e2e33875f
2 changed files with 3 additions and 2 deletions

View File

@ -609,7 +609,7 @@ udp_print(register const u_char *bp, u_int length,
ripng_print((const u_char *)(up + 1), length);
else if (ISPORT(DHCP6_SERV_PORT) || ISPORT(DHCP6_CLI_PORT))
dhcp6_print((const u_char *)(up + 1), length);
else if (ISPORT(BABEL_PORT))
else if (ISPORT(BABEL_PORT) || ISPORT(BABEL_PORT_OLD))
babel_print((const u_char *)(up + 1), length);
#endif /*INET6*/
/*

3
udp.h
View File

@ -90,5 +90,6 @@ struct udphdr {
#define RIPNG_PORT 521 /*XXX*/
#define DHCP6_SERV_PORT 546 /*XXX*/
#define DHCP6_CLI_PORT 547 /*XXX*/
#define BABEL_PORT 6697
#define BABEL_PORT 6696
#define BABEL_PORT_OLD 6697
#endif