summaryrefslogtreecommitdiffstats
path: root/useful_functions.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix incorrect IPv6 prefix formattingPhil Sutter2019-05-121-1/+1
| | | | | | | | | Due to a typo, 127bit prefixes were omitted instead of 128bit ones. Reported-by: Laine Stump <laine@redhat.com> Fixes: a88e4b4ac1a1b ("Print IPv6 prefixes in CIDR notation") Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* Print IPv6 prefixes in CIDR notationPhil Sutter2019-02-141-5/+30
| | | | | | | | | | | | | According to RFC4291, IPv6 prefixes are represented in CIDR notation. While the use of a "netmask" notation is not explicitly denied, its existence merely stems from applying IPv4 standards to IPv6. This is not necessarily correct. Therefore change printing of IPv6 prefixes to use CIDR notation as long as the address mask's bits are left contiguous. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* ebt_ip: add support for matching IGMP typeMatthias Schiffer2018-04-111-13/+22
| | | | | | | | | | | | We already have ICMPv6 type/code matches (which can be used to distinguish different types of MLD packets). Add support for IPv4 IGMP matches in the same way. To reuse as much code as possible, the ICMP type/code handling functions are extended to allow passing a NULL code range. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* Move ICMP type handling functions from ebt_ip6 to useful_functions.cMatthias Schiffer2018-04-111-2/+149
| | | | | | | Allow using these functions for ebt_ip as well. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* don't print IPv6 mask if it's all ones (based on patch by Mariusz Mazur ↵Bart De Schuymer2014-04-141-0/+13
| | | | <mmazur at axeos.com>)
* make it compile for meBart De Schuymer2009-02-121-2/+2
|
* cleanup indentation messBart De Schuymer2009-02-121-84/+83
|
* Kuo-Lang Tseng et al: add ipv6 supportBart De Schuymer2008-02-211-0/+136
|
* remove unsigned char * warning with gcc 4.0Bart De Schuymer2006-01-231-4/+5
|
* general cleanup + add -C and -cBart De Schuymer2005-02-081-40/+30
|
* prevent segfaultBart De Schuymer2004-11-141-0/+2
|
* add some commentsBart De Schuymer2004-02-231-6/+30
|
* add shared librariesBart De Schuymer2004-01-211-6/+6
|
* ebtables library functionsBart De Schuymer2004-01-141-0/+261