]> git.ipfire.org Git - thirdparty/iptables.git/commit
libxtables: add xtables_ip[6]mask_to_cidr
authorPablo Neira Ayuso <pablo@netfilter.org>
Sat, 14 Jul 2012 13:39:20 +0000 (15:39 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 14 Jul 2012 13:39:23 +0000 (15:39 +0200)
commita96166c24eaac1c91bed4815c09e91733409d888
tree90de529c4328b2c7d85076dae9f41437ede7f997
parent7e2b63603fef2253b463ad33395520297cfe8378
libxtables: add xtables_ip[6]mask_to_cidr

This patch adds generic functions to return the mask in CIDR
notation whenever is possible.

This patch also simplifies xtables_ip[6]mask_to_numeric, that
now use these new two functions.

This patch also bumps libxtables_vcurrent and libxtables_vage
since we added a couple new interfaces (thanks to Jan Engelhardt
for his little reminder on this).

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
configure.ac
include/xtables.h.in
libxtables/xtables.c