History log of /external/iptables/extensions/libxt_u32.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
dc23c2d7afd2103cbc589372769c2f6723ea5235 13-Jul-2012 Jan Engelhardt <jengelh@inai.de> libxt_u32: do bounds checking for @'s operands

Using only strtoul is prone to accept all values, including negative
ones which are not explicitly allowed. Therefore, use xtables_strtoui
with bounds checking.

Signed-off-by: Jan Engelhardt <jengelh@inai.de>
/external/iptables/extensions/libxt_u32.c
bc3aeaafcf33e3e6a51948568f4f7a16304f619b 15-Aug-2011 Jan Engelhardt <jengelh@medozas.de> libxt_u32: fix missing allowance for inversion

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
/external/iptables/extensions/libxt_u32.c
5a66f40d2f64e8792e1360906d3d6a1c829ba2b7 24-May-2011 Jan Engelhardt <jengelh@medozas.de> libxt_u32: --u32 option is required

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
/external/iptables/extensions/libxt_u32.c
373e8513c4b9b0491e46ae89397ead03d093ee76 06-May-2011 Jan Engelhardt <jengelh@medozas.de> libxt_u32: add missing call to xtables_option_parse

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
/external/iptables/extensions/libxt_u32.c
4f7f187ffe1773487071b413491f062d141309dd 02-Mar-2011 Jan Engelhardt <jengelh@medozas.de> libxt_u32: use guided option parser

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
/external/iptables/extensions/libxt_u32.c
73866357e4a7a0fdc1b293bf8863fee2bd56da9e 18-Dec-2010 Jan Engelhardt <jengelh@medozas.de> iptables: do not print trailing whitespaces

Due to the use of printf("foobar "), iptables emits spaces at the
end-of-line, which looks odd to some users because it causes the
terminal to wrap even if there is seemingly nothing to print.

It may also have other points of annoyance, such as mailers
interpreting a trailing space as an indicator that the paragraph
continues when format=flowed is also on.
And git highlights trailing spaces in red, so let's avoid :)

Preexisting inconsistencies in outputting spaces in the right
spot are also addressed right away.

References: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=429579
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
/external/iptables/extensions/libxt_u32.c
298d70e8564f03c844435123bf36e84419c2f65a 31-Jan-2011 Jan Engelhardt <jengelh@medozas.de> libxt_u32: enclose argument in quotes

Otherwise ip6tables-save piped to ip6tables-restore can cause a parse
error when the expression list is empty.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
/external/iptables/extensions/libxt_u32.c
7ac405297ec38449b30e3b05fd6bf2082fd3d803 07-Jan-2011 Jan Engelhardt <jengelh@medozas.de> src: use C99/POSIX types

"u_int" was a non-standardized extension predating C99 on some platforms.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
/external/iptables/extensions/libxt_u32.c
32b8e61e4e5bd405d9ad07bf9468498dfbb19f9e 23-Jul-2010 Jan Engelhardt <jengelh@medozas.de> all: consistent syntax use in struct option

Try to inhibit copypasting old stuff.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
/external/iptables/extensions/libxt_u32.c
bbe83862a5e1baf15f7c923352d4afdf59bc70e2 24-Oct-2009 Jan Engelhardt <jengelh@medozas.de> iptables/extensions: make bundled options work again

When using a bundled option like "-ptcp", 'argv[optind-1]' would
logically point to "-ptcp", but this is obviously not right.
'optarg' is needed instead, which if properly offset to "tcp".

Not all places change optind-based access to optarg; where
look-ahead is needed, such as for tcp's --tcp-flags option for
example, optind is ok.

References: http://bugzilla.netfilter.org/show_bug.cgi?id=611
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
/external/iptables/extensions/libxt_u32.c
42979363f3958b4436c6d2503753c182c58e55ea 01-Jun-2009 Jan Engelhardt <jengelh@medozas.de> extensions: use NFPROTO_UNSPEC for .family field

