Merge pull request #471 from qnet-herwin/radius_port1700

This commit is contained in:
Denis Ovsienko 2015-12-16 09:26:40 +00:00
commit 2b37556bfa
5 changed files with 9 additions and 0 deletions

View File

@ -613,6 +613,7 @@ udp_print(netdissect_options *ndo, register const u_char *bp, u_int length,
IS_SRC_OR_DST_PORT(RADIUS_NEW_PORT) ||
IS_SRC_OR_DST_PORT(RADIUS_ACCOUNTING_PORT) ||
IS_SRC_OR_DST_PORT(RADIUS_NEW_ACCOUNTING_PORT) ||
IS_SRC_OR_DST_PORT(RADIUS_CISCO_COA_PORT) ||
IS_SRC_OR_DST_PORT(RADIUS_COA_PORT) )
radius_print(ndo, (const u_char *)(up+1), length);
else if (dport == HSRP_PORT)

BIN
tests/RADIUS-port1700.pcap Normal file

Binary file not shown.

View File

@ -249,6 +249,7 @@ decnet DECnet_Phone.pcap decnet.out -t
radius-v RADIUS.pcap radius-v.out -t -v
radius-rfc4675 RADIUS-RFC4675.pcap radius-rfc4675-v.out -t -v
radius-rfc5176 RADIUS-RFC5176.pcap radius-rfc5176-v.out -t -v
radius-port1700 RADIUS-port1700.pcap radius-port1700-v.out -t -v
# link-level protocols
dtp-v DTP.pcap dtp-v.out -t -v

View File

@ -0,0 +1,4 @@
IP (tos 0x0, ttl 64, id 44978, offset 0, flags [none], proto UDP (17), length 53)
127.0.0.1.42172 > 127.0.0.1.1700: RADIUS, length: 25
CoA-Request (43), id: 0xa6, Authenticator: 7fbf02c6662b5990838a5e6e331b3ff0
User-Name Attribute (1), length: 5, Value: bob

3
udp.h
View File

@ -200,6 +200,9 @@ struct udphdr {
#ifndef RADIUS_ACCOUNTING_PORT
#define RADIUS_ACCOUNTING_PORT 1646
#endif
#ifndef RADIUS_CISCO_COA_PORT
#define RADIUS_CISCO_COA_PORT 1700
#endif
#ifndef L2TP_PORT
#define L2TP_PORT 1701 /*XXX*/
#endif