1 1.1 christos # packet data expression 2 1.1 christos # Kea has no raw packet extractor in libeval 3 1.1 christos 4 1.1 christos # authoritative is mandatory 5 1.1 christos authoritative; 6 1.1 christos 7 1.1 christos # empty configs are not accepted by Kea 8 1.1 christos default-lease-time 1800; 9 1.1 christos 10 1.1 christos # pretty standard hardware superclass extracting the Ethernet address directly 11 1.1 christos class "byhw" { 12 1.1 christos match packet(28, 6); 13 1.1 christos } 14 1.1 christos 15 1.1 christos subclass "byhw" 00:07:0E:36:48:19 { 16 1.1 christos option host-name "test1"; 17 1.1 christos } 18 1.1 christos 19 1.1 christos # raw 20 1.1 christos option host-name = binary-to-ascii(16, 8, "-", packet(28, 6)); 21