ports/net/openospfd/files/patch-ospfctl_parser.h
Martin Wilke 815fa60053 - Update to 4.0
- Pass maintainership to submitter

Submitted by:	farrokhi
Repocopy by:	marcus
Approved by:	flz
2007-08-27 08:15:04 +00:00

26 lines
419 B
C

--- 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];