summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1999-11-15 03:49:35 +0000
committerjulian <julian@FreeBSD.org>1999-11-15 03:49:35 +0000
commit10b17f5376bc329b2852b03375556cea4d6c7613 (patch)
treea7b2cee122c5f15a6607612043abb17e2abc6f02
parenta354eccd2cd9555ff1c50709fc754787196afeda (diff)
downloadFreeBSD-src-10b17f5376bc329b2852b03375556cea4d6c7613.zip
FreeBSD-src-10b17f5376bc329b2852b03375556cea4d6c7613.tar.gz
YUCK!
m_prepend doesn't fix m_pkthdr.len, use M_PREPEND instead, which does.. (Netgraph only)
-rw-r--r--sys/net/if_ethersubr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index f648fd5..d6046be 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -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;
}
OpenPOWER on IntegriCloud