summaryrefslogtreecommitdiff
path: root/src/libs6dns/s6dns_hosts_compile.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs6dns/s6dns_hosts_compile.txt')
-rw-r--r--src/libs6dns/s6dns_hosts_compile.txt31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/libs6dns/s6dns_hosts_compile.txt b/src/libs6dns/s6dns_hosts_compile.txt
new file mode 100644
index 0000000..97c5bac
--- /dev/null
+++ b/src/libs6dns/s6dns_hosts_compile.txt
@@ -0,0 +1,31 @@
+class | 0 1 2 3 4 5 6 7 8 9
+st\ev | \0 space # \n - . : 0-9 alpha other
+
+START | p p p
+00 | END START COMMENT START X X IP IP IP X
+
+COMMENT |
+01 | END COMMENT COMMENT START COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT
+
+IP | s s sa p p p p
+02 | END IPDONE X START X IP IP IP IP X
+
+IPDONE | p
+03 | END IPDONE COMMENT START X X X X NAME X
+
+NAME | f fn f p p p p
+04 | END NAMES X START NAME NAME X NAME NAME X
+
+NAMES | p
+05 | END NAMES COMMENT START X X X X NAME X
+
+END = 06
+X = 07
+
+state: 3 bits
+actions: 4 bits
+
+0x08 p store cur
+0x10 s scan IP, reset fqdn
+0x20 f scan name
+0x40 n fqdn done, now aliases