netfilter: flow table support for IPv4
authorPablo Neira Ayuso <pablo@netfilter.org>
Sun, 7 Jan 2018 00:04:15 +0000 (01:04 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 8 Jan 2018 17:11:08 +0000 (18:11 +0100)
commit97add9f0d66da9898da325f84e80533db9cc0ced
tree3391d184c371884e38a0483655cb167b23c2e488
parentac2a66665e231847cab11b8c8e844ce43207dd2e
netfilter: flow table support for IPv4

This patch adds the IPv4 flow table type, that implements the datapath
flow table to forward IPv4 traffic. Rationale is:

1) Look up for the packet in the flow table, from the ingress hook.
2) If there's a hit, decrement ttl and pass it on to the neighbour layer
   for transmission.
3) If there's a miss, packet is passed up to the classic forwarding
   path.

This patch also supports layer 3 source and destination NAT.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv4/netfilter/Kconfig
net/ipv4/netfilter/Makefile
net/ipv4/netfilter/nf_flow_table_ipv4.c [new file with mode: 0644]