summaryrefslogtreecommitdiff
path: root/tools/iptables-test.c
AgeCommit message (Collapse)AuthorFilesLines
2014-07-17Imported Upstream version 1.24upstream/1.24Zhang zhengguang1-4/+4
2013-03-25iptables-test: Add insert supportDaniel Wagner1-2/+10
2013-03-18iptables-test: Use iptables implementation from coreDaniel Wagner1-1811/+83
With the recent changes to iptables.c and the new API iptables-test.c and iptables.c started to diverge and it is not really possible to keep those two files in sync. Instead we start using the new API. Unfortunatly, we need to partially parse argv and concatinate the rest again together. This is ugly but not much we can do about it.
2012-08-14tools: Refactor where table should be loadedTomasz Bursztyka1-9/+27
Fixes segfault issues when using a non-builtin target without providing table name. like: -A OUTPUT -j IDLETIMER (...) will crash when: -t filter -A OUTPUT -j IDLETIMER (...) will success
2012-05-09tools: Remove dead assignment in iptables-testHenrique Dante de Almeida1-1/+1
2012-04-29tools: Update copyright informationMarcel Holtmann1-1/+1
2012-02-13iptables-test: Mask address when parsing ip/prefixlenDaniel Wagner1-0/+1
Netfilter likes to have the address properly masked.
2012-02-13tools: Fix rule insertion in a builtin chain into iptables-testTomasz Bursztyka1-1/+4
2012-02-13iptables-test: Parse also netmask for src/dst addressesDaniel Wagner1-9/+39
2012-02-03test: adding a fonction to compare a rule against the actual onesTomasz Bursztyka1-5/+53
2012-02-03test: refactoring rule finding part into iptables-testTomasz Bursztyka1-13/+41
2011-11-14tools: Initiate defined table before working on it in iptables-testTomasz Bursztyka1-4/+10
2011-10-31tools: Fix xtables API version issues with iptables-testTomasz Bursztyka1-4/+36
2011-10-28tools: Add iptables_test builtin chain policy changesTomasz Bursztyka1-3/+50
2011-10-28tools: Initialize the iptables_test invert flag properlyTomasz Bursztyka1-0/+2
The invert flag is specific to each option so it needs to be initialized after each succesfully handled option.
2011-10-28tools: Disable getopt unknown option display in iptables_testTomasz Bursztyka1-0/+3
2011-10-28tools: Add support for rule matches list to iptables_testTomasz Bursztyka1-21/+23
2011-10-28tools: Finalize matches extensions setup in iptables_testTomasz Bursztyka1-0/+4
2011-10-28tools: Add extensions options parsing for matches to iptables-testTomasz Bursztyka1-2/+24
2011-10-28tools: Finalize target extensions setup in iptables_testTomasz Bursztyka1-0/+3
2011-10-28tools: Add extensions options parsing for target to iptables_testTomasz Bursztyka1-8/+9
2011-10-28tools: Add x6_options matches handling to iptables-testTomasz Bursztyka1-5/+17
2011-10-28tools: Add x6_options target handling to iptables_testTomasz Bursztyka1-2/+12
2011-10-28tools: Target and matches preparation function moves in iptables_testTomasz Bursztyka1-10/+8
2011-10-28tools: Add matches rule list loading support for iptables_testTomasz Bursztyka1-3/+5
2011-10-28tools: Refactor iptables_test matches preparationTomasz Bursztyka1-25/+48
2011-10-28tools: Move iptables_test target options merge in prepare_targetTomasz Bursztyka1-11/+14
2011-10-28tools: Code preparation for iptable-test option handlingTomasz Bursztyka1-24/+24
2011-10-25tools: Add SOCK_CLOEXEC to socket()Daniel Wagner1-1/+1
Make sure all file descriptor are closed.
2011-09-29tools: Fixed double-free error possibility into iptables-testTomasz Bursztyka1-0/+1
2011-09-22tools: Copyright year update in iptables-testTomasz Bursztyka1-1/+1
2011-09-22tools: Tiny indentation fix in iptables-testTomasz Bursztyka1-9/+6
2011-09-22tools: Adding capability to load necessary modules into iptables-testTomasz Bursztyka1-2/+15
2011-09-22tools: Rule deletion capability added to iptables-testTomasz Bursztyka1-6/+207
2011-09-22tools: Factorization of target reference update in iptables-testTomasz Bursztyka1-14/+23
2011-09-22tools: Refactoring how jumps are handled in iptables-testTomasz Bursztyka1-64/+81
2011-09-22tools: Fixing target reference update in iptables-testTomasz Bursztyka1-3/+3
2011-09-22tools: Renaming add into append into iptables-testTomasz Bursztyka1-3/+3
2011-09-22tools: Adding capability to insert a rule in iptables-testTomasz Bursztyka1-7/+53
2011-09-22tools: Code factorization for rule inclusion in iptables-testTomasz Bursztyka1-12/+31
2011-09-22tools: Fix memory leak in iptables-test.cTomasz Bursztyka1-2/+6
2011-09-22tools: in, out, source and destination support in iptables-testTomasz Bursztyka1-12/+70
2011-09-22tools: Small indentation fix in iptables-testTomasz Bursztyka1-2/+2
2011-09-22tools: iptables-test delete a chain if only it is already flushed.Tomasz Bursztyka1-12/+13
2011-09-22tools: Added helper function to remove table entry in iptables-testTomasz Bursztyka1-5/+17
2011-09-22tools: find_chain_head/find_chain_tail code factorization in iptables-testTomasz Bursztyka1-25/+3
2011-07-21iptables: Work around API breakage introduced in iptables 1.4.11Stefan Schmidt1-2/+10
The xtables_merge_options() paramter list got extended without version bump. These clumsy #ifdef's make it possible to work with newer and older iptables libraries. It got inspired from an iproute2 patch: https://bugs.gentoo.org/attachment.cgi?id=276401 Once all distributions start to carry 1.4.11 it can be considered to bump the minimum version for connman and remove these ifdef's.
2011-02-08iptables-test: Fix uninitialised use of entry_returnKalle Valo1-3/+4
tools/iptables-test.c:455:20: error: ‘entry_return’ may be used uninitialized in this function
2010-11-16iptables-test: Fix build failure against 2.6.37-rc1 headersSamuel Ortiz1-5/+5
2010-11-13iptables-test: Support for chain flushingSamuel Ortiz1-4/+82