From: Nick Porter Date: Fri, 16 May 2025 08:21:34 +0000 (+0100) Subject: Align test with revised enum name X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9238c73da597c6daf131a547e37ebff47ccebaaa;p=thirdparty%2Ffreeradius-server.git Align test with revised enum name --- diff --git a/src/tests/unit/protocols/arp/base.txt b/src/tests/unit/protocols/arp/base.txt index c6fa4d18a11..1f63d2b7204 100644 --- a/src/tests/unit/protocols/arp/base.txt +++ b/src/tests/unit/protocols/arp/base.txt @@ -11,22 +11,22 @@ proto arp proto-dictionary arp -encode-proto arp.hardware-format = Ethernet, arp.protocol-format = IPv4, arp.hardware-address-length = 6, arp.protocol-address-length = 4, arp.packet-type = Request, arp.sender-hardware-address = 00:01:02:03:04:05, arp.sender-protocol-address = 192.0.2.1, arp.target-hardware-address = 00:aa:bb:cc:dd:ee, arp.target-protocol-address = 192.0.2.128 +encode-proto arp.hardware-format = Ethernet, arp.protocol-format = IPv4, arp.hardware-address-length = 6, arp.protocol-address-length = 4, arp.packet-type = ARP-Request, arp.sender-hardware-address = 00:01:02:03:04:05, arp.sender-protocol-address = 192.0.2.1, arp.target-hardware-address = 00:aa:bb:cc:dd:ee, arp.target-protocol-address = 192.0.2.128 # ----- ----- -- -- ----- ----------------- __________ ----------------- ___________ match 00 01 08 00 06 04 00 01 00 01 02 03 04 05 c0 00 02 01 00 aa bb cc dd ee c0 00 02 80 decode-proto - -match arp = { hardware-format = ::Ethernet, protocol-format = ::IPv4, hardware-address-length = 6, protocol-address-length = 4, packet-type = ::Request, sender-hardware-address = 00:01:02:03:04:05, sender-protocol-address = 192.0.2.1, target-hardware-address = 00:aa:bb:cc:dd:ee, target-protocol-address = 192.0.2.128 } +match arp = { hardware-format = ::Ethernet, protocol-format = ::IPv4, hardware-address-length = 6, protocol-address-length = 4, packet-type = ::ARP-Request, sender-hardware-address = 00:01:02:03:04:05, sender-protocol-address = 192.0.2.1, target-hardware-address = 00:aa:bb:cc:dd:ee, target-protocol-address = 192.0.2.128 } # # and with missing fields that we don't care about. this results in the same hex string as above. # -encode-proto arp.packet-type = Request, arp.sender-hardware-address = 00:01:02:03:04:05, arp.sender-protocol-address = 192.0.2.1, arp.target-hardware-address = 00:aa:bb:cc:dd:ee, arp.target-protocol-address = 192.0.2.128 +encode-proto arp.packet-type = ARP-Request, arp.sender-hardware-address = 00:01:02:03:04:05, arp.sender-protocol-address = 192.0.2.1, arp.target-hardware-address = 00:aa:bb:cc:dd:ee, arp.target-protocol-address = 192.0.2.128 # ----- ----- -- -- ----- ----------------- __________ ----------------- ___________ match 00 01 08 00 06 04 00 01 00 01 02 03 04 05 c0 00 02 01 00 aa bb cc dd ee c0 00 02 80 decode-proto - -match arp = { hardware-format = ::Ethernet, protocol-format = ::IPv4, hardware-address-length = 6, protocol-address-length = 4, packet-type = ::Request, sender-hardware-address = 00:01:02:03:04:05, sender-protocol-address = 192.0.2.1, target-hardware-address = 00:aa:bb:cc:dd:ee, target-protocol-address = 192.0.2.128 } +match arp = { hardware-format = ::Ethernet, protocol-format = ::IPv4, hardware-address-length = 6, protocol-address-length = 4, packet-type = ::ARP-Request, sender-hardware-address = 00:01:02:03:04:05, sender-protocol-address = 192.0.2.1, target-hardware-address = 00:aa:bb:cc:dd:ee, target-protocol-address = 192.0.2.128 } count match 10