[iptables PATCH v3 0/6] Some more code de-duplication

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

 



No change in patches 1 to 3 and 6.

Patch 4 is new: Extend program_version field with variant string instead
of introducing a separate field. This made patch 5 a bit smaller, due to
less differences between basic_exit_err() and xtables_exit_error().

Phil Sutter (6):
  xshared: Share print_match_save() between legacy ip*tables
  xshared: Share a common printhelp function
  xshared: Share exit_tryhelp()
  xtables_globals: Embed variant name in .program_version
  libxtables: Extend basic_exit_err()
  iptables-*-restore: Drop pointless line reference

 iptables/ip6tables.c        | 157 ++----------------------------------
 iptables/iptables-restore.c |   2 +-
 iptables/iptables-save.c    |   2 +-
 iptables/iptables.c         | 157 ++----------------------------------
 iptables/xshared.c          | 143 ++++++++++++++++++++++++++++++++
 iptables/xshared.h          |   5 ++
 iptables/xtables-arp.c      |   4 +-
 iptables/xtables-eb.c       |  10 +--
 iptables/xtables-restore.c  |   2 +-
 iptables/xtables-save.c     |   2 +-
 iptables/xtables.c          | 135 +++----------------------------
 libxtables/xtables.c        |  12 +++
 12 files changed, 194 insertions(+), 437 deletions(-)

-- 
2.33.0




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

  Powered by Linux