This constant would be the designated one for the .family field; it
also, given recent changes, makes grep for NFPROTO_UNSPEC work to
finally recollect all manpages.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
/external/iptables/extensions/libxt_u32.c
1829ed482efbc8b390cc760d012b3a4450494e1a 21-Feb-2009 Jan Engelhardt <jengelh@medozas.de> libxtables: prefix exit_error to xtables_error

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
/external/iptables/extensions/libxt_u32.c
825c317eedc12e1c8c93e22a96bc423d27b3c1f4 27-Jan-2009 Jan Engelhardt <jengelh@medozas.de> src: remove redundant returns at end of void-returning functions

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
/external/iptables/extensions/libxt_u32.c
ddac6c5bc636003d664d25c08ea3fe176565096c 01-Sep-2008 Jan Engelhardt <jengelh@medozas.de> src: Update comments

A number of comments are redundant, some outdated and others outright
wrong in their own way. Remove and fixup.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
/external/iptables/extensions/libxt_u32.c
a2a7f2b531cc582ab6cc3c2b73715ed1d58b9eab 01-Sep-2008 Jan Engelhardt <jengelh@medozas.de> src: use regular includes

iptables ships with all header files and prioritized its own include
directory over /usr/include/linux, so just use the normal brackets.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
/external/iptables/extensions/libxt_u32.c
8b7c64d6ba156a99008fcd810cba874c73294333 15-Apr-2008 Jan Engelhardt <jengelh@medozas.de> Remove old functions, constants
/external/iptables/extensions/libxt_u32.c
23545c2a7a31c68c1e49c7c901b632c2f1c59968 14-Feb-2008 Jan Engelhardt <jengelh@medozas.de> Implement AF_UNSPEC as a wildcard for extensions
/external/iptables/extensions/libxt_u32.c
9ee386a1b6d7704b259460152c959ab0e79e02aa 29-Jan-2008 Max Kellermann <max@duempel.org> fix gcc warnings

Max Kellermann <max@duempel.org>
/external/iptables/extensions/libxt_u32.c
032722b2d24138ee92e459c779ae4869f33b1f37 20-Oct-2007 Jan Engelhardt <jengelh@medozas.de> Transfer all my copyright over to our company.

Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
/external/iptables/extensions/libxt_u32.c
181dead3f13befe02769ef479bcbb51801b7fc4e 04-Oct-2007 Jan Engelhardt <jengelh@medozas.de> Unique symbols 1/6

Give symbols of libxt matches unique names (1/3).

Adds unique prefixes to all functions (most of them - especially the hook
functions) so that debugging programs can unambiguously map a symbol to an
address. Also unifies the names of the xtables_match/xtables_target structs,
(based upon libxt_connmark.c/libip6t_*.c).

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
/external/iptables/extensions/libxt_u32.c
830132ac9c0d270bf9dcfe85c2464e3fe8c73fb9 04-Oct-2007 Jan Engelhardt <jengelh@medozas.de> Delete empty ->final_check() functions

Deletes empty ->final_check() functions, and makes ip[6]tables
checks for NULL on these.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
/external/iptables/extensions/libxt_u32.c
92dc7096c8076f2228c1c6cadb81f7892384033b 28-Sep-2007 Hann-Huei Chiou <koala@ascenvision.com> Couldn't load/find match `u32'

iptables (up to 0927 snapshot) keeps complaining of "Couldn't
load (or find, if NO_SHARED_LIBS=1) match `u32'. After comparing
with other libxt_*.c, I found that there's no member ".family"
in the "u32_reg" structure, while ".family = AF_INET6" exists
in "u32_reg6"

Hann-Huei Chiou <koala@ascenvision.com>
/external/iptables/extensions/libxt_u32.c
55951a0532e35cf73bd83b01014387616eb31431 19-Sep-2007 Jan Engelhardt <jengelh@medozas.de> Fix u32 warnings

warning: format '%ld' expects type 'long int', but argument 3 has type 'int'.

With %u alone, you would get "but arg-start is long" warnings on x64.
With %lu, you would get "but arg-start is int" on x86.
Fix it up by explicitly deciding for one (%u and cast to unsigned int)
and using that.

Jan Engelhardt <jengelh@computergmbh.de>
/external/iptables/extensions/libxt_u32.c
9640e529bd08c4c0458246fae0fd6b473c94ab46 10-Sep-2007 Jan Engelhardt <jengelh@medozas.de> Adds u32 to iptables.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
/external/iptables/extensions/libxt_u32.c