summaryrefslogtreecommitdiff
path: root/accel-pppd/iprange.c
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2016-05-11 13:13:06 +0200
committerDmitry Kozlov <xeb@mail.ru>2016-05-11 14:45:54 +0300
commitff2000c206059d029f0a0542863565dfcef7d077 (patch)
tree26bcd7cd01a92f48288c036499381937e29cfe17 /accel-pppd/iprange.c
parentf21ca06be19609f12584ddc96620d21b9a7b32a5 (diff)
downloadaccel-ppp-ff2000c206059d029f0a0542863565dfcef7d077.tar.gz
accel-ppp-ff2000c206059d029f0a0542863565dfcef7d077.zip
iprange: replace UINT32_MAX by INADDR_BROADCAST
This is equivalent, but INADDR_BROADCAST is more descriptive. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd/iprange.c')
-rw-r--r--accel-pppd/iprange.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/accel-pppd/iprange.c b/accel-pppd/iprange.c
index d2b896f1..593f493a 100644
--- a/accel-pppd/iprange.c
+++ b/accel-pppd/iprange.c
@@ -117,8 +117,7 @@ static int parse_iprange(const char *str, struct iprange_t **range)
if (prefix_len == 0)
goto disable;
- mask = UINT32_MAX << (32 - prefix_len);
-
+ mask = INADDR_BROADCAST << (32 - prefix_len);
if (ipmin != (ipmin & mask)) {
char buf[INET_ADDRSTRLEN] = { 0 };