diff options
author | David S. Miller <davem@davemloft.net> | 2022-02-21 14:44:30 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-02-21 14:44:30 +0300 |
commit | dd3573487d9030e30c555cc6044f5d8652c66c6f (patch) | |
tree | 34d7b07801d3c76b019e3512581bc88d021a78ee /include | |
parent | 0f6938eb2ecc572896ef9ad11238eb2846dcaad3 (diff) | |
parent | 25bd462fa42f58ca43c881b486726bb81be5aa2b (diff) | |
download | linux-dd3573487d9030e30c555cc6044f5d8652c66c6f.tar.xz |
Merge branch 'ipv4-invalidate-broadcast-neigh-upon-address-addition'
Ido Schimmel says:
====================
ipv4: Invalidate neighbour for broadcast address upon address addition
Patch #1 solves a recently reported issue [1]. See detailed description
in the changelog.
Patch #2 adds a matching test case.
Targeting at net-next since as far as I can tell this use case never
worked.
There are no regressions in fib_tests.sh with this change:
# ./fib_tests.sh
...
Tests passed: 186
Tests failed: 0
[1] https://lore.kernel.org/netdev/55a04a8f-56f3-f73c-2aea-2195923f09d1@huawei.com/
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/arp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/arp.h b/include/net/arp.h index 031374ac2f22..d7ef4ec71dfe 100644 --- a/include/net/arp.h +++ b/include/net/arp.h @@ -65,6 +65,7 @@ void arp_send(int type, int ptype, __be32 dest_ip, const unsigned char *src_hw, const unsigned char *th); int arp_mc_map(__be32 addr, u8 *haddr, struct net_device *dev, int dir); void arp_ifdown(struct net_device *dev); +int arp_invalidate(struct net_device *dev, __be32 ip, bool force); struct sk_buff *arp_create(int type, int ptype, __be32 dest_ip, struct net_device *dev, __be32 src_ip, |