diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2016-05-11 13:13:06 +0200 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2016-05-11 14:45:54 +0300 |
commit | ff2000c206059d029f0a0542863565dfcef7d077 (patch) | |
tree | 26bcd7cd01a92f48288c036499381937e29cfe17 | |
parent | f21ca06be19609f12584ddc96620d21b9a7b32a5 (diff) | |
download | accel-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>
-rw-r--r-- | accel-pppd/iprange.c | 3 |
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 }; |