struct tcpcb embeds a struct osd and a struct callout. Rather than
forcing all consumers to pull in the same
headers, include the headers directly.
No functional change intended.
Differential D44685
tcp: Make tcp_var.h more self-contained markj on Apr 8 2024, 5:40 PM. Authored by Tags None Referenced Files
Details
struct tcpcb embeds a struct osd and a struct callout. Rather than No functional change intended.
Diff Detail
Event TimelineComment Actions There is a guard at line 88: #if defined(_KERNEL) || defined(_WANT_TCPCB) Maybe move the includes there, just next to netinet/cc/cc.h? Comment Actions Thanks, I missed that. Done.
In general we've been trying to make kernel headers self-contained when possible. In my case I found some bits in net-snmp which do not compile because these includes are missing. Comment Actions I'm fine with this change, but I really prefer net-snmp not to know anything about struct tcpcb. I'll take a look at it later. |