summaryrefslogtreecommitdiff
path: root/net/openospfd/files/patch-ospfctl_parser.h
blob: b4eab4960d00fc587039ea4b6e6fafa86f6487a6 (plain) (blame)
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
--- ospfctl/parser.h.orig	Fri Jul 27 15:11:55 2007
+++ ospfctl/parser.h	Fri Jul 27 15:12:01 2007
@@ -50,6 +50,23 @@
 	RELOAD
 };
 
+enum token_type {
+	NOTOKEN,
+	ENDTOKEN,
+	KEYWORD,
+	ADDRESS,
+	FLAG,
+	PREFIX,
+	IFNAME
+};
+
+struct token {
+	enum token_type		 type;
+	const char		*keyword;
+	int			 value;
+	const struct token	*next;
+};
+
 struct parse_result {
 	struct in_addr	addr;
 	char		ifname[IF_NAMESIZE];