Skip to content

IPtablestng/Kernel - New Framework For IPtables

hamid jafarian netdev netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9IPtablestng/Kernel - some changes for 'x'include/linux/netfilter/x_tables.h net/netfilter/x_tables.c+24 -50 replies
2/9IPtablestng/KernelSpace - create pkt_tables.hinclude/linux/netfilter/pkt_tables.h+542 -00 replies
3/9IPtablestng/KernelSpace - create pkt_tables.cnet/netfilter/pkt_tables.c+2203 -00 replies
4/9IPtablestng/KernelSpace - create tuple classifierinclude/linux/netfilter_ipv4/ipc_tuple.h net/ipv4/netfilter/ipc_tuple.c+369 -00 replies
5/9IPtablestng/KernelSpace - patch build filesnet/ipv4/netfilter/Kconfig net/ipv4/netfilter/Makefile net/netfilter/Kconfig +1 more+25 -00 replies
6/9IPtablestng/KernelSpace - patch ip_tables.hinclude/linux/netfilter_ipv4/ip_tables.h+26 -2050 replies
7/9IPtablestng/KernelSpace - patch ip_tables.cnet/ipv4/netfilter/ip_tables.c+180 -21760 replies
8/9IPtablestng/KernelSpace - patch tables modulesnet/ipv4/netfilter/iptable_filter.c net/ipv4/netfilter/iptable_mangle.c net/ipv4/netfilter/iptable_raw.c +1 more+62 -1790 replies
9/9IPtablestng/KernelSpace - patch extensions modulesnet/ipv4/netfilter/ipt_CLUSTERIP.c net/ipv4/netfilter/ipt_ECN.c net/ipv4/netfilter/ipt_REJECT.c+11 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/09]IPtablestng/Kernel - New Framework For IPtables

New Framework for IPtables

beside some powerfull & usefull features of iptables, this framework add this new features to the Iptables:
1- Use link list for rule storage instead of continues memory.
2- Move management activities to the kernel side.
3- Command base communication between Kernel/User spaces.
4- New semantics & structures:
4-1: tables as builtin/userdefined chains container: store them in link list
4-2: chains as entry container: store them in link list
4-3: ...
5- Classifiers as search engine in chains instead of linear search:
In This Version the Implementation of Classification algorithms Is like of Matches and Targets but doesn.t have User Space implementation. Every chain can use its classifier.
By this ability (use/implement different classification algorithms), developers/administrators can classify their network packet flows in defferent ways base on the packet types or their needs and also more quickly than before.
6- Common implementation for all of the tables of different network families(as pkt_tables) instead of copy based code.
7- ...

this implementation is for kernel 2.6.25 and supports IPv4.

patch summary:

 A  include/linux/netfilter/pkt_tables.h
 M  include/linux/netfilter/x_tables.h
 M  include/linux/netfilter_ipv4/ip_tables.h
 A  include/linux/netfilter_ipv4/ipc_tuple.h
 M  net/ipv4/netfilter/Kconfig
 M  net/ipv4/netfilter/Makefile
 M  net/ipv4/netfilter/ip_tables.c
 A  net/ipv4/netfilter/ipc_tuple.c
 M  net/ipv4/netfilter/ipt_CLUSTERIP.c
 M  net/ipv4/netfilter/ipt_ECN.c
 M  net/ipv4/netfilter/ipt_REJECT.c
 M  net/ipv4/netfilter/iptable_filter.c
 M  net/ipv4/netfilter/iptable_mangle.c
 M  net/ipv4/netfilter/iptable_raw.c
 M  net/ipv4/netfilter/nf_nat_rule.c
 M  net/netfilter/Kconfig
 M  net/netfilter/Makefile
 A  net/netfilter/pkt_tables.c
 M  net/netfilter/x_tables.c
 include/linux/netfilter/pkt_tables.h     |  542 +++++++
 include/linux/netfilter/x_tables.h       |   15 +
 include/linux/netfilter_ipv4/ip_tables.h |  231 +---
 include/linux/netfilter_ipv4/ipc_tuple.h |   69 +
 net/ipv4/netfilter/Kconfig               |   13 +
 net/ipv4/netfilter/Makefile              |    3 +
 net/ipv4/netfilter/ip_tables.c           | 2356 +++---------------------------
 net/ipv4/netfilter/ipc_tuple.c           |  300 ++++
 net/ipv4/netfilter/ipt_CLUSTERIP.c       |   16 +-
 net/ipv4/netfilter/ipt_ECN.c             |    2 +-
 net/ipv4/netfilter/ipt_REJECT.c          |    4 +-
 net/ipv4/netfilter/iptable_filter.c      |   57 +-
 net/ipv4/netfilter/iptable_mangle.c      |   69 +-
 net/ipv4/netfilter/iptable_raw.c         |   55 +-
 net/ipv4/netfilter/nf_nat_rule.c         |   60 +-
 net/netfilter/Kconfig                    |    8 +
 net/netfilter/Makefile                   |    1 +
 net/netfilter/pkt_tables.c               | 2203 ++++++++++++++++++++++++++++
 net/netfilter/x_tables.c                 |   14 +-
 19 files changed, 3442 insertions(+), 2576 deletions(-)