changeset 19421:5663044c7c9f

12253 mib2.h: error: field 'tcp6ConnEntryInfo' has incomplete type 'tcpConnEntryInfo_s' Reviewed by: Andy Stormont <astormont@racktopsystems.com> Reviewed by: Dan McDonald <danmcd@joyent.com> Approved by: Gordon Ross <gordon.w.ross@gmail.com>
author Alexander Pyhalov <apyhalov@gmail.com>
date Mon, 27 Jan 2020 09:21:41 +0300
parents 2e7f4e9db08b
children bef83800dfc7
files usr/src/uts/common/inet/mib2.h
diffstat 1 files changed, 45 insertions(+), 42 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/inet/mib2.h	Mon Jan 20 07:39:38 2020 -0800
+++ b/usr/src/uts/common/inet/mib2.h	Mon Jan 27 09:21:41 2020 +0300
@@ -1366,6 +1366,49 @@
 #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4
 #pragma pack(4)
 #endif
+
+typedef struct tcpConnEntryInfo_s {
+	Counter64	ce_in_data_inorder_bytes;
+	Counter64	ce_in_data_inorder_segs;
+	Counter64	ce_in_data_unorder_bytes;
+	Counter64	ce_in_data_unorder_segs;
+	Counter64	ce_in_zwnd_probes;
+
+	Counter64	ce_out_data_bytes;
+	Counter64	ce_out_data_segs;
+	Counter64	ce_out_retrans_bytes;
+	Counter64	ce_out_retrans_segs;
+	Counter64	ce_out_zwnd_probes;
+	Counter64	ce_rtt_sum;
+
+			/* seq # of next segment to send */
+	Gauge		ce_snxt;
+			/* seq # of of last segment unacknowledged */
+	Gauge		ce_suna;
+			/* current send window size */
+	Gauge		ce_swnd;
+			/* current congestion window size */
+	Gauge		ce_cwnd;
+			/* seq # of next expected segment */
+	Gauge		ce_rnxt;
+			/* seq # of last ack'd segment */
+	Gauge		ce_rack;
+			/* # of unsent bytes in the xmit queue */
+	Gauge		ce_unsent;
+			/* current receive window size */
+	Gauge		ce_rwnd;
+			/* round-trip time smoothed average (us) */
+	Gauge		ce_rtt_sa;
+			/* current rto (retransmit timeout) */
+	Gauge		ce_rto;
+			/* round-trip time count */
+	Gauge		ce_rtt_cnt;
+			/* current max segment size */
+	Gauge		ce_mss;
+			/* actual internal state */
+	int		ce_state;
+} tcpConnEntryInfo_t;
+
 typedef struct mib2_tcpConnEntry {
 		/* state of tcp connection		{ tcpConnEntry 1} RW */
 	int		tcpConnState;
@@ -1377,47 +1420,7 @@
 	IpAddress	tcpConnRemAddress;
 		/* remote port for this connection	{ tcpConnEntry 5 } */
 	int		tcpConnRemPort;		/* In host byte order */
-	struct tcpConnEntryInfo_s {
-		Counter64	ce_in_data_inorder_bytes;
-		Counter64	ce_in_data_inorder_segs;
-		Counter64	ce_in_data_unorder_bytes;
-		Counter64	ce_in_data_unorder_segs;
-		Counter64	ce_in_zwnd_probes;
-
-		Counter64	ce_out_data_bytes;
-		Counter64	ce_out_data_segs;
-		Counter64	ce_out_retrans_bytes;
-		Counter64	ce_out_retrans_segs;
-		Counter64	ce_out_zwnd_probes;
-		Counter64	ce_rtt_sum;
-
-				/* seq # of next segment to send */
-		Gauge		ce_snxt;
-				/* seq # of of last segment unacknowledged */
-		Gauge		ce_suna;
-				/* current send window size */
-		Gauge		ce_swnd;
-				/* current congestion window size */
-		Gauge		ce_cwnd;
-				/* seq # of next expected segment */
-		Gauge		ce_rnxt;
-				/* seq # of last ack'd segment */
-		Gauge		ce_rack;
-				/* # of unsent bytes in the xmit queue */
-		Gauge		ce_unsent;
-				/* current receive window size */
-		Gauge		ce_rwnd;
-				/* round-trip time smoothed average (us) */
-		Gauge		ce_rtt_sa;
-				/* current rto (retransmit timeout) */
-		Gauge		ce_rto;
-				/* round-trip time count */
-		Gauge		ce_rtt_cnt;
-				/* current max segment size */
-		Gauge		ce_mss;
-				/* actual internal state */
-		int		ce_state;
-	}		tcpConnEntryInfo;
+	tcpConnEntryInfo_t tcpConnEntryInfo;
 
 	/* pid of the processes that created this connection */
 	uint32_t	tcpConnCreationProcess;
@@ -1453,7 +1456,7 @@
 	DeviceIndex	tcp6ConnIfIndex;
 	/* state of tcp6 connection		{ ipv6TcpConnEntry 6 } RW */
 	int		tcp6ConnState;
-	struct tcpConnEntryInfo_s tcp6ConnEntryInfo;
+	tcpConnEntryInfo_t tcp6ConnEntryInfo;
 
 	/* pid of the processes that created this connection */
 	uint32_t	tcp6ConnCreationProcess;