]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Remove count_netmask_bits(), convert users to use netmask_to_netbits2()
authorGert Doering <gert@greenie.muc.de>
Sat, 27 Dec 2014 20:59:43 +0000 (21:59 +0100)
committerGert Doering <gert@greenie.muc.de>
Sun, 8 Mar 2015 19:18:25 +0000 (20:18 +0100)
commitec2fbf374f018366c18644d271cd4d793d04244b
treee43d0537b6077d1784d8a4290551988908f053d0
parente8562d5531277ee4dd7c517ef68e87af077ac948
Remove count_netmask_bits(), convert users to use netmask_to_netbits2()

The previous Linux/iproute2 code converted binary netmasks to string
representation (print_in_addr_t()), just to immediately scanf() it back
to binary to count bits.  netmask_to_netbits2() directly works on the
in_addr_t.

Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Steffan Karger <steffan.karger@fox-it.com>
Message-Id: <1419713983-16272-1-git-send-email-gert@greenie.muc.de>
URL: http://article.gmane.org/gmane.network.openvpn.devel/9360
src/openvpn/misc.c
src/openvpn/misc.h
src/openvpn/route.c
src/openvpn/route.h
src/openvpn/tun.c