diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-01-11 22:01:14 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-01-11 22:01:14 +0000 |
commit | b78cea9003594c6f78ee5ee7b40a8376aca9659c (patch) | |
tree | 8a53d2d5095d1201ff9c527036b68246be2dc667 /usr.sbin/bgpd/bgpd.c | |
parent | 5bdbf6ecafeb03c17ea95d37cc550e6b20c2395d (diff) |
use bgpd_addr in the nexthop tree; change nexthop_add/_remove accordingly
ok claudio@
Diffstat (limited to 'usr.sbin/bgpd/bgpd.c')
-rw-r--r-- | usr.sbin/bgpd/bgpd.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.sbin/bgpd/bgpd.c b/usr.sbin/bgpd/bgpd.c index 462e180ef3d..23faaf536de 100644 --- a/usr.sbin/bgpd/bgpd.c +++ b/usr.sbin/bgpd/bgpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.c,v 1.65 2004/01/11 21:32:56 henning Exp $ */ +/* $OpenBSD: bgpd.c,v 1.66 2004/01/11 22:01:13 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -408,9 +408,7 @@ dispatch_imsg(struct imsgbuf *ibuf, int idx, struct mrt_head *mrtc) if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(struct bgpd_addr)) logit(LOG_CRIT, "wrong imsg len"); - else if (kr_nexthop_add( - ((struct bgpd_addr *)imsg.data)->v4.s_addr) - == -1) + else if (kr_nexthop_add(imsg.data) == -1) return (-1); break; case IMSG_NEXTHOP_REMOVE: @@ -420,8 +418,7 @@ dispatch_imsg(struct imsgbuf *ibuf, int idx, struct mrt_head *mrtc) if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(struct bgpd_addr)) logit(LOG_CRIT, "wrong imsg len"); - else kr_nexthop_delete( - ((struct bgpd_addr *)imsg.data)->v4.s_addr); + else kr_nexthop_delete(imsg.data); break; case IMSG_CTL_RELOAD: if (idx != PFD_PIPE_SESSION) |