From 32e576d270834636e8e8667fcb7e91cdac03b4a4 Mon Sep 17 00:00:00 2001 From: Alon Bar-Lev Date: Thu, 29 Mar 2012 11:16:41 +0200 Subject: cleanup: avoid using ~0 - netmask Use IPV4_NETMASK_HOST constant. Signed-off-by: Alon Bar-Lev Acked-by: Gert Doering Signed-off-by: David Sommerseth --- src/openvpn/pf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/openvpn/pf.c') diff --git a/src/openvpn/pf.c b/src/openvpn/pf.c index 7ed1e70..3c46801 100644 --- a/src/openvpn/pf.c +++ b/src/openvpn/pf.c @@ -125,7 +125,7 @@ add_subnet (const char *line, const char *prefix, const int line_num, struct pf_ { /* match special "unknown" tag for addresses unrecognized by mroute */ network.s_addr = htonl(0); - netmask = ~0; + netmask = IPV4_NETMASK_HOST; } { -- cgit