SCCS-vsn: sys/netinet/ip_input.c 7.4
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
- * @(#)ip_input.c 7.3 (Berkeley) %G%
+ * @(#)ip_input.c 7.4 (Berkeley) %G%
* If first fragment to arrive, create a reassembly queue.
*/
if (fp == 0) {
* If first fragment to arrive, create a reassembly queue.
*/
if (fp == 0) {
- if ((t = m_get(M_WAIT, MT_FTABLE)) == NULL)
+ if ((t = m_get(M_DONTWAIT, MT_FTABLE)) == NULL)
goto dropfrag;
fp = mtod(t, struct ipq *);
insque(fp, &ipq);
goto dropfrag;
fp = mtod(t, struct ipq *);
insque(fp, &ipq);
if (ip_nhops == 0)
return ((struct mbuf *)0);
if (ip_nhops == 0)
return ((struct mbuf *)0);
- m = m_get(M_WAIT, MT_SOOPTS);
+ m = m_get(M_DONTWAIT, MT_SOOPTS);
+ if (m == 0)
+ return ((struct mbuf *)0);
m->m_len = ip_nhops * sizeof(struct in_addr) + IPOPT_OFFSET + 1 + 1;
/*
m->m_len = ip_nhops * sizeof(struct in_addr) + IPOPT_OFFSET + 1 + 1;
/*