Skip to content

Commit cf4f1a1

Browse files
committed
ipv6-range: Remove the network/prefix argument check
Remove the check on the network/prefix that basically required it to end in ::/n as this disallowed such things as 2001:db8::cafe:0/112 which is perfectly valid. Signed-off-by: Andrew Clayton <[email protected]>
1 parent cb894aa commit cf4f1a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ipv6-range.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ int main(int argc, char *argv[])
116116
u8 prefixlen;
117117
char *ptr;
118118

119-
if (argc < 2 || !strstr(argv[1], "::/")) {
119+
if (argc < 2) {
120120
printf("Usage: ipv6-range network/prefix\n");
121121
exit(EXIT_FAILURE);
122122
}

0 commit comments

Comments
 (0)