]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: allow warming up the ARP cache with request type gratuitous ARP
authorOctavian Purdila <opurdila@ixiacom.com>
Mon, 18 Jan 2010 12:58:44 +0000 (12:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Jan 2010 10:12:34 +0000 (02:12 -0800)
commita5ecf4f1b0be44e055b6e6734bb2f977c907c5b5
tree2ceaf1e1e49664712cc13bb07833538c8723f645
parentff4860c12f715f188a008efb95ad34150dc072c1
ipv4: allow warming up the ARP cache with request type gratuitous ARP

If the per device ARP_ACCEPT option is enable, currently we only allow
creating new ARP cache entries for response type gratuitous ARP.

Allowing gratuitous ARP to create new ARP entries (not only to update
existing ones) is useful when we want to avoid unnecessary delays for
the first packet of a stream.

This patch allows request type gratuitous ARP to create new ARP cache
entries as well. This is useful when we want to populate the ARP cache
entries for a large number of hosts on the same LAN.

Signed-off-by: Octavian Purdila <opurdila@ixiacom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/ip-sysctl.txt
net/ipv4/arp.c