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
Unknown Object (File)
Thu, May 9, 10:42 AM
Unknown Object (File)
Thu, May 9, 10:42 AM
Unknown Object (File)
Thu, May 9, 4:13 AM
Unknown Object (File)
Thu, May 9, 4:05 AM
Unknown Object (File)
Apr 26 2024, 5:48 AM
Unknown Object (File)
Apr 21 2024, 7:32 PM
Unknown Object (File)
Apr 21 2024, 7:32 PM
Unknown Object (File)
Apr 21 2024, 7:32 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