diff options
| author | Gleb Smirnoff <glebius@FreeBSD.org> | 2026-03-12 04:48:06 +0000 |
|---|---|---|
| committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2026-03-12 16:37:53 +0000 |
| commit | 815ef05284d184d83613adcf60def403607be6a0 (patch) | |
| tree | a881c1ff5c03b034b0a74914d521225e14604da7 /sys/netinet/cc | |
| parent | c0462c2deafdcfe885e8d6f91b529d8cbddc6014 (diff) | |
Diffstat (limited to 'sys/netinet/cc')
| -rw-r--r-- | sys/netinet/cc/cc.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/cc/cc.h b/sys/netinet/cc/cc.h index 890bea69a14b..fa175166c9ee 100644 --- a/sys/netinet/cc/cc.h +++ b/sys/netinet/cc/cc.h @@ -86,7 +86,7 @@ int cc_register_algo(struct cc_algo *add_cc); int cc_deregister_algo(struct cc_algo *remove_cc); #endif /* _KERNEL */ -#if defined(_KERNEL) || defined(_WANT_TCPCB) +#if defined(_KERNEL) struct cc_var { void *cc_data; /* Per-connection private CC algorithm data. */ int bytes_this_ack; /* # bytes acked by the current ACK. */ @@ -112,15 +112,15 @@ struct cc_var { #define CCF_HYSTART_CAN_SH_CWND 0x0800 /* Can hystart when going CSS -> CA slam the cwnd */ #define CCF_HYSTART_CONS_SSTH 0x1000 /* Should hystart use the more conservative ssthresh */ -#endif /* defined(_KERNEL) || defined(_WANT_TCPCB) */ +#endif /* defined(_KERNEL) */ typedef enum { -#if defined(_KERNEL) || defined(_WANT_TCPCB) +#if defined(_KERNEL) /* ACK types passed to the ack_received() hook. */ CC_ACK = 0x0001, /* Regular in sequence ACK. */ CC_DUPACK = 0x0002, /* Duplicate ACK. */ CC_PARTIALACK = 0x0004, /* Not yet. */ CC_SACK = 0x0008, /* Not yet. */ -#endif /* defined(_KERNEL) || defined(_WANT_TCPCB) */ +#endif /* defined(_KERNEL) */ /* Congestion signal types passed to the cong_signal() hook. */ CC_ECN = 0x0100, /* ECN marked packet received. */ CC_RTO = 0x0200, /* RTO fired. */ |
