Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F105136817
D34312.id102927.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
381 B
Referenced Files
None
Subscribers
None
D34312.id102927.diff
View Options
diff --git a/sys/net/vnet.h b/sys/net/vnet.h
--- a/sys/net/vnet.h
+++ b/sys/net/vnet.h
@@ -238,6 +238,10 @@
curvnet = saved_vnet;
#endif /* VNET_DEBUG */
+#define CURVNET_ASSERT_SET() \
+ VNET_ASSERT(curvnet != NULL, ("vnet is not set at %s:%d %s()", \
+ __FILE__, __LINE__, __func__))
+
extern struct vnet *vnet0;
#define IS_DEFAULT_VNET(arg) ((arg) == vnet0)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 13, 6:39 PM (17 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15365610
Default Alt Text
D34312.id102927.diff (381 B)
Attached To
Mode
D34312: vnet: add CURVNET_ASSERT_SET
Attached
Detach File
Event Timeline
Log In to Comment