Debian Codegraph @

keama/tests/hardware2dx4.in4

raw
1 # simplified hardware data expression
2
3 # hardware type class
4 class "ethernet" {
5 match if substring(hardware, 0, 1) = encode-int(1, 8);
6 }
7
8 # ethernet address superclass
9 class "ethernet-address" {
10 match substring(hardware, 1, 6);
11 }
12
13 subclass "ethernet-address" 00:0B:FD:32:E6:FA { }