Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153348144
D2126.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
764 B
Referenced Files
None
Subscribers
None
D2126.diff
View Options
Index: stable/10/sys/sys/mbuf.h
===================================================================
--- stable/10/sys/sys/mbuf.h
+++ stable/10/sys/sys/mbuf.h
@@ -206,6 +206,16 @@
#define m_pktdat M_dat.MH.MH_dat.MH_databuf
#define m_dat M_dat.M_databuf
+/*
+ * NOTE: forwards compatibility definitions for mbuf(9)
+ *
+ * These aren't 1:1 with the macros in r277203; in particular they're exposed
+ * to both userland and kernel, whereas this is exposed to just _KERNEL -- to
+ * avoid disruption with existing KBI/KPIs
+ */
+#define MHSIZE offsetof(struct mbuf, m_dat)
+#define MPKTHSIZE offsetof(struct mbuf, m_pktdat)
+
/*
* mbuf flags of global significance and layer crossing.
* Those of only protocol/layer specific significance are to be mapped
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 21, 3:22 PM (3 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31899674
Default Alt Text
D2126.diff (764 B)
Attached To
Mode
D2126: Backport MHSIZE/MPKTHSIZE
Attached
Detach File
Event Timeline
Log In to Comment