git: e4315bbc85b7 - main - tcp: move struct tcp_ifcap declaration under _KERNEL
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 13 Mar 2024 19:14:33 UTC
The branch main has been updated by glebius:
URL: https://cgit.FreeBSD.org/src/commit/?id=e4315bbc85b7b0cf4c92d27b261f5ccf97bd1ed1
commit e4315bbc85b7b0cf4c92d27b261f5ccf97bd1ed1
Author: Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2024-03-13 19:14:18 +0000
Commit: Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2024-03-13 19:14:18 +0000
tcp: move struct tcp_ifcap declaration under _KERNEL
Reviewed by: rscheff, tuexen, kib
Differential Revision: https://reviews.freebsd.org/D44340
---
sys/netinet/tcp_var.h | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h
index b2603f97e6f9..6f7f7115c2f4 100644
--- a/sys/netinet/tcp_var.h
+++ b/sys/netinet/tcp_var.h
@@ -895,17 +895,6 @@ struct hc_metrics_lite { /* must stay in sync with hc_metrics */
uint32_t rmx_recvpipe; /* inbound delay-bandwidth product */
};
-/*
- * Used by tcp_maxmtu() to communicate interface specific features
- * and limits at the time of connection setup.
- */
-struct tcp_ifcap {
- int ifcap;
- u_int tsomax;
- u_int tsomaxsegcount;
- u_int tsomaxsegsize;
-};
-
#ifndef _NETINET_IN_PCB_H_
struct in_conninfo;
#endif /* _NETINET_IN_PCB_H_ */
@@ -1438,8 +1427,19 @@ extern int32_t tcp_attack_on_turns_on_logging;
extern uint32_t tcp_ack_war_time_window;
extern uint32_t tcp_ack_war_cnt;
+/*
+ * Used by tcp_maxmtu() to communicate interface specific features
+ * and limits at the time of connection setup.
+ */
+struct tcp_ifcap {
+ int ifcap;
+ u_int tsomax;
+ u_int tsomaxsegcount;
+ u_int tsomaxsegsize;
+};
uint32_t tcp_maxmtu(struct in_conninfo *, struct tcp_ifcap *);
uint32_t tcp_maxmtu6(struct in_conninfo *, struct tcp_ifcap *);
+
void tcp6_use_min_mtu(struct tcpcb *);
u_int tcp_maxseg(const struct tcpcb *);
u_int tcp_fixed_maxseg(const struct tcpcb *);