mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-29 12:03:03 +00:00
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.
This commit is contained in:
parent
020732be39
commit
2d01d331c6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132469
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user