Page MenuHomeFreeBSD

use tcp_[g|s]et_flags all over world
AbandonedPublic

Authored by rscheff on Dec 30 2023, 6:42 PM.
Tags
None
Referenced Files
F132334646: D43248.id132017.diff
Thu, Oct 16, 12:16 AM
Unknown Object (File)
Thu, Oct 9, 11:51 AM
Unknown Object (File)
Wed, Oct 8, 5:25 PM
Unknown Object (File)
Fri, Oct 3, 12:05 PM
Unknown Object (File)
Mon, Sep 29, 11:27 PM
Unknown Object (File)
Mon, Sep 29, 12:12 AM
Unknown Object (File)
Sep 12 2025, 2:05 AM
Unknown Object (File)
Jul 16 2025, 4:40 PM
Subscribers

Details

Reviewers
tuexen
cy
Summary

No longer access th_flags (and th_x2) directly, but use
the accessor functions throughout world, also to give
and example for handling high-order flags.

In the process, add support for testing ECN flags too.

ipmon: log TH_AE flag as "a" - TH_ACK remains "A"
libipf: print "a" for TH_AE
iplang: add support for TCP ECN header flags
ipsend: add TCP ECN support
ppp: use tcphdr.flags accessor

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 55167
Build 52056: arc lint + arc unit

Event Timeline

Please let this patch wait until the discussion of the accessor names and scope has settled down.