aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_subr.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2003-02-19 05:47:46 +0000
committerWarner Losh <imp@FreeBSD.org>2003-02-19 05:47:46 +0000
commita163d034fadcfb4a25ca34a2ba5f491c47b6ff69 (patch)
tree9e20e320fe15ae4bf68f8335fcf9d3e71d3b3614 /sys/netinet/tcp_subr.c
parent8f3e32c2b6b9f392e096f096653596f55f2134ae (diff)
downloadsrc-a163d034fadcfb4a25ca34a2ba5f491c47b6ff69.tar.gz
src-a163d034fadcfb4a25ca34a2ba5f491c47b6ff69.zip
Back out M_* changes, per decision of the TRB.
Approved by: trb
Notes
Notes: svn path=/head/; revision=111119
Diffstat (limited to 'sys/netinet/tcp_subr.c')
-rw-r--r--sys/netinet/tcp_subr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index d12c8991e64b..844f279f081b 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -332,7 +332,7 @@ tcp_maketemplate(tp)
struct mbuf *m;
struct tcptemp *n;
- m = m_get(M_NOWAIT, MT_HEADER);
+ m = m_get(M_DONTWAIT, MT_HEADER);
if (m == NULL)
return (0);
m->m_len = sizeof(struct tcptemp);
@@ -412,7 +412,7 @@ tcp_respond(tp, ipgen, th, m, ack, seq, flags)
}
}
if (m == 0) {
- m = m_gethdr(M_NOWAIT, MT_HEADER);
+ m = m_gethdr(M_DONTWAIT, MT_HEADER);
if (m == NULL)
return;
tlen = 0;
@@ -901,7 +901,7 @@ tcp_pcblist(SYSCTL_HANDLER_ARGS)
if (error)
return error;
- inp_list = malloc(n * sizeof *inp_list, M_TEMP, 0);
+ inp_list = malloc(n * sizeof *inp_list, M_TEMP, M_WAITOK);
if (inp_list == 0)
return ENOMEM;
@@ -1495,7 +1495,7 @@ ipsec_hdrsiz_tcp(tp)
if ((tp == NULL) || ((inp = tp->t_inpcb) == NULL))
return 0;
- MGETHDR(m, M_NOWAIT, MT_DATA);
+ MGETHDR(m, M_DONTWAIT, MT_DATA);
if (!m)
return 0;