Jan Engelhardt
97808473f9
xt_quota2: silence a compiler warning
...
libxt_quota2.c:73:3: warning: ‘strncpy’ specified bound 15 equals destination size [-Wstringop-truncation]
73 | strncpy(info->name, optarg, sizeof(info->name));
2021-02-24 01:12:28 +01:00
Jan Engelhardt
13db8d78c9
extensions: make print (iptables -L) output the same as save (-S)
2013-05-30 17:16:56 +02:00
Денис Устименко
6a60b5ab75
xt_quota2: print "!" at the correct position during iptables-save
2013-05-30 17:04:47 +02:00
Jan Engelhardt
bcdb7ed4e9
Update my email address
...
To ... none! Whatever is recent is in the git log.
2012-11-12 19:01:14 +01:00
Jan Engelhardt
ebfa77795a
build: preliminary support for iptables 1.4.11
2011-02-02 05:09:58 +01:00
Jan Engelhardt
b5e2c7255a
build: add workaround for broken linux-glibc-devel 2.6.34 userspace headers
2010-09-23 02:37:45 +02:00
Jan Engelhardt
414e95ffb1
extensions: replace AF/PF with NFPROTO
...
Needs one update of netfilter.h to something recent, too.
2010-03-17 02:20:39 +01:00
Michael Farrell
7952a7d253
quota2: add a no-change mode
...
This commit adds an option to xt_quota2 called "no-change". The
effect of this option, when used, is that it will skip incrementing
or decrementing the quota counter, effectively providing a quota test
only.
The reason for implementing this is so that I could have a rule check
if quota is available for a rule in the PREROUTING tables, without
actually decrementing the amount of available quota. I only wanted to
decrement the amount of available quota in the FORWARD rule.
Otherwise, the first packet of every connection would be counted
twice.
2009-12-31 16:24:47 +01:00
Jan Engelhardt
822c6bebe2
quota2: support nameless counters
2009-07-02 02:21:11 +02:00
Jan Engelhardt
a0c791dc88
Upgrade to iptables 1.4.3 API
2009-03-19 11:05:26 +01:00
Jan Engelhardt
aab8dd360f
src: avoid use of _init
...
Xtables-addons's extensions will always be built as modules, so it is
safe to use __attribute__((constructor)).
2008-11-20 20:00:26 +01:00
Jan Engelhardt
74880dd6ca
Update license texts
2008-08-02 13:08:48 -04:00
Jan Engelhardt
5120ab0079
xt_quota2: minor fixes, merge into main config files
2008-07-07 17:56:20 +02:00
Jan Engelhardt
e456c864c1
xt_quota2: support packet counting; add manpage
2008-07-07 01:19:10 +02:00
Jan Engelhardt
a1e915a984
Add xt_quota2
...
Support for inversion, upcounting, and changing the quota/counter
through sysfs.
2008-07-06 22:00:54 +02:00