From: Francois-Xavier Le Bail Date: Wed, 27 Sep 2023 11:39:19 +0000 (+0200) Subject: RADIUS: Add a fixed test from an invalid length test X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/4636579ecdae42d50265156e5156fbd2a84bbdc1 RADIUS: Add a fixed test from an invalid length test It's a copy from radius_rfc5447_invalid_length.pcap updated to fix the length from 57 to 56. (See previous commit.) --- diff --git a/tests/TESTLIST b/tests/TESTLIST index 1c78d69f..982655b2 100644 --- a/tests/TESTLIST +++ b/tests/TESTLIST @@ -440,6 +440,7 @@ radius-rfc5176 RADIUS-RFC5176.pcap radius-rfc5176-v.out -v radius-port1700 RADIUS-port1700.pcap radius-port1700-v.out -v radius-rfc5176-2 RADIUS-RFC5176-2.pcap radius-rfc5176-2-v.out -v radius_rfc5447_invalid_length radius_rfc5447_invalid_length.pcap radius_rfc5447_invalid_length-v.out -v +radius_rfc5447 radius_rfc5447.pcap radius_rfc5447-v.out -v radius-rfc5580 RADIUS-RFC5580.pcap radius-rfc5580-v.out -v # link-level protocols diff --git a/tests/radius_rfc5447-v.out b/tests/radius_rfc5447-v.out new file mode 100644 index 00000000..a52c2455 --- /dev/null +++ b/tests/radius_rfc5447-v.out @@ -0,0 +1,6 @@ + 1 13:47:25.180847 IP (tos 0x0, ttl 64, id 47488, offset 0, flags [none], proto UDP (17), length 84) + 127.0.0.1.55520 > 127.0.0.1.1812: RADIUS, length: 56 + Access-Request (1), id: 0x4f, Authenticator: 5bec15a7f3ac1590f65629a9f979c340 + User-Name Attribute (1), length: 7, Value: luser + MIP6-Feature-Vector Attribute (124), length: 10, Value: [MIP6_INTEGRATED, IP4_HOA_SUPPORTED, LOCAL_MAG_ROUTING_SUPPORTED] + MIP6-Home-Link-Prefix Attribute (125), length: 19, Value: 2001:db8::/32 diff --git a/tests/radius_rfc5447.pcap b/tests/radius_rfc5447.pcap new file mode 100644 index 00000000..2fabfb37 Binary files /dev/null and b/tests/radius_rfc5447.pcap differ