diff options
Diffstat (limited to 'net/openospfd/files/patch-ospfctl_parser.h')
-rw-r--r-- | net/openospfd/files/patch-ospfctl_parser.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/net/openospfd/files/patch-ospfctl_parser.h b/net/openospfd/files/patch-ospfctl_parser.h new file mode 100644 index 000000000000..b4eab4960d00 --- /dev/null +++ b/net/openospfd/files/patch-ospfctl_parser.h @@ -0,0 +1,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]; |