summaryrefslogtreecommitdiff
path: root/include/linux/execmem.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2026-04-27 15:34:48 +0300
committerPablo Neira Ayuso <pablo@netfilter.org>2026-04-30 01:57:42 +0300
commit0a0b35f0bf10b4c2be607465f5c9c12c8681305b (patch)
tree1674357422dd77942ffca6818f25ecefd73a92c3 /include/linux/execmem.h
parent1049970d7583194eedc30e45a3c898b2cb1c30ba (diff)
downloadlinux-0a0b35f0bf10b4c2be607465f5c9c12c8681305b.tar.xz
netfilter: nft_fwd_netdev: add device and headroom validate with neigh forwarding
The ttl field has been decremented already and evaluation of this rule would proceed, just drop this packet instead if there is no destination device to forwards this packet. This is exactly what nf_dup already does in this case. Moreover, check for headroom and call skb_expand_head() like in the IP output path to ensure there is sufficient headroom when forwarding this via neigh_xmit(). Fixes: d32de98ea70f ("netfilter: nft_fwd_netdev: allow to forward packets via neighbour layer") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/linux/execmem.h')
0 files changed, 0 insertions, 0 deletions