Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusing error check precedence #58

Closed
xtaran opened this issue Mar 19, 2014 · 0 comments
Closed

Confusing error check precedence #58

xtaran opened this issue Mar 19, 2014 · 0 comments
Labels

Comments

@xtaran
Copy link
Contributor

xtaran commented Mar 19, 2014

I know this is minor and the example more or less stupid:

$ fping -a -g 2001:db8:120:4161::4/64
Error: netmask must be between 1 and 30 (is: 64)
$ fping -a -g 2001:db8:120:4161::4/30
Error: -g works only with IPv4 addresses

But I think that in fping6 the -g check should come before the (IPv4!) netmask check, i.e. that the above example throws the "-g works only with IPv4 addresses" already in the first case, not only in the second.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants