]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: add inet ingress support
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 7 Oct 2020 23:14:47 +0000 (01:14 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 11 Oct 2020 23:57:34 +0000 (01:57 +0200)
commit1ffa4d0cd35c9d0eb2964feed25a9e9fcb0f4850
tree24e82983b0beedc92c51921f49f13089bfb20ae2
parent7bbb588d18d7984f0e56467261e354b2fa134390
netfilter: add inet ingress support

This patch adds the NF_INET_INGRESS pseudohook for the NFPROTO_INET
family. This is a mapping this new hook to the existing NFPROTO_NETDEV
and NF_NETDEV_INGRESS hook. The hook does not guarantee that packets are
inet only, users must filter out non-ip traffic explicitly.

This infrastructure makes it easier to support this new hook in nf_tables.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/uapi/linux/netfilter.h
net/netfilter/core.c