diff options
Diffstat (limited to 'usr.sbin/bgpd/pftable.c')
-rw-r--r-- | usr.sbin/bgpd/pftable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/pftable.c b/usr.sbin/bgpd/pftable.c index 13b8c48d252..0a365df3dfe 100644 --- a/usr.sbin/bgpd/pftable.c +++ b/usr.sbin/bgpd/pftable.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pftable.c,v 1.5 2005/07/01 09:19:24 claudio Exp $ */ +/* $OpenBSD: pftable.c,v 1.6 2009/12/01 14:28:05 claudio Exp $ */ /* * Copyright (c) 2004 Damien Miller <djm@openbsd.org> @@ -214,7 +214,7 @@ pftable_add_work(const char *table, struct bgpd_addr *addr, bzero(pfa, sizeof(*pfa)); memcpy(&pfa->pfra_u, &addr->ba, (len + 7U) / 8); - pfa->pfra_af = addr->af; + pfa->pfra_af = aid2af(addr->aid); pfa->pfra_net = len; pft->naddrs++; |