tech-net archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: question about mbuf intialization
On Sep 18, 2013, at 8:33 AM, Beverly Schwartz <bschwart%bbn.com@localhost>
wrote:
> Any reason why we can't add
> m->m_len = 0;
> to m_get, and
> m->m_pkthdr.len = 0;
> to m_gethdr?
Why not m->m_len = MLEN or MHLEN and m->m_pkthdr.len = MHLEN?
That way you know how much space is left.
But in reality, it's expected the user knows that the length
fields and/or m_data need to be adjusted.
Home |
Main Index |
Thread Index |
Old Index