(squash later) fix pflen handling in cidr

This commit is contained in:
Mingye Wang 2018-10-14 12:44:01 -04:00
parent b3129591db
commit f61306f65f
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ static bool parseLine3(char const* line, struct tr_ipv4_range* range) {
}
/* do it in the network order */
mask <<= pflen;
mask <<= 32 - pflen;
ip_u = ip[0] << 24 | ip[1] << 16 | ip[2] << 8 | ip[3];
/* fill the non-prefix bits the way we need it */