diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-07-20 20:52:30 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-07-20 20:52:30 +0000 |
commit | 4557c47e2f0db8fa10647f2394e17a3073358390 (patch) | |
tree | 3f664e55605845a7867e9ab4660b596ddc1fb897 /sys/netinet/raw_ip.c | |
parent | ab2a462550eaef118bef70261ce42559f1120ca4 (diff) | |
download | FreeBSD-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.c | 2 |
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); |