summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_carp.c
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2005-02-28 11:57:03 +0000
committerglebius <glebius@FreeBSD.org>2005-02-28 11:57:03 +0000
commit3bad63fb1db495bebcabf60cafb7bcc6d1a28d9e (patch)
treeb65e3b94f635fa8f2bacfbdee98eea5167ecc3c9 /sys/netinet/ip_carp.c
parentb190483209b03e799d798478f84c9ffa2e638d4e (diff)
downloadFreeBSD-src-3bad63fb1db495bebcabf60cafb7bcc6d1a28d9e.zip
FreeBSD-src-3bad63fb1db495bebcabf60cafb7bcc6d1a28d9e.tar.gz
Remove unused field from carp softc.
OK'ed by: mcbride@OpenBSD
Diffstat (limited to 'sys/netinet/ip_carp.c')
-rw-r--r--sys/netinet/ip_carp.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c
index 7bef3f3..b8967b1 100644
--- a/sys/netinet/ip_carp.c
+++ b/sys/netinet/ip_carp.c
@@ -91,7 +91,6 @@ struct carp_softc {
struct arpcom sc_ac; /* Interface clue */
#define sc_if sc_ac.ac_if
#define sc_carpdev sc_ac.ac_if.if_carpdev
- int if_flags; /* UP/DOWN */
struct in_ifaddr *sc_ia; /* primary iface address */
struct ip_moptions sc_imo;
#ifdef INET6
@@ -1703,7 +1702,6 @@ carp_ioctl(struct ifnet *ifp, u_long cmd, caddr_t addr)
break;
case SIOCDIFADDR:
- sc->if_flags &= ~IFF_UP;
switch (ifa->ifa_addr->sa_family) {
#ifdef INET
case AF_INET:
@@ -1723,7 +1721,6 @@ carp_ioctl(struct ifnet *ifp, u_long cmd, caddr_t addr)
case SIOCSIFFLAGS:
if (sc->sc_state != INIT && !(ifr->ifr_flags & IFF_UP)) {
- sc->if_flags &= ~IFF_UP;
callout_stop(&sc->sc_ad_tmo);
callout_stop(&sc->sc_md_tmo);
callout_stop(&sc->sc_md6_tmo);
OpenPOWER on IntegriCloud