diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-11-10 16:12:12 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-11-10 16:12:12 +0000 |
commit | 77b39910ea72ae78b0154ea4cadb3e52a440e3ba (patch) | |
tree | 13d4d0bef785a6b0b743a13b53da9c2228edfa9c /usr.sbin/bgpd/rde_rib.c | |
parent | 91b48b3a9493dbc865000abd94e8cabea688e897 (diff) |
prefix_write() works also for IPv6. OK henning@
Diffstat (limited to 'usr.sbin/bgpd/rde_rib.c')
-rw-r--r-- | usr.sbin/bgpd/rde_rib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde_rib.c b/usr.sbin/bgpd/rde_rib.c index e0fca5bc461..554757c306a 100644 --- a/usr.sbin/bgpd/rde_rib.c +++ b/usr.sbin/bgpd/rde_rib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_rib.c,v 1.60 2004/11/10 12:41:58 claudio Exp $ */ +/* $OpenBSD: rde_rib.c,v 1.61 2004/11/10 16:12:11 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> @@ -497,7 +497,7 @@ prefix_write(u_char *buf, int len, struct bgpd_addr *prefix, u_int8_t plen) { int totlen; - if (prefix->af != AF_INET) + if (prefix->af != AF_INET && prefix->af != AF_INET6) return (-1); totlen = PREFIX_SIZE(plen); |