Commit 92f8f7e3 authored by Ondřej Filip's avatar Ondřej Filip
Browse files

Small bug in detection of class-A networks.

parent cca97066
......@@ -60,7 +60,7 @@ ipv4_class_mask(u32 a)
if (a < 0x80000000)
m = 0xff000000;
if (a < 0xc0000000)
else if (a < 0xc0000000)
m = 0xffff0000;
m = 0xffffff00;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment