Skip to content

undefined socket functions for non-Linux platforms causing issues #1069

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

Open
zajdee opened this issue Mar 27, 2025 · 0 comments · May be fixed by #1070
Open

undefined socket functions for non-Linux platforms causing issues #1069

zajdee opened this issue Mar 27, 2025 · 0 comments · May be fixed by #1070

Comments

@zajdee
Copy link

zajdee commented Mar 27, 2025

Hello,

while trying to run a golang-ci linter on a macOS against an app using netlink.SocketDiagTCPInfo (added in #534), I'm getting a lint error that cannot be skipped:

undefined: netlink.SocketDiagTCPInfo (typecheck)

It seems that while many other functions have platform-agnostic code that returns ErrNotImplemented, this is not the case for many of the functions defined in socket_linux.go and socket_xdp_linux.go, except SocketGet and SocketDestroy (which live in netlink_unspecified.go).

To ease the linting, it would be useful to have the platform-agnostic socket functions defined too.

@zajdee zajdee linked a pull request Mar 27, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant