summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormcbride <mcbride@openbsd.org>2005-02-07 15:01:24 +0000
committermcbride <mcbride@openbsd.org>2005-02-07 15:01:24 +0000
commit7cb44d2799fa9d84ae41c45c8b93edab58ec9c7e (patch)
treec0b82cf8866f1861268669d8caffcb8badae1334
parentAdd new function if_link_state_change() to take care of sending messages (diff)
downloadwireguard-openbsd-7cb44d2799fa9d84ae41c45c8b93edab58ec9c7e.tar.xz
wireguard-openbsd-7cb44d2799fa9d84ae41c45c8b93edab58ec9c7e.zip
Use new if_link_state_change() instead of sending route message and notifying
carp directly. ok brad@ mpf@
-rw-r--r--sys/dev/mii/mii_physubr.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/sys/dev/mii/mii_physubr.c b/sys/dev/mii/mii_physubr.c
index d9e55b9c1fa..7875465840a 100644
--- a/sys/dev/mii/mii_physubr.c
+++ b/sys/dev/mii/mii_physubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mii_physubr.c,v 1.24 2004/12/16 03:41:58 brad Exp $ */
+/* $OpenBSD: mii_physubr.c,v 1.25 2005/02/07 15:01:24 mcbride Exp $ */
/* $NetBSD: mii_physubr.c,v 1.20 2001/04/13 23:30:09 thorpej Exp $ */
/*-
@@ -52,18 +52,10 @@
#include <net/if.h>
#include <net/if_media.h>
-#include <net/route.h>
#include <dev/mii/mii.h>
#include <dev/mii/miivar.h>
-#include "carp.h"
-#if NCARP > 0
-#include <netinet/in.h>
-#include <netinet/in_var.h>
-#include <netinet/ip_carp.h>
-#endif
-
/*
* Media to register setting conversion table. Order matters.
* XXX 802.3 doesn't specify ANAR or ANLPAR bits for 1000base.
@@ -346,12 +338,8 @@ mii_phy_update(struct mii_softc *sc, int cmd)
if (announce) {
s = splnet();
- rt_ifmsg(ifp);
+ if_link_state_change(ifp);
splx(s);
-#if NCARP > 0
- if (ifp->if_carp)
- carp_carpdev_state(ifp);
-#endif
}
}
}