diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2011-09-17 16:29:45 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2011-09-17 16:29:45 +0000 |
commit | cacc58fdb8088fbadf3df590d89b52284739245e (patch) | |
tree | 162e1e4fd8f1b70906866993ece32b6918b76b9b /usr.sbin/bgpd/parse.y | |
parent | a4c1c20265bac501e49424d87603f7ff9d832166 (diff) |
Implement new mrt table dump format as specified in draft-ietf-grow-mrt.
Tested with IP and IPv6 sessions and against the libbgpdump parser.
OK henning@
Diffstat (limited to 'usr.sbin/bgpd/parse.y')
-rw-r--r-- | usr.sbin/bgpd/parse.y | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y index 75798d892f4..6939faaaee6 100644 --- a/usr.sbin/bgpd/parse.y +++ b/usr.sbin/bgpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.259 2011/05/01 12:56:04 claudio Exp $ */ +/* $OpenBSD: parse.y,v 1.260 2011/09/17 16:29:44 claudio Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -449,6 +449,8 @@ conf_main : AS as4number { action = MRT_TABLE_DUMP; else if (!strcmp($2, "table-mp")) action = MRT_TABLE_DUMP_MP; + else if (!strcmp($2, "table-v2")) + action = MRT_TABLE_DUMP_V2; else { yyerror("unknown mrt dump type"); free($2); @@ -476,6 +478,8 @@ conf_main : AS as4number { action = MRT_TABLE_DUMP; else if (!strcmp($4, "table-mp")) action = MRT_TABLE_DUMP_MP; + else if (!strcmp($4, "table-v2")) + action = MRT_TABLE_DUMP_V2; else { yyerror("unknown mrt dump type"); free($3); |