summaryrefslogtreecommitdiffstats
path: root/sys/contrib/ipfilter
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2003-01-21 08:56:16 +0000
committeralfred <alfred@FreeBSD.org>2003-01-21 08:56:16 +0000
commitbf8e8a6e8f0bd9165109f0a258730dd242299815 (patch)
treef16a2fb9fa7a7fbc4c19e981d278d5f6eb53234d /sys/contrib/ipfilter
parent2180deee00350fff613a1d1d1328eddc4c0ba9c8 (diff)
downloadFreeBSD-src-bf8e8a6e8f0bd9165109f0a258730dd242299815.zip
FreeBSD-src-bf8e8a6e8f0bd9165109f0a258730dd242299815.tar.gz
Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.
Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
Diffstat (limited to 'sys/contrib/ipfilter')
-rw-r--r--sys/contrib/ipfilter/netinet/fil.c6
-rw-r--r--sys/contrib/ipfilter/netinet/ip_fil.c18
2 files changed, 12 insertions, 12 deletions
diff --git a/sys/contrib/ipfilter/netinet/fil.c b/sys/contrib/ipfilter/netinet/fil.c
index 434e9e6..96432a1 100644
--- a/sys/contrib/ipfilter/netinet/fil.c
+++ b/sys/contrib/ipfilter/netinet/fil.c
@@ -1188,7 +1188,7 @@ logit:
mc = dupmsg(m);
# else
# if defined(__OpenBSD__) && (OpenBSD >= 199905)
- mc = m_copym2(m, 0, M_COPYALL, M_DONTWAIT);
+ mc = m_copym2(m, 0, M_COPYALL, M_NOWAIT);
# else
mc = m_copy(m, 0, M_COPYALL);
# endif
@@ -1587,7 +1587,7 @@ m_copyback(m0, off, len, cp)
off -= mlen;
totlen += mlen;
if (m->m_next == 0) {
- n = m_getclr(M_DONTWAIT, m->m_type);
+ n = m_getclr(M_NOWAIT, m->m_type);
if (n == 0)
goto out;
n->m_len = min(MLEN, len + off);
@@ -1606,7 +1606,7 @@ m_copyback(m0, off, len, cp)
if (len == 0)
break;
if (m->m_next == 0) {
- n = m_get(M_DONTWAIT, m->m_type);
+ n = m_get(M_NOWAIT, m->m_type);
if (n == 0)
break;
n->m_len = min(MLEN, len);
diff --git a/sys/contrib/ipfilter/netinet/ip_fil.c b/sys/contrib/ipfilter/netinet/ip_fil.c
index f7f6352..da64a49 100644
--- a/sys/contrib/ipfilter/netinet/ip_fil.c
+++ b/sys/contrib/ipfilter/netinet/ip_fil.c
@@ -1160,9 +1160,9 @@ fr_info_t *fin;
if (tcp->th_flags & TH_RST)
return -1; /* feedback loop */
# if (BSD < 199306) || defined(__sgi)
- m = m_get(M_DONTWAIT, MT_HEADER);
+ m = m_get(M_NOWAIT, MT_HEADER);
# else
- m = m_gethdr(M_DONTWAIT, MT_HEADER);
+ m = m_gethdr(M_NOWAIT, MT_HEADER);
# endif
if (m == NULL)
return ENOBUFS;
@@ -1337,10 +1337,10 @@ int dst;
# if (BSD < 199306) || defined(__sgi)
avail = MLEN;
- m = m_get(M_DONTWAIT, MT_HEADER);
+ m = m_get(M_NOWAIT, MT_HEADER);
# else
avail = MHLEN;
- m = m_gethdr(M_DONTWAIT, MT_HEADER);
+ m = m_gethdr(M_NOWAIT, MT_HEADER);
# endif
if (m == NULL)
return ENOBUFS;
@@ -1364,11 +1364,11 @@ int dst;
if (type == ICMP6_DST_UNREACH)
code = icmptoicmp6unreach[code];
- MGETHDR(m, M_DONTWAIT, MT_HEADER);
+ MGETHDR(m, M_NOWAIT, MT_HEADER);
if (!m)
return ENOBUFS;
- MCLGET(m, M_DONTWAIT);
+ MCLGET(m, M_NOWAIT);
if ((m->m_flags & M_EXT) == 0) {
m_freem(m);
return ENOBUFS;
@@ -1564,7 +1564,7 @@ frdest_t *fdp;
* problem.
*/
if (M_WRITABLE(m) == 0) {
- if ((m0 = m_dup(m, M_DONTWAIT)) != NULL) {
+ if ((m0 = m_dup(m, M_NOWAIT)) != NULL) {
m_freem(*mpp);
*mpp = m0;
m = m0;
@@ -1747,9 +1747,9 @@ frdest_t *fdp;
mhlen = sizeof (struct ip);
for (off = hlen + len; off < ip->ip_len; off += len) {
# ifdef MGETHDR
- MGETHDR(m, M_DONTWAIT, MT_HEADER);
+ MGETHDR(m, M_NOWAIT, MT_HEADER);
# else
- MGET(m, M_DONTWAIT, MT_HEADER);
+ MGET(m, M_NOWAIT, MT_HEADER);
# endif
if (m == 0) {
error = ENOBUFS;
OpenPOWER on IntegriCloud