diff options
Diffstat (limited to 'keama/tests/hardware2dx4.out')
-rw-r--r-- | keama/tests/hardware2dx4.out | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/keama/tests/hardware2dx4.out b/keama/tests/hardware2dx4.out new file mode 100644 index 00000000..77c3f533 --- /dev/null +++ b/keama/tests/hardware2dx4.out @@ -0,0 +1,25 @@ +{ + # simplified hardware data expression + # hardware type class + "Dhcp4": { + "client-classes": [ + { + "name": "ethernet", + /// from: match if (substring(hardware, 0, 1)) = (encode-int(1, 8)) + "test": "substring(pkt4.htype,-1,all) == '\u0001'" + }, + # ethernet address superclass + /// match: substring(hardware, 1, 6) + { + "name": "ethernet-address" + }, + /// subclass selector 0x0x000bfd32e6fa + { + "name": "sub#ethernet-address#0", + /// from: match substring(hardware, 1, 6) + /// data: 0x000bfd32e6fa + "test": "substring(pkt4.mac,0,6) == 0x000bfd32e6fa" + } + ] + } +} |