Skip to content
  • Neil Horman's avatar
    arp: allow arp processing to honor per interface arp_accept sysctl · 124d37e9
    Neil Horman authored
    
    
    I found recently that the arp_process function which handles all of our received
    arp frames, is using IPV4_DEVCONF_ALL macro to check the state of the arp_process
    flag.  This seems wrong, as it implies that either none or all of the network
    interfaces accept gratuitous arps.  This patch corrects that, allowing
    per-interface arp_accept configuration to deviate from the all setting.  Note
    this also brings us into line with the way the arp_filter setting is handled
    during arp_process execution.
    
    Tested this myself on my home network, and confirmed it works as expected.
    
    Signed-off-by: default avatarNeil Horman <nhorman@tuxdriver.com>
    CC: "David S. Miller" <davem@davemloft.net>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    124d37e9