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

enable traceroute in inetutils MSYS2 package #4589

Open
1 task done
insinfo opened this issue May 8, 2024 · 3 comments
Open
1 task done

enable traceroute in inetutils MSYS2 package #4589

insinfo opened this issue May 8, 2024 · 3 comments
Labels

Comments

@insinfo
Copy link

insinfo commented May 8, 2024

Description / Steps to reproduce the issue

enable traceroute in inetutils MSYS2 package

Expected behavior

traceroute

Actual behavior

error: target not found

Verification

Windows Version

MSYS_NT-10.0-22631

Are you willing to submit a PR?

No response

@insinfo insinfo added the bug label May 8, 2024
@sskras
Copy link

sskras commented May 8, 2024

That would be wonderful, but I doubt POSIX-like socket API related fns like socket (PF_INET, SOCK_RAW, ...), setsockopt() and select() are portable enough in the world of WinAPI.

I guess @cygwin or @midipix would be a better choice for that.

@sskras
Copy link

sskras commented May 8, 2024

@insinfo
Copy link
Author

insinfo commented May 8, 2024

I think this was already ported to Windows at some point in the past by Ray Satiro https://gnuwin32.sourceforge.net/packages/inetutils.htm

I'm not an experienced C programmer, but from what I researched WinSock and POSIX sockets work in a similar manner - mainly because Windows sockets were originally based on code from BSD:

Although these proprietary BSD derivatives were largely superseded by the UNIX System V Release 4 and OSF/1 systems in the 1990s (both of which incorporated BSD code and are the basis of other modern Unix systems), later BSD releases provided a basis for several open source development projects, e.g. FreeBSD, OpenBSD, NetBSD, Darwin or PC-BSD, that are ongoing. These, in turn, have been incorporated in whole or in part in modern proprietary operating systems, e.g. the TCP/IP (IPv4 only) networking code in Microsoft Windows and most of the foundation of Apple's OS X and iOS.

https://web.fe.up.pt/~jmcruz/etc/sockets/winsock11.pdf
https://gist.github.com/willeccles/3ba0741143b573b74b1c0a7aea2bdb40
https://github.com/saprykin/plibsys/blob/master/src/psocket.c
https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-select
https://learn.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-setsockopt

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