Page MenuHomeFreeBSD

ip6: add SO_BINTIME support
ClosedPublic

Authored by jtl on Sep 12 2025, 6:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jun 6, 11:46 PM
Unknown Object (File)
Wed, May 27, 1:40 AM
Unknown Object (File)
Sat, May 23, 5:45 AM
Unknown Object (File)
Wed, May 20, 8:36 AM
Unknown Object (File)
Wed, May 20, 6:24 AM
Unknown Object (File)
Wed, May 20, 12:47 AM
Unknown Object (File)
May 17 2026, 4:02 AM
Unknown Object (File)
May 17 2026, 3:26 AM

Details

Summary

ip6: add SO_BINTIME support

This adds support for obtaining timestamps from IPv6 packets using the
SO_BINTIME socket option, bringing it in parity with IPv4 behavior.

Enable testing the SO_BINTIME option in the relevant (manual) regression
test.

PR: 289423

Test Plan

Manual regression test passes.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

jtl requested review of this revision.Sep 12 2025, 6:24 PM
jtl added inline comments.
sys/netinet6/ip6_input.c
1222

FWIW, this diff looks messier than it should. This block was just moved from the case SO_TS_BINTIME block below.

markj added inline comments.
sys/netinet6/ip6_input.c
1201
This revision is now accepted and ready to land.Sep 15 2025, 1:00 PM
jtl marked an inline comment as done.Sep 15 2025, 4:43 PM
This revision was automatically updated to reflect the committed changes.