YUCK!
m_prepend doesn't fix m_pkthdr.len, use M_PREPEND instead, which does.. (Netgraph only)
This commit is contained in:
parent
bdfebd8480
commit
ecf33d87b2
@ -1191,9 +1191,9 @@ ngether_send(struct arpcom *ac, struct ether_header *eh, struct mbuf *m)
|
||||
* big lump. The next node will do an m_pullup()
|
||||
* for exactly the amount of data it needs and
|
||||
* hopefully everything after that will not
|
||||
* need one. So let's just use m_prepend.
|
||||
* need one. So let's just use M_PREPEND.
|
||||
*/
|
||||
m = m_prepend(m, sizeof(*eh), M_DONTWAIT);
|
||||
M_PREPEND(m, sizeof (*eh), M_DONTWAIT);
|
||||
if (m == NULL)
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user