diff options
author | jesper <jesper@FreeBSD.org> | 2001-06-10 11:04:10 +0000 |
---|---|---|
committer | jesper <jesper@FreeBSD.org> | 2001-06-10 11:04:10 +0000 |
commit | ce21e1d44926ccec408abde6b84338ef76570223 (patch) | |
tree | 809e04dc67113e34e76f8cbfb6a9550ef3850c28 /sys/netinet/ip_input.c | |
parent | 6f6763ef9f355e973c5ea7a255d3146f32cfa893 (diff) | |
download | FreeBSD-src-ce21e1d44926ccec408abde6b84338ef76570223.zip FreeBSD-src-ce21e1d44926ccec408abde6b84338ef76570223.tar.gz |
Make the default value of net.inet.ip.maxfragpackets and
net.inet6.ip6.maxfragpackets dependent on nmbclusters,
defaulting to nmbclusters / 4
Reviewed by: bde
MFC after: 1 week
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r-- | sys/netinet/ip_input.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 4bf4473..7cd8568 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -126,7 +126,7 @@ SYSCTL_INT(_net_inet_ip, IPCTL_KEEPFAITH, keepfaith, CTLFLAG_RW, "Enable packet capture for FAITH IPv4->IPv6 translater daemon"); static int ip_nfragpackets = 0; -static int ip_maxfragpackets = 200; +static int ip_maxfragpackets; /* initialized in ip_init() */ SYSCTL_INT(_net_inet_ip, OID_AUTO, maxfragpackets, CTLFLAG_RW, &ip_maxfragpackets, 0, "Maximum number of IPv4 fragment reassembly queue entries"); @@ -254,7 +254,8 @@ ip_init() for (i = 0; i < IPREASS_NHASH; i++) TAILQ_INIT(&ipq[i]); - maxnipq = nmbclusters/4; + maxnipq = nmbclusters / 4; + ip_maxfragpackets = nmbclusters / 4; #ifndef RANDOM_IP_ID ip_id = time_second & 0xffff; |