M_TRAILINGSPACE()

Andre Oppermann oppermann at networx.ch
Wed Sep 26 11:09:14 UTC 2012


On 26.09.2012 02:55, Vijay Singh wrote:
> 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))

Isn't this the same result in both cases? And isn't there a '&' missing?

-- 
Andre



More information about the freebsd-net mailing list