OSDN Git Service

netfilter: Generalize ingress hook
authorLukas Wunner <lukas@wunner.de>
Wed, 11 Mar 2020 11:59:02 +0000 (12:59 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 18 Mar 2020 00:20:09 +0000 (01:20 +0100)
commit5418d3881e1f5d2cf9c1076eb8bd85770393a0e8
tree8c7be6ecc67c057377c838ec2ce592d7d658bee1
parentb030f194aed290705426c62e501201c0739405c5
netfilter: Generalize ingress hook

Prepare for addition of a netfilter egress hook by generalizing the
ingress hook introduced by commit e687ad60af09 ("netfilter: add
netfilter ingress hook after handle_ing() under unique static key").

In particular, rename and refactor the ingress hook's static inlines
such that they can be reused for an egress hook.

No functional change intended.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/netfilter_netdev.h
net/core/dev.c