Skip to content

Disable Netlink to unblock swift-nio-quic builds#23

Merged
tfpauly merged 2 commits into
mainfrom
agnosticdev/DisableNetlink
Jun 18, 2026
Merged

Disable Netlink to unblock swift-nio-quic builds#23
tfpauly merged 2 commits into
mainfrom
agnosticdev/DisableNetlink

Conversation

@agnosticdev

Copy link
Copy Markdown
Collaborator

This PR disables the Netlink functionality until we devise a strategy to support this functionality long term on all Linux variants. This will unblock the swift-nio-quic builds and hopefully address this issue: #19

init?(_ bytes: [UInt8]) {
if bytes.count >= NetlinkAddress.layoutSize {
#if os(Linux)
#if os(Linux) && NETLINK_ENABLED

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this and other changes actually widening the enablement of this code path rather than disabling it?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The thought here was that enabling this flag would allow us to selectively re-enable this when adding it back in the future.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, for some reason I read the diff in reverse🙃. Makes sense.

@josephnoir

Copy link
Copy Markdown

What is the path to enable this as an adopter, i.e., does it need a trait?

@agnosticdev

Copy link
Copy Markdown
Collaborator Author

What is the path to enable this as an adopter, i.e., does it need a trait?

As an adopter if you wanted to adopt or work on this you would need add in NETLINK_ENABLED as a flag. At this point I think we should do some more work on this part of the stack to modernize it a bit and add some forward declarations to properly expose Netlink in all Linux variants. Since this path is not actively used I do not think we need to add a trait right now.

@rnro rnro left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure about some of the details here but I think this serves the main purpose of unblocking adopters and we can iterate

@tfpauly tfpauly merged commit ba18f3f into main Jun 18, 2026
20 checks passed
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 this pull request may close these issues.

4 participants