diff options
author | Ondrej Filip <feela@network.cz> | 2012-04-24 16:31:17 +0200 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2012-04-24 16:31:17 +0200 |
commit | 92f8f7e3a3a5a42768c18c1f3d4d8f9f98150c61 (patch) | |
tree | fb401fd5d9ed4a8c9192ce088326af2948843258 | |
parent | cca970666a90af02eaeb6848bbfc3d5a2222fa21 (diff) |
Small bug in detection of class-A networks.
-rw-r--r-- | lib/ipv4.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |