aboutsummaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorAndre Oppermann <andre@FreeBSD.org>2006-11-02 17:37:22 +0000
committerAndre Oppermann <andre@FreeBSD.org>2006-11-02 17:37:22 +0000
commit5e20f43d31ed44a5b770dc4757a1517aa62fa244 (patch)
tree8d00998734eae5e0a44b4233c21fbe5312956685 /sys/net
parent593bbd21955c092921e03dbe52d261939267da4c (diff)
Notes
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_tap.c3
-rw-r--r--sys/net/if_tun.c2
-rw-r--r--sys/net/ppp_tty.c2
3 files changed, 4 insertions, 3 deletions
diff --git a/sys/net/if_tap.c b/sys/net/if_tap.c
index 1f0ed8984ce4..930aa7277141 100644
--- a/sys/net/if_tap.c
+++ b/sys/net/if_tap.c
@@ -827,7 +827,8 @@ tapwrite(struct cdev *dev, struct uio *uio, int flag)
return (EIO);
}
- if ((m = m_uiotombuf(uio, M_DONTWAIT, 0, ETHER_ALIGN)) == NULL) {
+ if ((m = m_uiotombuf(uio, M_DONTWAIT, 0, ETHER_ALIGN,
+ M_PKTHDR)) == NULL) {
ifp->if_ierrors ++;
return (error);
}
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c
index 078766905e2f..610c4b53f6e0 100644
--- a/sys/net/if_tun.c
+++ b/sys/net/if_tun.c
@@ -790,7 +790,7 @@ tunwrite(struct cdev *dev, struct uio *uio, int flag)
return (EIO);
}
- if ((m = m_uiotombuf(uio, M_DONTWAIT, 0, 0)) == NULL) {
+ if ((m = m_uiotombuf(uio, M_DONTWAIT, 0, 0, M_PKTHDR)) == NULL) {
ifp->if_ierrors++;
return (error);
}
diff --git a/sys/net/ppp_tty.c b/sys/net/ppp_tty.c
index 609c58a9d43a..a90bfc8107dc 100644
--- a/sys/net/ppp_tty.c
+++ b/sys/net/ppp_tty.c
@@ -384,7 +384,7 @@ pppwrite(tp, uio, flag)
return (EMSGSIZE);
s = spltty();
- if ((m = m_uiotombuf(uio, M_DONTWAIT, 0, 0)) == NULL) {
+ if ((m = m_uiotombuf(uio, M_DONTWAIT, 0, 0, M_PKTHDR)) == NULL) {
splx(s);
return (ENOBUFS);
}