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)
Tue, Nov 5, 12:10 PM
Unknown Object (File)
Sat, Oct 26, 9:55 AM
Unknown Object (File)
Sat, Oct 26, 9:55 AM
Unknown Object (File)
Sat, Oct 26, 9:55 AM
Unknown Object (File)
Sat, Oct 26, 9:54 AM
Unknown Object (File)
Sat, Oct 26, 9:33 AM
Unknown Object (File)
Oct 4 2024, 8:42 AM
Unknown Object (File)
Oct 4 2024, 8:07 AM

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 Not Applicable
Unit
Tests Not Applicable

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