summaryrefslogtreecommitdiff
path: root/lib/ipv4.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2012-04-27 00:04:51 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2012-04-27 00:04:51 +0200
commitd494df63ac3061accdff348511a565c021411b28 (patch)
treea81e2a8c6012aec31adc96ecedefa5ab9926044a /lib/ipv4.c
parentd9b77cc28115e5c1ef64c69722c9d1fd1392dcd1 (diff)
Some minor fixes.
Diffstat (limited to 'lib/ipv4.c')
-rw-r--r--lib/ipv4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ipv4.c b/lib/ipv4.c
index 8488a286..751351ca 100644
--- a/lib/ipv4.c
+++ b/lib/ipv4.c
@@ -60,7 +60,7 @@ ipv4_class_mask(u32 a)
if (a < 0x80000000)
m = 0xff000000;
- if (a < 0xc0000000)
+ else if (a < 0xc0000000)
m = 0xffff0000;
else
m = 0xffffff00;