Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145161806
D49212.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
490 B
Referenced Files
None
Subscribers
None
D49212.diff
View Options
diff --git a/sys/net/route.h b/sys/net/route.h
--- a/sys/net/route.h
+++ b/sys/net/route.h
@@ -376,8 +376,9 @@
#ifdef _KERNEL
-#define RT_LINK_IS_UP(ifp) (!((ifp)->if_capabilities & IFCAP_LINKSTATE) \
- || (ifp)->if_link_state == LINK_STATE_UP)
+#define RT_LINK_IS_UP(ifp) ((!((ifp)->if_capabilities & IFCAP_LINKSTATE) \
+ || (ifp)->if_link_state == LINK_STATE_UP) \
+ && (ifp)->if_afdata_initialized != 0)
#define RO_NHFREE(_ro) do { \
if ((_ro)->ro_nh) { \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 17, 3:07 PM (13 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28817162
Default Alt Text
D49212.diff (490 B)
Attached To
Mode
D49212: route: protect against unattached if_afdata
Attached
Detach File
Event Timeline
Log In to Comment