aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorMaxime Henrion <mux@FreeBSD.org>2002-10-19 11:31:50 +0000
committerMaxime Henrion <mux@FreeBSD.org>2002-10-19 11:31:50 +0000
commitd7f4d27a7a5786d4f72d81a470e87ca11037e158 (patch)
treec92a65beb5bf174c94d71bff3353ec40242fd021 /sys/netinet
parentd1cf9ea2c4d424f77e8ed5efa5a8c3a2b1db219d (diff)
Notes
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_fw2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ip_fw2.c b/sys/netinet/ip_fw2.c
index 3714d5306617..5cfcc75d6524 100644
--- a/sys/netinet/ip_fw2.c
+++ b/sys/netinet/ip_fw2.c
@@ -851,7 +851,7 @@ realloc_dynamic_table(void)
free(ipfw_dyn_v, M_IPFW);
for (;;) {
ipfw_dyn_v = malloc(curr_dyn_buckets * sizeof(ipfw_dyn_rule *),
- M_IPFW, M_DONTWAIT | M_ZERO);
+ M_IPFW, M_NOWAIT | M_ZERO);
if (ipfw_dyn_v != NULL || curr_dyn_buckets <= 2)
break;
curr_dyn_buckets /= 2;
@@ -882,7 +882,7 @@ add_dyn_rule(struct ipfw_flow_id *id, u_int8_t dyn_type, struct ip_fw *rule)
}
i = hash_packet(id);
- r = malloc(sizeof *r, M_IPFW, M_DONTWAIT | M_ZERO);
+ r = malloc(sizeof *r, M_IPFW, M_NOWAIT | M_ZERO);
if (r == NULL) {
printf ("sorry cannot allocate state\n");
return NULL;
@@ -1981,7 +1981,7 @@ add_rule(struct ip_fw **head, struct ip_fw *input_rule)
if (*head == NULL && input_rule->rulenum != IPFW_DEFAULT_RULE)
return (EINVAL);
- rule = malloc(l, M_IPFW, M_DONTWAIT | M_ZERO);
+ rule = malloc(l, M_IPFW, M_NOWAIT | M_ZERO);
if (rule == NULL)
return (ENOSPC);