diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-11-11 16:53:02 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-11-11 16:53:02 +0000 |
commit | c06a25bb4c17b6313fd2804852447663b5867287 (patch) | |
tree | 49f9570d12fda953ce64c175ca76dace1682f306 | |
parent | baba9ffb848aa16a80ebed1db5eb4518cc22c255 (diff) |
Don't hardcode the prefix table to the IPv4 one, especially if there is
already code to select the correct tree by AF.
-rw-r--r-- | usr.sbin/bgpd/rde_prefix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde_prefix.c b/usr.sbin/bgpd/rde_prefix.c index c82c84b29db..f161fb3610e 100644 --- a/usr.sbin/bgpd/rde_prefix.c +++ b/usr.sbin/bgpd/rde_prefix.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_prefix.c,v 1.20 2004/08/05 21:28:50 claudio Exp $ */ +/* $OpenBSD: rde_prefix.c,v 1.21 2004/11/11 16:53:01 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> @@ -167,7 +167,7 @@ pt_add(struct bgpd_addr *prefix, int prefixlen) } LIST_INIT(&p->prefix_h); - if (RB_INSERT(pt_tree, &pttable4, p) != NULL) { + if (RB_INSERT(pt_tree, tree, p) != NULL) { log_warnx("prefix_add: insert failed"); return (NULL); } |