summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/bgpd.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-12-27 14:24:43 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-12-27 14:24:43 +0000
commitedf7186517d311f80025c32db592485d1d15f53d (patch)
tree60eae459806a1f16184ab3c40ed3b556c8be323e /usr.sbin/bgpd/bgpd.c
parent136720c2df920b260c14b27c707022473e2e52b7 (diff)
keep a copy of the fd locally instead of passing it around all time
Diffstat (limited to 'usr.sbin/bgpd/bgpd.c')
-rw-r--r--usr.sbin/bgpd/bgpd.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/bgpd/bgpd.c b/usr.sbin/bgpd/bgpd.c
index 522f2b94671..ad726d6b280 100644
--- a/usr.sbin/bgpd/bgpd.c
+++ b/usr.sbin/bgpd/bgpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpd.c,v 1.43 2003/12/27 01:31:49 henning Exp $ */
+/* $OpenBSD: bgpd.c,v 1.44 2003/12/27 14:24:42 henning Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -247,7 +247,7 @@ main(int argc, char *argv[])
if (nfds > 0 && pfd[PFD_SOCK_ROUTE].revents & POLLIN) {
nfds--;
- if (kroute_dispatch_msg(rfd) == -1)
+ if (kroute_dispatch_msg() == -1)
quit = 1;
}
@@ -289,7 +289,7 @@ main(int argc, char *argv[])
i = waitpid(-1, NULL, WNOHANG);
} while (i > 0 || (i == -1 && errno == EINTR));
- kroute_shutdown(rfd);
+ kroute_shutdown();
logit(LOG_CRIT, "Terminating");
return (0);
@@ -309,9 +309,9 @@ reconfigure(char *conffile, struct bgpd_config *conf, struct mrt_config *mrtc)
}
if (fib_synced != !(conf->flags & BGPD_FLAG_NO_FIB_UPDATE)) {
if (!(conf->flags & BGPD_FLAG_NO_FIB_UPDATE))
- kroute_fib_couple(rfd);
+ kroute_fib_couple();
else
- kroute_fib_decouple(rfd);
+ kroute_fib_decouple();
}
if (imsg_compose(&ibuf_se, IMSG_RECONF_CONF, 0,
@@ -376,13 +376,13 @@ dispatch_imsg(struct imsgbuf *ibuf, int idx, struct mrt_config *conf)
case IMSG_KROUTE_CHANGE:
if (idx != PFD_PIPE_ROUTE)
logit(LOG_CRIT, "route request not from RDE");
- else if (kroute_change(rfd, imsg.data))
+ else if (kroute_change(imsg.data))
return (-1);
break;
case IMSG_KROUTE_DELETE:
if (idx != PFD_PIPE_ROUTE)
logit(LOG_CRIT, "route request not from RDE");
- else if (kroute_delete(rfd, imsg.data))
+ else if (kroute_delete(imsg.data))
return (-1);
break;
case IMSG_NEXTHOP_ADD: