mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Add IFCAP_LINKSTATE support to if_loop(4).
Reviewed by: wollman Obtained from: Yandex LLC MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D15278
This commit is contained in:
parent
6c100026bf
commit
2e4531a12b
1 changed files with 3 additions and 1 deletions
|
|
@ -136,7 +136,7 @@ lo_clone_create(struct if_clone *ifc, int unit, caddr_t params)
|
|||
ifp->if_output = looutput;
|
||||
ifp->if_snd.ifq_maxlen = ifqmaxlen;
|
||||
ifp->if_capabilities = ifp->if_capenable =
|
||||
IFCAP_HWCSUM | IFCAP_HWCSUM_IPV6;
|
||||
IFCAP_HWCSUM | IFCAP_HWCSUM_IPV6 | IFCAP_LINKSTATE;
|
||||
ifp->if_hwassist = LO_CSUM_FEATURES | LO_CSUM_FEATURES6;
|
||||
if_attach(ifp);
|
||||
bpfattach(ifp, DLT_NULL, sizeof(u_int32_t));
|
||||
|
|
@ -413,6 +413,8 @@ loioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
|
|||
break;
|
||||
|
||||
case SIOCSIFFLAGS:
|
||||
if_link_state_change(ifp, (ifp->if_flags & IFF_UP) ?
|
||||
LINK_STATE_UP: LINK_STATE_DOWN);
|
||||
break;
|
||||
|
||||
case SIOCSIFCAP:
|
||||
|
|
|
|||
Loading…
Reference in a new issue