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

ping -T not working correctly #1116

Closed
j0nne opened this issue Sep 23, 2016 · 5 comments
Closed

ping -T not working correctly #1116

j0nne opened this issue Sep 23, 2016 · 5 comments

Comments

@j0nne
Copy link

j0nne commented Sep 23, 2016

running ping -T tsonly [destination] returns the following error:

ping: ts option: invalid argument

according to the man page for ping, this should work and works in Ubuntu

@fpqc
Copy link

fpqc commented Sep 23, 2016

Which build number of Windows?

@wizardist
Copy link

@fpqc I can reproduce this issue on Version 1607 (OS Build 14393.187) (Release Preview / Slow).

See the strace for ping -T tsonly example.com in the gist.

https://gist.github.com/wizardist/73535a9d7ea66a188af2b2bcd5c77c75

@sunilmut
Copy link
Member

@j0nne Thanks for reporting the issue and @wizardist for the trace. From the strace, it looks like the -T tsonly option uses the IPPROTO_IP\IP_OPTIONS, which is currently not implemented in WSL, but something we are already tracking.
setsockopt(3, SOL_IP, IP_OPTIONS, "D(\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 40) = -1 EINVAL (Invalid argument) setsockopt(3, SOL_IP, IP_OPTIONS, "D(\5\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 40) = -1 EINVAL (Invalid argument)

@sunilmut
Copy link
Member

Just an update that support for IP_OPTIONS was added in 16176, but it does not fully unblock ping -T yet. Now it errors out with Invalid timestamp type.

@DjArt
Copy link

DjArt commented Dec 1, 2021

This issue was fixed. Needs to close.

@OneBlue OneBlue closed this as completed May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants