[iptables PATCH 0/7] De-duplicate code here and there

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A series of unrelated patches reducing code size in different ways:

Patch 1 is a typical "move function to xshared.c for common use", patch
2 eliminates some c'n'p programming in nft-shared.c, patch 3 merges
libipt_LOG.c and libip6t_LOG.c, patch 4 removes code from libebt_ip.c by
including the right header, patch 5 drops some local IP address parsers
in favor of the respective libxtables function and patches 6 and 7 move
duplicate definitions and code into a header shared by multiple
extensions.

Phil Sutter (7):
  xshared: Share make_delete_mask() between ip{,6}tables
  nft-shared: Introduce port_match_single_to_range()
  extensions: libip*t_LOG: Merge extensions
  extensions: libebt_ip: Include kernel header
  extensions: libebt_arp, libebt_ip: Use xtables_ipparse_any()
  extensions: Collate ICMP types/codes in libxt_icmp.h
  extensions: Unify ICMP parser into libxt_icmp.h

 extensions/libebt_arp.c                   |  89 +-------
 extensions/libebt_arp.t                   |   3 +
 extensions/libebt_ip.c                    | 262 ++--------------------
 extensions/libebt_ip6.c                   | 111 +--------
 extensions/libip6t_icmp6.c                |  97 +-------
 extensions/libipt_LOG.c                   | 250 ---------------------
 extensions/libipt_icmp.c                  | 110 +--------
 extensions/{libip6t_LOG.c => libxt_LOG.c} | 158 +++++--------
 extensions/libxt_icmp.h                   | 242 +++++++++++++++++++-
 include/linux/netfilter_bridge/ebt_ip.h   |  15 +-
 iptables/ip6tables.c                      |  38 +---
 iptables/iptables.c                       |  38 +---
 iptables/nft-shared.c                     | 130 +++--------
 iptables/xshared.c                        |  34 +++
 iptables/xshared.h                        |   4 +
 15 files changed, 409 insertions(+), 1172 deletions(-)
 delete mode 100644 extensions/libipt_LOG.c
 rename extensions/{libip6t_LOG.c => libxt_LOG.c} (52%)

-- 
2.38.0




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux