diff options
author | 2016-04-15 13:21:45 +0000 | |
---|---|---|
committer | 2016-04-15 13:21:45 +0000 | |
commit | 02eb61ef0fd5052790dc36eedab3388a431a90d2 (patch) | |
tree | b26f8a80cf5786cec85ed7ed39c86e9c34180fdd /usr.sbin/eigrpd/packet.c | |
parent | Move the command line options out of struct eigrpd_config (diff) | |
download | wireguard-openbsd-02eb61ef0fd5052790dc36eedab3388a431a90d2.tar.xz wireguard-openbsd-02eb61ef0fd5052790dc36eedab3388a431a90d2.zip |
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); |