-
- Downloads
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>
Showing
- include/linux/netfilter.h 12 additions, 2 deletionsinclude/linux/netfilter.h
- net/netfilter/core.c 3 additions, 3 deletionsnet/netfilter/core.c
- net/netfilter/nf_log.c 6 additions, 6 deletionsnet/netfilter/nf_log.c
- net/netfilter/nf_queue.c 6 additions, 6 deletionsnet/netfilter/nf_queue.c
- net/netfilter/x_tables.c 10 additions, 8 deletionsnet/netfilter/x_tables.c
Loading
Please register or sign in to comment