]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC: 215207
authorgnn <gnn@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 12 Jan 2011 20:44:11 +0000 (20:44 +0000)
committergnn <gnn@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 12 Jan 2011 20:44:11 +0000 (20:44 +0000)
commit8d88ad5b5d65509754bd09c90d0d529addac68e5
tree89bf32bcb3b065f4f58a2f2d620c66527ba07875
parent6e2ea3407609fe278b5b63187374462e27737be2
MFC: 215207

Add a queue to hold packets while we await an ARP reply.

When a fast machine first brings up some non TCP networking program
it is quite possible that we will drop packets due to the fact that
only one packet can be held per ARP entry.  This leads to packets
being missed when a program starts or restarts if the ARP data is
not currently in the ARP cache.

This code adds a new sysctl, net.link.ether.inet.maxhold, which defines
a system wide maximum number of packets to be held in each ARP entry.
Up to maxhold packets are queued until an ARP reply is received or
the ARP times out.  The default setting is the old value of 1
which has been part of the BSD networking code since time
immemorial.

Expose the time we hold an incomplete ARP entry by adding
the sysctl net.link.ether.inet.wait, which defaults to 20
seconds, the value used when the new ARP code was added..

Reviewed by: bz, rpaulo

git-svn-id: svn://svn.freebsd.org/base/stable/8@217329 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/net/if_llatbl.c
sys/net/if_llatbl.h
sys/netinet/if_ether.c
sys/netinet/in.c
tools/regression/netinet/arphold/Makefile [new file with mode: 0644]
tools/regression/netinet/arphold/arphold.c [new file with mode: 0644]
tools/regression/netinet/arphold/arphold.t [new file with mode: 0644]