Could there be a problem with the declaration of mbuf_len?
size_t mbuf_len(mbuf_t mbuf);
size_t is said to be a __darwin_size_t
__darwin_size_t is said to be __SIZE_TYPE__
__SIZE_TYPE__ is said to be long unsigned int (from what I've found
with google).
My problem is that the m_hdr struct is stating (in the xnu source code):
struct m_hdr {
struct mbuf *mh_next; /* next buffer in chain */
struct mbuf *mh_nextpkt; /* next chain in queue/record */
long mh_len; /* amount of data in this mbuf */
so mh_len is signed if I'm not mistaken.
This is a bit "funny" when you're trying to deal with this kind of
weird mbuf chain :
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-kernel/email@hidden