Page MenuHomeFreeBSD

D2126.diff
No OneTemporary

D2126.diff

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

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)

Event Timeline