Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150674345
D15278.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
686 B
Referenced Files
None
Subscribers
None
D15278.id.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 4, 6:54 AM (5 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30793532
Default Alt Text
D15278.id.diff (686 B)
Attached To
Mode
D15278: Add IFCAP_LINKSTATE support to if_loop(4)
Attached
Detach File
Event Timeline
Log In to Comment