summaryrefslogtreecommitdiff
path: root/src/libs6dns/s6dns_hosts_compile.txt
blob: 97c5bac48f07682110efbdf11265104c7768e595 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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