summaryrefslogtreecommitdiff
path: root/keama/tests/packetdx4.notyet
diff options
context:
space:
mode:
Diffstat (limited to 'keama/tests/packetdx4.notyet')
-rw-r--r--keama/tests/packetdx4.notyet20
1 files changed, 20 insertions, 0 deletions
diff --git a/keama/tests/packetdx4.notyet b/keama/tests/packetdx4.notyet
new file mode 100644
index 00000000..03f3237d
--- /dev/null
+++ b/keama/tests/packetdx4.notyet
@@ -0,0 +1,20 @@
+# packet data expression
+# Kea has no raw packet extractor in libeval
+
+# authoritative is mandatory
+authoritative;
+
+# empty configs are not accepted by Kea
+default-lease-time 1800;
+
+# pretty standard hardware superclass extracting the Ethernet address directly
+class "byhw" {
+ match packet(28, 6);
+}
+
+subclass "byhw" 00:07:0E:36:48:19 {
+ option host-name "test1";
+}
+
+# raw
+option host-name = binary-to-ascii(16, 8, "-", packet(28, 6));