summaryrefslogtreecommitdiffstats
path: root/sys/netinet/raw_ip.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-07-20 20:52:30 +0000
committerrwatson <rwatson@FreeBSD.org>2004-07-20 20:52:30 +0000
commit4557c47e2f0db8fa10647f2394e17a3073358390 (patch)
tree3f664e55605845a7867e9ab4660b596ddc1fb897 /sys/netinet/raw_ip.c
parentab2a462550eaef118bef70261ce42559f1120ca4 (diff)
downloadFreeBSD-src-4557c47e2f0db8fa10647f2394e17a3073358390.zip
FreeBSD-src-4557c47e2f0db8fa10647f2394e17a3073358390.tar.gz
M_PREPEND() the IP header on to the front of an outgoing raw IP packet
using M_DONTWAIT rather than M_WAITOK to avoid sleeping on memory while holding a mutex.
Diffstat (limited to 'sys/netinet/raw_ip.c')
-rw-r--r--sys/netinet/raw_ip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c
index dd79877..ade4920 100644
--- a/sys/netinet/raw_ip.c
+++ b/sys/netinet/raw_ip.c
@@ -261,7 +261,7 @@ rip_output(struct mbuf *m, struct socket *so, u_long dst)
m_freem(m);
return(EMSGSIZE);
}
- M_PREPEND(m, sizeof(struct ip), M_TRYWAIT);
+ M_PREPEND(m, sizeof(struct ip), M_DONTWAIT);
if (m == NULL)
return(ENOBUFS);
OpenPOWER on IntegriCloud