summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bgpctl/parser.c
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2010-01-10 00:16:23 +0000
committerclaudio <claudio@openbsd.org>2010-01-10 00:16:23 +0000
commit536c61dce4569b2cd79d91dfd4385362f84b511c (patch)
treebb7a0fcf8e74dc3ca824b1a7c81a50d219f5cf3a /usr.sbin/bgpctl/parser.c
parentSwitch rib_dump() to use AID instead of AFs. OK henning@ (diff)
downloadwireguard-openbsd-536c61dce4569b2cd79d91dfd4385362f84b511c.tar.xz
wireguard-openbsd-536c61dce4569b2cd79d91dfd4385362f84b511c.zip
ribreq uses now a AID, use AID also on the parsing side and convert to
AF when necessary. OK henning@
Diffstat (limited to 'usr.sbin/bgpctl/parser.c')
-rw-r--r--usr.sbin/bgpctl/parser.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpctl/parser.c b/usr.sbin/bgpctl/parser.c
index 29d69dfbcf9..335f3f53883 100644
--- a/usr.sbin/bgpctl/parser.c
+++ b/usr.sbin/bgpctl/parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.c,v 1.58 2009/12/01 14:29:40 claudio Exp $ */
+/* $OpenBSD: parser.c,v 1.59 2010/01/10 00:16:23 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -416,12 +416,12 @@ match_token(int *argc, char **argv[], const struct token table[])
if (!strcmp(word, "inet") || !strcmp(word, "IPv4")) {
match++;
t = &table[i];
- res.af = AF_INET;
+ res.aid = AID_INET;
}
if (!strcmp(word, "inet6") || !strcmp(word, "IPv6")) {
match++;
t = &table[i];
- res.af = AF_INET6;
+ res.aid = AID_INET6;
}
break;
case ADDRESS: