M_TRAILINGSPACE()

Vijay Singh vijju.singh at gmail.com
Wed Sep 26 00:55:50 UTC 2012


Folks, does the following patch make sense:

server@[/u/vijay/bsd/CODE/cur/sys/sys]# svn diff mbuf.h
Index: mbuf.h
===================================================================
--- mbuf.h	(revision 240548)
+++ mbuf.h	(working copy)
@@ -832,6 +832,8 @@
 	((m)->m_flags & M_EXT ?						\
 	    (M_WRITABLE(m) ? (m)->m_ext.ext_buf + (m)->m_ext.ext_size	\
 		- ((m)->m_data + (m)->m_len) : 0) :			\
+	    (m)->m_flags & M_PKTHDR ? 					\
+	    ((m)->m_pktdat[MHLEN] - ((m)->m_data + (m)->m_len)) : 	\
 	    &(m)->m_dat[MLEN] - ((m)->m_data + (m)->m_len))

 /*


More information about the freebsd-net mailing list