Page MenuHomeFreeBSD

netpfil: Use accessor functions and named constants for all tcphdr flags
ClosedPublic

Authored by rscheff on Dec 24 2023, 4:57 PM.
Tags
None
Referenced Files
F163353716: D43172.id131797.diff
Wed, Jul 22, 10:46 AM
Unknown Object (File)
Sun, Jul 19, 3:14 PM
Unknown Object (File)
Wed, Jul 15, 8:53 PM
Unknown Object (File)
Wed, Jul 15, 3:48 PM
Unknown Object (File)
Wed, Jul 15, 5:07 AM
Unknown Object (File)
Wed, Jul 15, 4:04 AM
Unknown Object (File)
Tue, Jul 14, 8:52 AM
Unknown Object (File)
Thu, Jul 9, 4:52 PM

Details

Summary

Checked source tree for any reference of the struct tcphdr th_x2 field,
which is part of the 12 possible TCP header flags. Changed the access and
use to these high-order bits using the accessor functions.

This should complete the compatibilty of various aspects with AccECN
(TH_AE), after the internal ipfw "re-checksum required" was moved
to use the TH_RES1 flag.

See also D37300.

No functional change.

Diff Detail

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

Event Timeline

Oh, this causes big header pollution! Is it possible to precede this revision with moving of tcp_get_flags()/tcp_set_flags() into tcp.h? Look, this functions work with the protocol header, they are not related to in kernel implementation of TCP. They really belong to tcp.h.

  • move accessor functions from tcp_var.h to tcp.h
This revision is now accepted and ready to land.Dec 26 2023, 10:25 PM