]> git.ipfire.org Git - thirdparty/xtables-addons.git/log
thirdparty/xtables-addons.git
7 years agobuild: add support for Linux 4.18
Jan Engelhardt [Tue, 14 Aug 2018 12:29:30 +0000 (14:29 +0200)] 
build: add support for Linux 4.18

7 years agobuild: add support for Linux 4.17
Jan Engelhardt [Tue, 14 Aug 2018 12:23:04 +0000 (14:23 +0200)] 
build: add support for Linux 4.17

7 years agobuild: fix 4.16 warning
Jan Engelhardt [Tue, 14 Aug 2018 12:15:18 +0000 (14:15 +0200)] 
build: fix 4.16 warning

7 years agobuild: match documented and coded build requirements
Jan Engelhardt [Tue, 14 Aug 2018 12:22:17 +0000 (14:22 +0200)] 
build: match documented and coded build requirements

7 years agodoc: add 3.0 headline in changelog
Jan Engelhardt [Tue, 14 Aug 2018 12:15:00 +0000 (14:15 +0200)] 
doc: add 3.0 headline in changelog

7 years agogeoip: simplify handling table column names
Philip Prindeville [Mon, 30 Apr 2018 00:06:05 +0000 (02:06 +0200)] 
geoip: simplify handling table column names

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
7 years agogeoip: add database query tool for use with ipsets
Philip Prindeville [Mon, 30 Apr 2018 00:06:04 +0000 (02:06 +0200)] 
geoip: add database query tool for use with ipsets

Add a tool for retrieiving the IPv4 or IPv6 (or both!) CIDR ranges
for a given country, which can then be injected into an ipset if
one doesn't want to use (or have available) the xt_geoip extension.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
7 years agogeoip: update man page for xt_geoip_build
Philip Prindeville [Mon, 30 Apr 2018 00:06:04 +0000 (02:06 +0200)] 
geoip: update man page for xt_geoip_build

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
7 years agogeoip: adapt to GeoLite2 database
Philip Prindeville [Mon, 30 Apr 2018 00:06:03 +0000 (02:06 +0200)] 
geoip: adapt to GeoLite2 database

Requires Net::CIDR::Lite for manipulating CIDR blocks, aggregation, etc.
since database is stored as subnet/mask pairs and may require compaction
into ranges (which can combine adjacent subnets).

We don't use Net::CIDR because it's a clunkier interface.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
7 years agogeoip: store database in network byte order
Philip Prindeville [Mon, 12 Feb 2018 23:06:46 +0000 (16:06 -0700)] 
geoip: store database in network byte order

This allows a single database to be built and distributed as a
package that is accepted by both big- and little-endian hosts.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
7 years agoXtables-addons 3.0 v3.0
Jan Engelhardt [Mon, 12 Feb 2018 14:12:27 +0000 (15:12 +0100)] 
Xtables-addons 3.0

7 years agobuild: support for Linux 4.16
Jan Engelhardt [Mon, 12 Feb 2018 14:10:47 +0000 (15:10 +0100)] 
build: support for Linux 4.16

7 years agobuild: remove support for Linux 4.14
Jan Engelhardt [Mon, 12 Feb 2018 14:04:37 +0000 (15:04 +0100)] 
build: remove support for Linux 4.14

7 years agobuild: remove support for Linux 4.13
Jan Engelhardt [Mon, 12 Feb 2018 14:03:58 +0000 (15:03 +0100)] 
build: remove support for Linux 4.13

7 years agobuild: remove support for Linux 4.12
Jan Engelhardt [Mon, 12 Feb 2018 14:03:47 +0000 (15:03 +0100)] 
build: remove support for Linux 4.12

7 years agobuild: remove support for Linux 4.11
Jan Engelhardt [Mon, 12 Feb 2018 14:02:42 +0000 (15:02 +0100)] 
build: remove support for Linux 4.11

7 years agobuild: remove support for Linux 4.10
Jan Engelhardt [Mon, 12 Feb 2018 14:01:38 +0000 (15:01 +0100)] 
build: remove support for Linux 4.10

