Page MenuHomeFreeBSD

linux: Add TCP_INFO support
ClosedPublic

Authored by chuck on Mar 16 2026, 6:34 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 25, 3:44 AM
Unknown Object (File)
Wed, Jun 24, 9:28 PM
Unknown Object (File)
Wed, Jun 24, 4:13 PM
Unknown Object (File)
Wed, Jun 24, 3:28 AM
Unknown Object (File)
Mon, Jun 22, 11:30 PM
Unknown Object (File)
Tue, Jun 16, 8:43 AM
Unknown Object (File)
May 18 2026, 5:10 AM
Unknown Object (File)
May 18 2026, 5:05 AM
Subscribers

Details

Summary

Implement the getsockopt for TCP_INFO by mapping FreeBSD's version to
what Linux expects.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

chuck requested review of this revision.Mar 16 2026, 6:35 PM
sys/compat/linux/linux_socket.c
2438

Why is this versioning needed? IMHO we could copyout as much as fit into the user buffer.

sys/compat/linux/linux_socket.c
2438

The intent was to return the amount of data a particular kernel version expected and no more. That said, I'm happy to drop this if others feel this is overkill.

Address review feedback and rebase.

This revision is now accepted and ready to land.Tue, Jun 9, 11:17 PM
This revision was automatically updated to reflect the committed changes.