summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_debug.h
diff options
context:
space:
mode:
authorYoshinobu Inoue <shin@FreeBSD.org>2000-01-29 11:49:07 +0000
committerYoshinobu Inoue <shin@FreeBSD.org>2000-01-29 11:49:07 +0000
commitae8d5227344aa09191fe3cc636ccbbae9b9e001c (patch)
treee99476beafff16132006483da4f54e3cdec1eda2 /sys/netinet/tcp_debug.h
parentcda4644c2814329ce2a2f1ca65c47037740b01e3 (diff)
Notes
Diffstat (limited to 'sys/netinet/tcp_debug.h')
-rw-r--r--sys/netinet/tcp_debug.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/sys/netinet/tcp_debug.h b/sys/netinet/tcp_debug.h
index 98275392844b..773d3e4bb250 100644
--- a/sys/netinet/tcp_debug.h
+++ b/sys/netinet/tcp_debug.h
@@ -42,8 +42,21 @@ struct tcp_debug {
short td_act;
short td_ostate;
caddr_t td_tcb;
- u_char td_ipgen[40]; /* the size must be of max ip header, now IPv6 */
- struct tcphdr td_th;
+ int td_family;
+ /*
+ * Co-existense of td_ti and td_ti6 below is ugly, but it is necessary
+ * to achieve backword compatibility to some extent.
+ */
+ struct tcpiphdr td_ti;
+ struct {
+#if !defined(_KERNEL) && defined(INET6)
+ struct ip6_hdr ip6;
+#else
+ u_char ip6buf[40]; /* sizeof(struct ip6_hdr) */
+#endif
+ struct tcphdr th;
+ } td_ti6;
+#define td_ip6buf td_ti6.ip6buf
short td_req;
struct tcpcb td_cb;
};