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)
Fri, Oct 10, 11:57 PM
Unknown Object (File)
Fri, Oct 10, 3:35 PM
Unknown Object (File)
Fri, Oct 10, 9:26 AM
Unknown Object (File)
Fri, Oct 10, 9:26 AM
Unknown Object (File)
Fri, Oct 10, 9:25 AM
Unknown Object (File)
Fri, Oct 10, 3:06 AM
Unknown Object (File)
Thu, Oct 9, 4:14 AM
Unknown Object (File)
Tue, Sep 30, 3:43 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 Not Applicable
Unit
Tests Not Applicable

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.Mon, Sep 15, 1:00 PM
jtl marked an inline comment as done.Mon, Sep 15, 4:43 PM
This revision was automatically updated to reflect the committed changes.