]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Align test with revised enum name
authorNick Porter <nick@portercomputing.co.uk>
Fri, 16 May 2025 08:21:34 +0000 (09:21 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Fri, 16 May 2025 08:21:34 +0000 (09:21 +0100)
src/tests/unit/protocols/arp/base.txt

index c6fa4d18a11fcad508b12a8cc621727f99681a69..1f63d2b7204f58da9569f4cb2452a6608fd0bb3f 100644 (file)
 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