From: Ondrej Filip Date: Tue, 24 Apr 2012 14:31:17 +0000 (+0200) Subject: Small bug in detection of class-A networks. X-Git-Tag: v1.3.8~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92f8f7e3a3a5a42768c18c1f3d4d8f9f98150c61;p=thirdparty%2Fbird.git Small bug in detection of class-A networks. --- diff --git a/lib/ipv4.c b/lib/ipv4.c index 8488a2860..751351ca1 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;