summaryrefslogtreecommitdiffstats
path: root/src/openvpn/pf.c
diff options
context:
space:
mode:
authorAlon Bar-Lev <alon.barlev@gmail.com>2012-03-29 11:16:41 +0200
committerDavid Sommerseth <davids@redhat.com>2012-04-02 11:54:09 +0200
commit32e576d270834636e8e8667fcb7e91cdac03b4a4 (patch)
tree2a96c5c3c4273be78917612114449c74600f00d9 /src/openvpn/pf.c
parentffa1184d7fde8262f5c19438a59657e318d5126f (diff)
downloadopenvpn-32e576d270834636e8e8667fcb7e91cdac03b4a4.tar.gz
openvpn-32e576d270834636e8e8667fcb7e91cdac03b4a4.tar.xz
openvpn-32e576d270834636e8e8667fcb7e91cdac03b4a4.zip
cleanup: avoid using ~0 - netmask
Use IPV4_NETMASK_HOST constant. Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com> Acked-by: Gert Doering <gert@greenie.muc.de> Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'src/openvpn/pf.c')
-rw-r--r--src/openvpn/pf.c2
1 files changed, 1 insertions, 1 deletions
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;
}
{