Page MenuHomeFreeBSD

D15278.1782704684.diff
No OneTemporary

Size
686 B
Referenced Files
None
Subscribers
None

D15278.1782704684.diff

Index: head/sys/net/if_loop.c
===================================================================
--- head/sys/net/if_loop.c
+++ head/sys/net/if_loop.c
@@ -136,7 +136,7 @@
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 @@
break;
case SIOCSIFFLAGS:
+ if_link_state_change(ifp, (ifp->if_flags & IFF_UP) ?
+ LINK_STATE_UP: LINK_STATE_DOWN);
break;
case SIOCSIFCAP:

File Metadata

Mime Type
text/plain
Expires
Mon, Jun 29, 3:44 AM (8 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28977179
Default Alt Text
D15278.1782704684.diff (686 B)

Event Timeline