Skip to content

Commit d8673d7

Browse files
committed
Fixed match for RFC 6333 / DS-Lite per review
1 parent e392d79 commit d8673d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/filter/logical_filters.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ static bool ipv4_get_status_flags(const int ip[8], bool *global, bool *reserved,
899899
*private = true;
900900
} else if (ip[0] == 192 && ip[1] == 0 && ip[2] == 0) {
901901
/* RFC 6890 - IETF Protocol Assignments */
902-
} else if (ip[0] == 192 && ip[1] >= 0 && ip[1] <= 31) {
902+
} else if (ip[0] == 192 && ip[1] == 0 && ip[2] == 0 && ip[3] >= 0 && ip[3] <= 7) {
903903
/* RFC 6333 - DS-Lite */
904904
} else if (ip[0] == 192 && ip[1] == 0 && ip[2] == 2) {
905905
/* RFC 5737 - Documentation */

0 commit comments

Comments
 (0)