- Call if_link_state_change() for each vlan, when link changes
on parent. - Remove route.h include. - Fix comment about MII. Sponsored by: Rambler Reviewed by: yar
This commit is contained in:
parent
8b72a3f693
commit
984be3efbf
@ -62,7 +62,6 @@
|
|||||||
#include <net/if_dl.h>
|
#include <net/if_dl.h>
|
||||||
#include <net/if_types.h>
|
#include <net/if_types.h>
|
||||||
#include <net/if_vlan_var.h>
|
#include <net/if_vlan_var.h>
|
||||||
#include <net/route.h>
|
|
||||||
|
|
||||||
#ifdef INET
|
#ifdef INET
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
@ -224,7 +223,7 @@ vlan_setmulti(struct ifnet *ifp)
|
|||||||
*/
|
*/
|
||||||
extern void (*vlan_input_p)(struct ifnet *, struct mbuf *);
|
extern void (*vlan_input_p)(struct ifnet *, struct mbuf *);
|
||||||
|
|
||||||
/* For MII eyes only... */
|
/* For if_link_state_change() eyes only... */
|
||||||
extern void (*vlan_link_state_p)(struct ifnet *, int);
|
extern void (*vlan_link_state_p)(struct ifnet *, int);
|
||||||
|
|
||||||
static int
|
static int
|
||||||
@ -819,11 +818,9 @@ vlan_link_state(struct ifnet *ifp, int link)
|
|||||||
|
|
||||||
VLAN_LOCK();
|
VLAN_LOCK();
|
||||||
LIST_FOREACH(ifv, &ifv_list, ifv_list) {
|
LIST_FOREACH(ifv, &ifv_list, ifv_list) {
|
||||||
if (ifv->ifv_p == ifp) {
|
if (ifv->ifv_p == ifp)
|
||||||
ifv->ifv_if.if_link_state = ifv->ifv_p->if_link_state;
|
if_link_state_change(&ifv->ifv_if,
|
||||||
rt_ifmsg(&(ifv->ifv_if));
|
ifv->ifv_p->if_link_state);
|
||||||
KNOTE_UNLOCKED(&ifp->if_klist, link);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
VLAN_UNLOCK();
|
VLAN_UNLOCK();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user