Explicitly emphasize a facet of m_pullup() that some people seem to
frequently forget. i.e. that you can not keep using pointers to within the old chain.
This commit is contained in:
parent
1555dc07f7
commit
2df82cb38b
@ -643,6 +643,10 @@ are contiguous and lay in the data area of
|
||||
.Fa mbuf ,
|
||||
so they are accessible with
|
||||
.Fn mtod mbuf type .
|
||||
It is important to remember that this may involve
|
||||
reallocating some mbufs and moving data so all pointers
|
||||
referencing data within the old mbuf chain
|
||||
must be recalculated or made invalid.
|
||||
Return the new
|
||||
.Vt mbuf chain
|
||||
on success,
|
||||
|
Loading…
Reference in New Issue
Block a user