7 years agobuild: remove support for Linux 4.9
Jan Engelhardt [Mon, 12 Feb 2018 13:59:12 +0000 (14:59 +0100)] 
build: remove support for Linux 4.9

7 years agobuild: remove support for Linux 4.8
Jan Engelhardt [Mon, 12 Feb 2018 13:57:21 +0000 (14:57 +0100)] 
build: remove support for Linux 4.8

7 years agobuild: remove support for Linux 4.7
Jan Engelhardt [Mon, 12 Feb 2018 13:56:57 +0000 (14:56 +0100)] 
build: remove support for Linux 4.7

7 years agobuild: remove support for Linux 4.6
Jan Engelhardt [Mon, 12 Feb 2018 13:56:40 +0000 (14:56 +0100)] 
build: remove support for Linux 4.6

7 years agobuild: remove support for Linux 4.5
Jan Engelhardt [Mon, 12 Feb 2018 13:56:24 +0000 (14:56 +0100)] 
build: remove support for Linux 4.5

7 years agobuild: remove support for Linux 4.4
Jan Engelhardt [Mon, 12 Feb 2018 13:56:05 +0000 (14:56 +0100)] 
build: remove support for Linux 4.4

7 years agobuild: remove support for Linux 4.3
Jan Engelhardt [Mon, 12 Feb 2018 13:55:45 +0000 (14:55 +0100)] 
build: remove support for Linux 4.3

7 years agobuild: remove support for Linux 4.2
Jan Engelhardt [Mon, 12 Feb 2018 13:54:26 +0000 (14:54 +0100)] 
build: remove support for Linux 4.2

7 years agobuild: remove support for Linux 4.1
Jan Engelhardt [Mon, 12 Feb 2018 13:53:25 +0000 (14:53 +0100)] 
build: remove support for Linux 4.1

7 years agobuild: remove support for Linux 4.0
Jan Engelhardt [Mon, 12 Feb 2018 13:53:01 +0000 (14:53 +0100)] 
build: remove support for Linux 4.0

7 years agobuild: remove support for Linux 3.19
Jan Engelhardt [Mon, 12 Feb 2018 13:50:33 +0000 (14:50 +0100)] 
build: remove support for Linux 3.19

7 years agobuild: remove support for Linux 3.18
Jan Engelhardt [Mon, 12 Feb 2018 13:49:20 +0000 (14:49 +0100)] 
build: remove support for Linux 3.18

7 years agobuild: remove support for Linux 3.17
Jan Engelhardt [Mon, 12 Feb 2018 13:48:53 +0000 (14:48 +0100)] 
build: remove support for Linux 3.17

7 years agobuild: remove support for Linux 3.16
Jan Engelhardt [Mon, 12 Feb 2018 13:48:34 +0000 (14:48 +0100)] 
build: remove support for Linux 3.16

7 years agobuild: remove support for Linux 3.15
Jan Engelhardt [Mon, 12 Feb 2018 13:47:58 +0000 (14:47 +0100)] 
build: remove support for Linux 3.15

7 years agobuild: remove support for Linux 3.14
Jan Engelhardt [Mon, 12 Feb 2018 13:46:50 +0000 (14:46 +0100)] 
build: remove support for Linux 3.14

7 years agobuild: remove support for Linux 3.13
Jan Engelhardt [Mon, 12 Feb 2018 13:45:55 +0000 (14:45 +0100)] 
build: remove support for Linux 3.13

7 years agobuild: remove support for Linux 3.12
Jan Engelhardt [Mon, 12 Feb 2018 13:45:41 +0000 (14:45 +0100)] 
build: remove support for Linux 3.12

7 years agobuild: remove support for Linux 3.11
Jan Engelhardt [Mon, 12 Feb 2018 13:45:30 +0000 (14:45 +0100)] 
build: remove support for Linux 3.11

