netfilter: Introduce NFPROTO_* constants
authorJan Engelhardt <jengelh@medozas.de>
Wed, 8 Oct 2008 09:35:00 +0000 (11:35 +0200)
committerPatrick McHardy <kaber@trash.net>
Wed, 8 Oct 2008 09:35:00 +0000 (11:35 +0200)
commit7e9c6eeb136a46dfd941852803b3a9dd78939b69
tree441776a1c5b750f0e11b56e87b9804144d0b72ae
parent079aa88fe7172b7650c7cf2c0bc01662bafea236
netfilter: Introduce NFPROTO_* constants

The netfilter subsystem only supports a handful of protocols (much
less than PF_*) and even non-PF protocols like ARP and
pseudo-protocols like PF_BRIDGE. By creating NFPROTO_*, we can earn a
few memory savings on arrays that previously were always PF_MAX-sized
and keep the pseudo-protocols to ourselves.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
include/linux/netfilter.h
net/netfilter/core.c
net/netfilter/nf_log.c
net/netfilter/nf_queue.c
net/netfilter/x_tables.c