sample: bpf: xdp_router_ipv4: Allow the kernel to send arp requests
authorLorenzo Bianconi <lorenzo@kernel.org>
Wed, 25 May 2022 09:44:27 +0000 (11:44 +0200)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 2 Jun 2022 23:26:54 +0000 (16:26 -0700)
commit200a89e3e88786b52bc1dd5f26a310c097f4c6a7
treecf15ebcfc2eb9b415a9bebe91457edf130b63120
parent610cd93b44ce1e7323878ef5f7b23dc10c7d45b7
sample: bpf: xdp_router_ipv4: Allow the kernel to send arp requests

Forward the packet to the kernel if the gw router mac address is missing
in to trigger ARP discovery.

Fixes: 85bf1f51691c ("samples: bpf: Convert xdp_router_ipv4 to XDP samples helper")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/60bde5496d108089080504f58199bcf1143ea938.1653471558.git.lorenzo@kernel.org
samples/bpf/xdp_router_ipv4.bpf.c