7 years agobuild: remove support for Linux 3.10
Jan Engelhardt [Mon, 12 Feb 2018 13:45:14 +0000 (14:45 +0100)] 
build: remove support for Linux 3.10

7 years agobuild: remove support for Linux 3.9
Jan Engelhardt [Mon, 12 Feb 2018 13:43:20 +0000 (14:43 +0100)] 
build: remove support for Linux 3.9

7 years agobuild: remove support for Linux 3.8
Jan Engelhardt [Mon, 12 Feb 2018 13:40:30 +0000 (14:40 +0100)] 
build: remove support for Linux 3.8

7 years agobuild: remove support for Linux 3.7
Jan Engelhardt [Mon, 12 Feb 2018 13:37:55 +0000 (14:37 +0100)] 
build: remove support for Linux 3.7

7 years agogeoip: apply consistent style to xt_geoip_build
Jan Engelhardt [Mon, 12 Feb 2018 12:58:18 +0000 (13:58 +0100)] 
geoip: apply consistent style to xt_geoip_build

7 years agogeoip: selective endianness catalog generation
Philip Prindeville [Thu, 8 Feb 2018 02:24:12 +0000 (19:24 -0700)] 
geoip: selective endianness catalog generation

7 years agoxt_pknock: don't split function heads
Jan Engelhardt [Fri, 5 Jan 2018 00:36:12 +0000 (01:36 +0100)] 
xt_pknock: don't split function heads

7 years agobuild: support for Linux 4.15
Marcelo Henrique Cerri [Thu, 4 Jan 2018 17:50:50 +0000 (18:50 +0100)] 
build: support for Linux 4.15

Signed-off-by: Marcelo Henrique Cerri <marcelo.cerri@canonical.com>
7 years agobuild: (additional) support for Linux 4.14
Seth Forshee [Thu, 4 Jan 2018 17:50:49 +0000 (18:50 +0100)] 
build: (additional) support for Linux 4.14

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
7 years agoXtables-addons 2.14 v2.14
Jan Engelhardt [Wed, 22 Nov 2017 17:29:01 +0000 (18:29 +0100)] 
Xtables-addons 2.14

7 years agoDNETMAP: remove NF_CT_ASSERT use
Jan Engelhardt [Wed, 22 Nov 2017 17:27:07 +0000 (18:27 +0100)] 
DNETMAP: remove NF_CT_ASSERT use

The hooks are already checked by the xtables core (due to struct
xt_target::hooks).

7 years agoDNETMAP: fix write past end of buffer
Jan Engelhardt [Sun, 23 Jul 2017 18:01:46 +0000 (20:01 +0200)] 
DNETMAP: fix write past end of buffer

8 years agoDELUDE: fix PVSStudio reports
Jan Engelhardt [Sun, 23 Jul 2017 17:59:28 +0000 (19:59 +0200)] 
DELUDE: fix PVSStudio reports

V560 A part of conditional expression is always true: !oth->rst.

8 years agoipp2p: fix PVSStudio reports
Jan Engelhardt [Sun, 23 Jul 2017 17:56:30 +0000 (19:56 +0200)] 
ipp2p: fix PVSStudio reports

V666 Consider inspecting fourth argument of the function 'HX_memmem'.
It is possible that the value does not correspond with the length of
a string which was passed with the third argument.

8 years agopknock: fix PVSStudio static analyzer reports
Jan Engelhardt [Sun, 23 Jul 2017 17:55:06 +0000 (19:55 +0200)] 
pknock: fix PVSStudio static analyzer reports

V595 The 'peer' pointer was utilized before it was verified against
nullptr.

8 years agoXtables-addons 2.13 v2.13
Jan Engelhardt [Thu, 29 Jun 2017 12:46:37 +0000 (14:46 +0200)] 
Xtables-addons 2.13

8 years agoxt_condition: namespace support #2
Grzegorz Kuczyński [Tue, 27 Jun 2017 05:43:26 +0000 (07:43 +0200)] 
xt_condition: namespace support #2

