summaryrefslogtreecommitdiffstats
path: root/iptables-save.c
Commit message (Collapse)AuthorAgeFilesLines
* iptables --list-rules commandHenrik Nordstrom2008-05-131-205/+0
| | | | | | | | | | | | | | | | | | Adds iptables --list-rules (-S) command, acting as a combination of iptables --list and iptables-save. The primary motivation behind this patch is to get iptables-save like output capabilities in iptables-restore, allowing "iptables-restore -n" to be used as a consistent API to iptables for all kind of operations, not only blind updates.. As a bonus iptables also gets the capability of printing the rules as-is. This completely replaces the earlier patch which added the --rules option. Henrik Nordstrom <henrik@henriknordstrom.net>
* iptables-save:remove unnecessary code.Shan Wei2008-04-211-13/+0
| | | | | | The following code is never be used. It should be removed. Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
* Remove old functions, constantsJan Engelhardt2008-04-151-4/+4
|
* iptables: use C99 lists for struct optionsGáspár Lajos2008-04-141-6/+6
|
* Combine IP{,6}T_LIB_DIR into XTABLES_LIBDIRJan Engelhardt2008-04-131-3/+8
|
* Fix all remaining warnings (missing declarations, missing prototypes)Jan Engelhardt2008-04-131-0/+1
|
* Fix -Wshadow warnings and clean up xt_sctp.hJan Engelhardt2008-04-061-5/+5
| | | | | Note: xt_sctp.h is still not merged upstream in the kernel as of this commit. But a refactoring was really needed.
* whitespace cleanupMax Kellermann2008-01-291-11/+11
| | | | Max Kellermann <max@duempel.org>
* iptables and NO_SHARED_LIBS/dlfcn.hMike Frysinger2007-12-191-1/+4
| | | | | | | | if NO_SHARED_LIBS is defined, then iptables shouldnt even include dlfcn.h. otherwise you hit a build failure when using toolchains that do not provide dlfcn.h because they do not support shared objects. Signed-Off-By: Mike Frysinger <vapier@gentoo.org>
* iptables: always print mask in iptables-saveJan Engelhardt2007-11-251-3/+15
| | | | | | | | | | | | | iptables prints the mask as a prefix length if it is valid; This patch makes iptables-save do the same. Also, iptables-save will always print "/32" in the "-s addr/32" case now. This reduces the amount of code external parsing scripts need to provide to properly parse iptables-save output. ip6tables-save already does the right thing, so no change there. Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
* Don't silenty exit on failure to open /proc/net/{ip,ip6}_tables_namesVictor Stinner2007-10-181-1/+3
| | | | Victor Stinner <victor.stinner@inl.fr>
* Fix missing newlines in iptables-save/restore output (Pavol Rusnak ↵Pavel Rusnak2007-05-101-1/+1
| | | | | | <prusnak@suse.cz>) Bugzilla #568
* Fix iptables-save not printing -s !0/0 and -d !0/0 as well as ip6tablesPatrick McHardy2006-12-021-1/+1
| | | | unnecessarily printing the address. Base on patch by Daniel De Graaf.
* fix compilation of iptables on [old] systems that don't have IPT_F_GOTOHarald Welte2005-11-241-0/+4
|
* add 'goto' support (Henrik Nordstrom <hno@marasystems.com>)Henrik Nordstrom2005-11-051-1/+1
|
* poll goto specific changes out of trunkHarald WeltePablo Neira2005-04-151-1/+1
|
* fix iptables-save/restore of goto (Jonas Berlin)Jonas Berlin2005-04-151-1/+1
|
* Fix setting lib_dir in ip*tables-{save,restore}Martin Josefsson2004-12-271-0/+4
|
* Bastiaan Bakker's patch to combine iptables, iptables-save and iptables-restoreBastiaan Bakker2004-06-251-1/+7
| | | | for size reduction applied
* Get rid of some warnings when compiling 64bit.Martin Josefsson2004-05-261-2/+2
|
* include netdb.h if we use getprotobynumberHarald Welte2004-04-151-0/+1
|
* use /etc/protocols when printing protocol names (Pedro Lamarão)Pedro Lamarão2007-11-301-0/+6
|
* add userspace part of SCTP matchHarald Welte2004-02-211-0/+1
|
* Make sure to use matches in the order they are given when calling ↵Martin Josefsson2004-02-021-1/+1
| | | | do_command() multiple times.
* fix memory leak(s) in libiptc. Reverts the previous (wrong) patch. (Martin ↵Martin Josefsson2003-05-021-0/+2
| | | | Josefsson)
* copyright / GPL noticeHarald Welte2002-08-071-2/+5
|
* globally replace NETFILTER_VERSION with IPTABLES_VERSION to have consistent ↵Harald Welte2002-05-291-2/+2
| | | | naming
* Added -d and -t short options to getopt_long() call.Marc Boucher2001-12-061-1/+1
|
* make sure we print the "+" at the end of ppp+ stype interface namesHarald Welte2001-11-081-1/+3
|
* fix bug in iptables-save, ocurring with targets without save() function.Harald Welte2001-10-161-6/+14
| | | | Debian Bug #113011
* - added patch to support statically linking of iptablesHarald Welte2001-08-061-0/+4
| | | | - iptables-save/-restore is no longer experimental
* Fix speling of own name.Rusty Russell2001-07-101-1/+1
| | | | Fix EMail address.
* ip6tables-save without target fix, scoreboardHarald Welte2001-07-051-1/+1
|
* A. van Schie: bug report "iptables-save doesn't save fall-through rules ↵Harald Welte2001-05-241-1/+4
| | | | correctly"
* hopefully fixed the multiple-interface iptables-save problemHarald Welte2001-05-231-1/+1
|
* fixes '_' in interface names bug (iptables)Harald Welte2001-05-121-1/+1
| | | | fixes '+' in interface names bug (iptables-save)
* fixing a lot of bugs / cleaning upHarald Welte2001-03-151-5/+15
| | | | | - no more dependency problems with user-defined chains - cleanup of the old strtok problem ( no more goto)
* ip6tables-save/-restore by Kis-Szabo AndrasAndrás Kis-Szabó2001-02-261-1/+3
|
* Fixes bug with inverted destination IP (report+fix by Bart Theunissen)Harald Welte2001-01-261-1/+1
|
* fix another iptables-save segfault when match doesn't provide save function ↵Harald Welte2001-01-241-1/+4
| | | | (bug detected by Emmanuel Roger, fix by HW)
* fixes segfault in iptables-saveHarald Welte2001-01-231-4/+5
|
* Fix compile warning about const.Rusty Russell2001-01-071-1/+1
|
* o serveral changes / additions to libiptc:Harald Welte2001-01-051-3/+3
| | | | | | | | | - iptc_set_policy has additional argument 'counters' to be consistent with iptc_get_policy - added functions for counter manipulation (iptc_read_counter, iptc_zero_counter, iptc_set_counter) o iptables-save and iptables-restore manpage clearifications o iptables-restore counter restoring for chain counters
* make iptables-restore and iptables-save work again!Harald Welte2000-12-011-77/+83
|
* Minor compile fixes.Rusty Russell2000-08-271-2/+2
|
* A few more fixes.Rusty Russell2000-07-301-53/+102
|
* Module loading now can be compulsory.Rusty Russell2000-05-021-2/+3
|
* Makefile fixes for release.v1.0.0-alphaRusty Russell2000-03-201-1/+1
| | | | Whitespace cleanups.
* reorganized tree after kernel mergeMarc Boucher2000-03-201-0/+260