Skip to content

net: ipv4/ipv6: new option to accept garp/untracked na only if in-network

Jaehee Park lkml netdev 3 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 2 repliesApplied 3/3
  2. v23 patches 1 replySuperseded
  3. v13 patches 1 replySuperseded

Patches in v3 All 3 applied

#Subject and filesSizeRepliesApplied
1/3net: ipv4: new arp_accept option to accept garp only if in-networkDocumentation/networking/ip-sysctl.rst include/linux/inetdevice.h net/ipv4/arp.c+29 -60 repliesApplied
2/3net: ipv6: new accept_untracked_na option to accept na only if in-networkDocumentation/networking/ip-sysctl.rst net/ipv6/addrconf.c net/ipv6/ndisc.c+55 -272 repliesApplied
3/3selftests: net: arp_ndisc_untracked_subnets: test for arp_accept and accept_untracked_natools/testing/selftests/net/Makefile tools/testing/selftests/net/arp_ndisc_untracked_subnets.sh+309 -00 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 net-next 0/3] net: ipv4/ipv6: new option to accept garp/untracked na only if in-network

The first patch adds an option to learn a neighbor from garp only if the source ip is in the same subnet as an address configured on the interface that received the garp message. The option has been added to arp_accept in ipv4.

The same feature has been added to ndisc (patch 2). For ipv6, the subnet filtering knob is an extension of the accept_untracked_na option introduced in these patches:
https://lore.kernel.org/all/[email protected]/t/
https://lore.kernel.org/netdev/[email protected]/T/

The third patch contains selftests for testing the different options for accepting arp and neighbor advertisements.

v3
- fixed tabs in the selftest

v2
- reworded documentation and commit messages
- cleanup selftest

Jaehee Park (3):
net: ipv4: new arp_accept option to accept garp only if in-network
net: ipv6: new accept_untracked_na option to accept na only if
in-network
selftests: net: arp_ndisc_untracked_subnets: test for arp_accept and
accept_untracked_na

 Documentation/networking/ip-sysctl.rst        |  52 +--
 include/linux/inetdevice.h                    |   2 +-
 net/ipv4/arp.c                                |  24 +-
 net/ipv6/addrconf.c                           |   2 +-
 net/ipv6/ndisc.c                              |  29 +-
 tools/testing/selftests/net/Makefile          |   1 +
 .../net/arp_ndisc_untracked_subnets.sh        | 308 ++++++++++++++++++
 7 files changed, 389 insertions(+), 29 deletions(-)
 create mode 100755 tools/testing/selftests/net/arp_ndisc_untracked_subnets.sh
Signature · 1 line
2.30.2