8 years agoxt_geoip: check for allocation overflow
Jan Engelhardt [Mon, 26 Jun 2017 20:02:35 +0000 (22:02 +0200)] 
xt_geoip: check for allocation overflow

8 years agocompat_xtables: use more accurate printf format for NIPQUAD
Jan Engelhardt [Thu, 15 Jun 2017 10:18:41 +0000 (12:18 +0200)] 
compat_xtables: use more accurate printf format for NIPQUAD

We never expect to emit values greater than 255 here, so use %hhu to
address more sprintf warnings.

8 years agoxt_DNETMAP: fix a buffer overflow
Jan Engelhardt [Thu, 15 Jun 2017 10:15:48 +0000 (12:15 +0200)] 
xt_DNETMAP: fix a buffer overflow

prefix_str was only 16 bytes, but the largest emitted string could be
"255.255.255.255/32" (19 bytes).

xt_DNETMAP.c: In function "dnetmap_tg_check":
compat_xtables.h:46:22: warning: "%u" directive writing between 1 and 10
bytes into a region of size between 0 and 8 [-Wformat-overflow=]
 # define NIPQUAD_FMT "%u.%u.%u.%u"
xt_DNETMAP.c:296:2: note: "sprintf" output between 10 and 27 bytes into
a destination of size 16
  sprintf(p->prefix_str, NIPQUAD_FMT "/%u", NIPQUAD(mr->min_addr.ip),
   33 - ffs(~(ip_min ^ ip_max)));

8 years agoxt_LOGMARK: resolve new gcc7 warnings
Jan Engelhardt [Thu, 15 Jun 2017 10:00:09 +0000 (12:00 +0200)] 
xt_LOGMARK: resolve new gcc7 warnings

xt_LOGMARK.c:56:32: warning: increment of a boolean expression [-Wbool-operation]
   printk("%s""SEEN_REPLY", prev++ ? "," : "");
xt_LOGMARK.c:58:29: warning: increment of a boolean expression [-Wbool-operation]
   printk("%s""ASSURED", prev++ ? "," : "");
xt_LOGMARK.c:60:31: warning: increment of a boolean expression [-Wbool-operation]
   printk("%s""CONFIRMED", prev++ ? "," : "");

8 years agobuild: support for Linux 4.12
Ralph Sennhauser [Sun, 14 May 2017 16:16:11 +0000 (18:16 +0200)] 
build: support for Linux 4.12

