diff options
author | Renato Westphal <renato@cvs.openbsd.org> | 2016-04-15 13:21:46 +0000 |
---|---|---|
committer | Renato Westphal <renato@cvs.openbsd.org> | 2016-04-15 13:21:46 +0000 |
commit | 0857e73657c069d6e5e62f51076de7d30ad50c9a (patch) | |
tree | 75da5277d993e93efda10c1d06733bd47d786fce /usr.sbin/eigrpd/packet.c | |
parent | 9db053383463ac6a6c80e90c9b85db8f432c9b8c (diff) |
Move several other variables out of eigrpd_conf.
Now eigrpd_conf contains only variables that can be modified via a
config reload. The other variables were moved to a new struct called
eigrpd_global, which is now a central point for storing global variables.
Diffstat (limited to 'usr.sbin/eigrpd/packet.c')
-rw-r--r-- | usr.sbin/eigrpd/packet.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/eigrpd/packet.c b/usr.sbin/eigrpd/packet.c index 9cb7a801ee2..6b343ce7414 100644 --- a/usr.sbin/eigrpd/packet.c +++ b/usr.sbin/eigrpd/packet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: packet.c,v 1.13 2016/04/15 13:10:56 renato Exp $ */ +/* $OpenBSD: packet.c,v 1.14 2016/04/15 13:21:45 renato Exp $ */ /* * Copyright (c) 2015 Renato Westphal <renato@openbsd.org> @@ -105,7 +105,7 @@ send_packet_v4(struct iface *iface, struct nbr *nbr, struct ibuf *buf) return (-1); } - if (sendmsg(econf->eigrp_socket_v4, &msg, 0) == -1) { + if (sendmsg(global.eigrp_socket_v4, &msg, 0) == -1) { log_warn("%s: error sending packet on interface %s", __func__, iface->name); return (-1); @@ -138,7 +138,7 @@ send_packet_v6(struct iface *iface, struct nbr *nbr, struct ibuf *buf) return (-1); } - if (sendto(econf->eigrp_socket_v6, buf->buf, buf->wpos, 0, + if (sendto(global.eigrp_socket_v6, buf->buf, buf->wpos, 0, (struct sockaddr *)&sa6, sizeof(sa6)) == -1) { log_warn("%s: error sending packet on interface %s", __func__, iface->name); |