History log of /external/iptables/extensions/libxt_RATEEST.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0c3753b1d4226a6e7bea9619415cf40cadee1e58 06-Apr-2013 Patrick McHardy <kaber@trash.net> extensions: add copyright statements

Add copyright statements to all extensions authored by myself.

Signed-off-by: Patrick McHardy <kaber@trash.net>
/external/iptables/extensions/libxt_RATEEST.c
622abc73b097e7e778b432e422fd3c1f035bcfd3 15-Jun-2011 Massimo Maggi <massimo@mmmm.it> libxt_RATEEST: fix userspacesize field

I cannot delete a rule by matching it if the target of the rule is
RATEEST.

Copy-paste from terminal:

# iptables -t mangle -A PREROUTING -j RATEEST
--rateest-name somename --rateest-interval 250ms
--rateest-ewmalog 4s
# iptables -t mangle -D PREROUTING -j RATEEST
--rateest-name somename --rateest-interval 250ms
--rateest-ewmalog 4s
iptables: No chain/target/match by that name.

I saw in comments of the kernel code that the last part of the struct
xt_rateest_target_info is used only by kernel:

struct xt_rateest_target_info {
char name[IFNAMSIZ];
__s8 interval;
__u8 ewma_log;

/* Used internally by the kernel */
struct xt_rateest *est __attribute__((aligned(8)));
};

but in struct xtables_target, .size and .userspacesize are equal.
Simply correcting this solved the problem.

References: http://bugzilla.netfilter.org/show_bug.cgi?id=724
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
/external/iptables/extensions/libxt_RATEEST.c
12bc22a9d3e4ae4a3276dbae1cf3bd50ef5dbe9d 21-Jun-2011 Jan Engelhardt <jengelh@medozas.de> libxt_RATEEST: abolish global variables

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
/external/iptables/extensions/libxt_RATEEST.c
68818f746bf9c68de04a75fbe756bf2c73e0fb32 21-Jun-2011 Jan Engelhardt <jengelh@medozas.de> libxt_RATEEST: use guided option parser

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
/external/iptables/extensions/libxt_RATEEST.c
e88a7c2c7175742b58b6aa03f2b5aba2d80330a1 18-Feb-2011 Jan Engelhardt <jengelh@medozas.de> extensions: remove redundant init functions

The main program already zeroes the per-extension data block.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
/external/iptables/extensions/libxt_RATEEST.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_RATEEST.c
d09b6d591ca7d7d7575cb6aa20384c9830f777ab 08-Jan-2011 Jan Engelhardt <jengelh@medozas.de> extensions: remove no longer necessary default: cases

Match and target parse functions now only get option characters they
have defined themselves.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
/external/iptables/extensions/libxt_RATEEST.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_RATEEST.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_RATEEST.c
69f564e3890976461de0016cd81171ff8bfa8353 26-May-2009 Jan Engelhardt <jengelh@medozas.de> extensions: add const qualifiers in print/save functions

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
/external/iptables/extensions/libxt_RATEEST.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_RATEEST.c
8b7c64d6ba156a99008fcd810cba874c73294333 15-Apr-2008 Jan Engelhardt <jengelh@medozas.de> Remove old functions, constants
/external/iptables/extensions/libxt_RATEEST.c
23545c2a7a31c68c1e49c7c901b632c2f1c59968 14-Feb-2008 Jan Engelhardt <jengelh@medozas.de> Implement AF_UNSPEC as a wildcard for extensions
/external/iptables/extensions/libxt_RATEEST.c
bce1c2159f8d24479e994a22561c0f97df4aec4d 27-Mar-2008 Jan Engelhardt <jengelh@medozas.de> RATEEST: add manpage
/external/iptables/extensions/libxt_RATEEST.c
dbb77543ad6afe29e9a1881b2d4fc212de621a55 11-Feb-2008 Jan Engelhardt <jengelh@medozas.de> Fix -Wshadow warnings and clean up xt_sctp.h

Note: xt_sctp.h is still not merged upstream in the kernel as of
this commit. But a refactoring was really needed.
/external/iptables/extensions/libxt_RATEEST.c
9ee386a1b6d7704b259460152c959ab0e79e02aa 29-Jan-2008 Max Kellermann <max@duempel.org> fix gcc warnings

Max Kellermann <max@duempel.org>
/external/iptables/extensions/libxt_RATEEST.c
2528258ddf066a5147394dc65cae3bde8e80e3c0 15-Jan-2008 Patrick McHardy <kaber@trash.net> Add RATEEST target extension

Signed-off-by: Patrick McHardy <kaber@trash.net>
/external/iptables/extensions/libxt_RATEEST.c