As a result of commit cc41c84b7e7f ("netfilter: kill the fake untracked
conntrack objects") the helper nf_ct_is_untracked always returns false
and commit ab8bc7ed864b ("netfilter: remove nf_ct_is_untracked") removes
it all together.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
8 years agoxt_condition: add support for namespaces
Grzegorz Kuczyński [Fri, 20 Jan 2017 11:28:52 +0000 (12:28 +0100)] 
xt_condition: add support for namespaces

8 years agoxt_psd: resolve compiler warning
Jan Engelhardt [Thu, 13 Apr 2017 09:37:44 +0000 (11:37 +0200)] 
xt_psd: resolve compiler warning

xt_psd.c:53:0: warning: "HASH_SIZE" redefined
 #define HASH_SIZE   (1 << HASH_LOG)
linux-4.10.10/include/linux/hashtable.h:26:0:
note: this is the location of the previous definition
 #define HASH_SIZE(name) (ARRAY_SIZE(name))

8 years agoXtables-addons 2.12 v2.12
Jan Engelhardt [Wed, 11 Jan 2017 00:39:53 +0000 (01:39 +0100)] 
Xtables-addons 2.12

8 years agobuild: mark Linux 4.10 as supported
Jan Engelhardt [Wed, 4 Jan 2017 01:44:43 +0000 (02:44 +0100)] 
build: mark Linux 4.10 as supported

8 years agobuild: support for Linux 4.10
Ralph Sennhauser [Mon, 26 Dec 2016 15:14:02 +0000 (16:14 +0100)] 
build: support for Linux 4.10

Commit 613dbd95723aee7abd16860745691b6c7bda20dc (netfilter:
x_tables: move hook state into xt_action_param structure) changes the
struct xt_action_param, accommodate for it.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
8 years agobuild: support for Linux 4.9
Ralph Sennhauser [Mon, 26 Dec 2016 15:11:43 +0000 (16:11 +0100)] 
build: support for Linux 4.9

Commit f330a7fdbe1611104622faff7e614a246a7d20f0 (netfilter: conntrack:
get rid of conntrack timer) replaces timer_list with an u32, use helper
from commit c8607e020014cf11a61601a0005270bad81cabdf (netfilter: nft_ct:
fix expiration getter).

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
9 years agoXtables-addons 2.11 v2.11
Jan Engelhardt [Fri, 20 May 2016 12:32:05 +0000 (14:32 +0200)] 
Xtables-addons 2.11

9 years agoxt_ECHO: ensure IP header length is set
Jan Engelhardt [Fri, 20 May 2016 08:48:27 +0000 (10:48 +0200)] 
xt_ECHO: ensure IP header length is set

9 years agoxt_ECHO: handle fragments
Jan Engelhardt [Fri, 20 May 2016 08:48:00 +0000 (10:48 +0200)] 
xt_ECHO: handle fragments

Since everything is just echoed back verbatim without modification,
supporting fragments seems easy.

9 years agoxt_pknock: use shash crypto API
Your Name [Fri, 20 May 2016 08:46:31 +0000 (04:46 -0400)] 
xt_pknock: use shash crypto API

The old hash API is dropped as of Linux 4.6.
Only build tested.

9 years agoxt_pknock: replace nemesis by socat
Jan Engelhardt [Fri, 22 Apr 2016 20:50:42 +0000 (22:50 +0200)] 
xt_pknock: replace nemesis by socat

Use a utility much more widely available.

9 years agoxt_pknock: import digest generation utility
Jan Engelhardt [Fri, 22 Apr 2016 20:48:56 +0000 (22:48 +0200)] 
xt_pknock: import digest generation utility

9 years agoxt_pknock: remove reference to non-existing documentation
Jan Engelhardt [Fri, 22 Apr 2016 20:43:17 +0000 (22:43 +0200)] 
xt_pknock: remove reference to non-existing documentation

Even in the old pknock-0.5.tar.gz tarball, there is no doc/pknock/
directory.

9 years agoxt_SYSRQ: use new shash crypto API
Jan Engelhardt [Fri, 22 Apr 2016 09:11:57 +0000 (11:11 +0200)] 
xt_SYSRQ: use new shash crypto API

The "shash" API is not exactly new (Linux 2.6.27), but the "hash" API
was finally thrown out for Linux 4.6.

9 years agoxt_ACCOUNT: make it namespace aware
Andreas Schultz [Tue, 8 Dec 2015 17:41:33 +0000 (18:41 +0100)] 
xt_ACCOUNT: make it namespace aware

xt_ACCOUNTing objects create in one network namespace could be
read from all namespaces. Also object with the same name in
different namespaces would collide.

Signed-off-by: Andreas Schultz <aschultz@tpip.net>
9 years agobuild: fix configure compatiblity with POSIX shells
Matthias Schiffer [Sun, 3 Apr 2016 12:01:01 +0000 (14:01 +0200)] 
build: fix configure compatiblity with POSIX shells

The kernel version detection code uses some bashisms, which makes the
build fail on Debian systems where /bin/sh links to dash. Replace with
POSIX-conforming commands at the cost of requiring awk.

9 years agoXtables-addons 2.10 v2.10
Jan Engelhardt [Fri, 20 Nov 2015 22:30:33 +0000 (23:30 +0100)] 
Xtables-addons 2.10

9 years agobuild: silence compiler warning in xt_quota2
Jan Engelhardt [Fri, 20 Nov 2015 22:14:50 +0000 (23:14 +0100)] 
build: silence compiler warning in xt_quota2

xt_quota2.c:67:6: warning: unused variable "ret" [-Wunused-variable]

9 years agobuild: support for Linux 4.4
Jan Engelhardt [Fri, 20 Nov 2015 20:31:12 +0000 (21:31 +0100)] 
build: support for Linux 4.4

9 years agoxt_ACCOUNT: remove redundant braces
Jan Engelhardt [Mon, 9 Nov 2015 21:32:32 +0000 (22:32 +0100)] 
xt_ACCOUNT: remove redundant braces

For single-line statements, the {} are not strictly needed.

9 years agoxt_ACCOUNT: indent reduction
Jan Engelhardt [Mon, 9 Nov 2015 21:31:23 +0000 (22:31 +0100)] 
xt_ACCOUNT: indent reduction

Invert early terminating conditions so the rest of the block can be
de-indented.

9 years agoxt_ACCOUNT: call free_pages(x,2) (doc)
Jan Engelhardt [Mon, 9 Nov 2015 21:33:47 +0000 (22:33 +0100)] 
xt_ACCOUNT: call free_pages(x,2) (doc)

Below is the patch with the *rest* of the free_page(X) calls changed
to free_pages(X, 2). xt_ACCOUNT should always allocate memory in page
pairs. And always *free* memory in page pairs.

References: http://www.spinics.net/lists/netfilter-devel/msg39025.html

9 years agoxt_ACCOUNT: call free_pages(x,2)
Neil P. Murphy [Mon, 19 Oct 2015 05:34:54 +0000 (01:34 -0400)] 
xt_ACCOUNT: call free_pages(x,2)

Below is the patch with the *rest* of the free_page(X) calls changed
to free_pages(X, 2). xt_ACCOUNT should always allocate memory in page
pairs. And always *free* memory in page pairs.

References: http://www.spinics.net/lists/netfilter-devel/msg39025.html

9 years agoXtables-addons 2.9 v2.9
Jan Engelhardt [Mon, 12 Oct 2015 14:27:59 +0000 (16:27 +0200)] 
Xtables-addons 2.9

9 years agobuild: support for Linux 4.3
Jan Engelhardt [Mon, 12 Oct 2015 14:27:08 +0000 (16:27 +0200)] 
build: support for Linux 4.3

9 years agoxt_quota2: allow incremental value to be written to quota proc file
Sam Liddicott [Tue, 7 Jan 2014 17:48:19 +0000 (09:48 -0800)] 
xt_quota2: allow incremental value to be written to quota proc file

As well as writing absolute numeric values to the quota file, you
can now also write numbers preceded by a + sign or a - sign, e.g.

* "+30" would increase the quota by 30
* "+-20" would increase the quota by negative 20,
  which is the same as decrease by 20
* "-5" would decrease the quota by 5

9 years agoxt_DHCPMAC: correct L2addr set and compare
Boris Figovsky [Tue, 7 May 2013 03:33:03 +0000 (06:33 +0300)] 
xt_DHCPMAC: correct L2addr set and compare

9 years agoXtables-addons 2.8 v2.8
Jan Engelhardt [Wed, 19 Aug 2015 10:38:49 +0000 (12:38 +0200)] 
Xtables-addons 2.8

9 years agoxt_ECHO: enable for all supported versions
Jan Engelhardt [Wed, 19 Aug 2015 10:36:18 +0000 (12:36 +0200)] 
xt_ECHO: enable for all supported versions

Linux is now at 4.x.

9 years agobuild: support for Linux 4.2
Tim Gardner [Mon, 10 Aug 2015 15:25:20 +0000 (17:25 +0200)] 
build: support for Linux 4.2

xt_DNETMAP.c: In function "dnetmap_prefix_destroy":
xt_DNETMAP.c:185:2: error: implicit declaration of function
"remove_proc_entry" [-Werror=implicit-function-declaration]
  remove_proc_entry(p->proc_str_data, dnetmap_net->xt_dnetmap);

10 years agoXtables-addons 2.7 v2.7
Jan Engelhardt [Mon, 6 Jul 2015 03:55:42 +0000 (05:55 +0200)] 
Xtables-addons 2.7

10 years agodoc: remove old changelog entries
Jan Engelhardt [Mon, 6 Jul 2015 03:50:59 +0000 (05:50 +0200)] 
doc: remove old changelog entries

10 years agodoc: combine kernel version numbers
Jan Engelhardt [Mon, 6 Jul 2015 03:49:21 +0000 (05:49 +0200)] 
doc: combine kernel version numbers

10 years agoxt_TARPIT: support for Linux 4.1
Alexander Petrenas [Tue, 23 Jun 2015 10:44:50 +0000 (13:44 +0300)] 
xt_TARPIT: support for Linux 4.1

10 years agoxt_ACCOUNT: avoid implicit padding in struct ipt_acc_handle_ip
Jan Engelhardt [Fri, 5 Jun 2015 11:52:10 +0000 (13:52 +0200)] 
xt_ACCOUNT: avoid implicit padding in struct ipt_acc_handle_ip

Make the structure size so that an ILP32 environment has no problem
taking the raw bytes from an LP64 one.

10 years agoiptaccount: cast from uint64_t to please printf
Jan Engelhardt [Fri, 5 Jun 2015 11:50:37 +0000 (13:50 +0200)] 
iptaccount: cast from uint64_t to please printf

%llu wants an "unsigned long long", which is not necessarily
the same as uint64_t.

10 years agoxt_ACCOUNT: make counters 64-bit wide
Neal P. Murphy [Thu, 4 Jun 2015 22:04:42 +0000 (18:04 -0400)] 
xt_ACCOUNT: make counters 64-bit wide

The Smoothwall Express traffic stats collector (traffiClogger) does
not handle counter rollovers well and does not perform read&flush.
(Yes, the code is somewhat aged.) To change it to perform read&flush
is non-trivial. Then, it occurred to me that it might be easier to
change ipt_ACCOUNT in xtables-addons to use 64-bit counters,
considering it was designed around single kernel pages.

The following submission counts to at least 100 GB, produces no
obvious kernel gripes, and adjacent counters do not seem to interfere
with each other. Yes, it uses more memory, but RAM costs much less
than bugs that grown out of complex software.

The theory:

  - Use two kernel pages for the counters for each group of 256
    addresses.
  - Change counters to 64-bit.
  - Change to __get_free_pages/free_pages, using order=2
    (two consecutive pages), and zero both pages.
  - Change "%u" to "%llu" as needed.
  - Everything else pretty much stays the same.

I also changed tmpbuf to two pages (Justin Case's idea), but I
do not know if that's really necessary.

10 years agoXtables-addons 2.6 v2.6
Jan Engelhardt [Mon, 29 Sep 2014 08:33:13 +0000 (10:33 +0200)] 
Xtables-addons 2.6

10 years agobuild: explicitly support Linux 3.16, 3.17
Jan Engelhardt [Thu, 4 Sep 2014 16:50:35 +0000 (18:50 +0200)] 
build: explicitly support Linux 3.16, 3.17

10 years agoxt_pknock: fix pknock in UDP SPA mode
Adam Butcher [Wed, 3 Sep 2014 13:23:29 +0000 (13:23 +0000)] 
xt_pknock: fix pknock in UDP SPA mode

When the PK_CRYPTO pre-processor flag got removed in
v1.47.1-2-g66f213e, one of the removal cases was misapplied; the body
of an "#ifndef PK_CRYPTO" was left in rather than the whole section
being removed.

10 years agosrc: work with typeof
Adam Butcher [Wed, 3 Sep 2014 13:23:29 +0000 (13:23 +0000)] 
src: work with typeof

Although not officially supported, we have found that the
xtables-addons modules we are interested in work fine on 3.0.4 with a
slight non-invasive mod to compat_xtables.h.

11 years agoXtables-addons 2.5 v2.5
Jan Engelhardt [Fri, 18 Apr 2014 17:14:59 +0000 (19:14 +0200)] 
Xtables-addons 2.5