Skip to content

Netfilter updates for net-next

Pablo Neira Ayuso netdev netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9netfilter: bridge: add reject supportnet/bridge/netfilter/Kconfig net/bridge/netfilter/Makefile net/bridge/netfilter/nft_reject_bridge.c+74 -00 replies
2/9netfilter: nf_tables: simplify set dump through netlinknet/netfilter/nf_tables_api.c+27 -1040 replies
3/9netfilter: xt_hashlimit: perform garbage collection from process contextnet/netfilter/xt_hashlimit.c+16 -150 replies
4/9netfilter: nf_conntrack: remove exceptional & on function namenet/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c+1 -10 replies
5/9netfilter: xt_LED: don't output error message redundantlynet/netfilter/xt_LED.c+1 -30 replies
6/9netfilter: kill remnants of ulog targetsinclude/net/netns/x_tables.h net/bridge/netfilter/Makefile net/ipv4/netfilter/Makefile+0 -80 replies
7/9netfilter: nfnetlink_acct: dump unmodified nfacct flagsnet/netfilter/nfnetlink_acct.c+3 -10 replies
8/9netfilter: nfnetlink_acct: avoid using NFACCT_F_OVERQUOTA with bit helper functionsnet/netfilter/nfnetlink_acct.c+5 -30 replies
9/9netfilter: nf_tables: check for unset NFTA_SET_ELEM_LIST_ELEMENTS attributenet/netfilter/nf_tables_api.c+6 -00 replies

Reviews trailers per patch

2 of 9 patches have a Reviewed-by or Acked-by.

PatchFlorian WestphalJulia Lawall
1/9
2/9
3/9R-b
4/9A-b
5/9
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/9] Netfilter updates for net-next

Hi David,

The following patchset contains netfilter updates for net-next, they are:

1) Add the reject expression for the nf_tables bridge family, this allows us to send explicit reject (TCP RST / ICMP dest unrech) to the packets matching a rule.

2) Simplify and consolidate the nf_tables set dumping logic. This uses netlink control->data to filter out depending on the request.

3) Perform garbage collection in xt_hashlimit using a workqueue instead of a timer, which is problematic when many entries are in place in the tables, from Eric Dumazet.

4) Remove leftover code from the removed ulog target support, from Paul Bolle.

5) Dump unmodified flags in the netfilter packet accounting when resetting counters, so userspace knows that a counter was in overquota situation, from Alexey Perevalov.

6) Fix wrong usage of the bitwise functions in nfnetlink_acct, also from Alexey.

7) Fix a crash when adding new set element with an empty NFTA_SET_ELEM_LIST attribute.

This patchset also includes a couple of cleanups for xt_LED from Duan Jiong and for nf_conntrack_ipv4 (using coccinelle) from Himangi Saraogi.

You can pull these changes from:

git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git

Thanks!

----------------------------------------------------------------

The following changes since commit 8fd90bb889635fa1e7f80a3950948cc2e74c1446:

Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (2014-07-22 00:44:59 -0700)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git master

for you to fetch changes up to 7d5570ca8972aad58de0b4ad03a5e991c41d4ce2:

netfilter: nf_tables: check for unset NFTA_SET_ELEM_LIST_ELEMENTS attribute (2014-07-31 21:11:43 +0200)

----------------------------------------------------------------
Alexey Perevalov (2):
netfilter: nfnetlink_acct: dump unmodified nfacct flags
netfilter: nfnetlink_acct: avoid using NFACCT_F_OVERQUOTA with bit helper functions

Duan Jiong (1):
netfilter: xt_LED: don't output error message redundantly

Eric Dumazet (1):
netfilter: xt_hashlimit: perform garbage collection from process context

Himangi Saraogi (1):
netfilter: nf_conntrack: remove exceptional & on function name

Pablo Neira Ayuso (3):
netfilter: bridge: add reject support
netfilter: nf_tables: simplify set dump through netlink
netfilter: nf_tables: check for unset NFTA_SET_ELEM_LIST_ELEMENTS attribute

Paul Bolle (1):
netfilter: kill remnants of ulog targets

 include/net/netns/x_tables.h                   |    6 --
 net/bridge/netfilter/Kconfig                   |    6 ++
 net/bridge/netfilter/Makefile                  |    2 +-
 net/bridge/netfilter/nft_reject_bridge.c       |   67 ++++++++++++
 net/ipv4/netfilter/Makefile                    |    1 -
 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c |    2 +-
 net/netfilter/nf_tables_api.c                  |  137 ++++++------------------
 net/netfilter/nfnetlink_acct.c                 |   12 ++-
 net/netfilter/xt_LED.c                         |    4 +-
 net/netfilter/xt_hashlimit.c                   |   31 +++---
 10 files changed, 133 insertions(+), 135 deletions(-)
 create mode 100644 net/bridge/netfilter/nft_reject_bridge.c