summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_debug.h
diff options
context:
space:
mode:
authormaxim <maxim@FreeBSD.org>2007-03-24 22:15:02 +0000
committermaxim <maxim@FreeBSD.org>2007-03-24 22:15:02 +0000
commitd789919b3a4dee402f0711ab34179e19eef81166 (patch)
tree03b986e5a07a9747b9cd66ad6c51a2faef0c27ed /sys/netinet/tcp_debug.h
parent8561f36aa3abcc9976e5452c93bd0394586f0d0d (diff)
downloadFreeBSD-src-d789919b3a4dee402f0711ab34179e19eef81166.zip
FreeBSD-src-d789919b3a4dee402f0711ab34179e19eef81166.tar.gz
o Use a define for a buffer size.
Prodded by: db o Add missed vars for TCPDEBUG in tcp_do_segment(). Prodded by: tinderbox
Diffstat (limited to 'sys/netinet/tcp_debug.h')
-rw-r--r--sys/netinet/tcp_debug.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/tcp_debug.h b/sys/netinet/tcp_debug.h
index 03872e2..8547d0e 100644
--- a/sys/netinet/tcp_debug.h
+++ b/sys/netinet/tcp_debug.h
@@ -45,10 +45,11 @@ struct tcp_debug {
*/
struct tcpiphdr td_ti;
struct {
+#define IP6_HDR_LEN 40 /* sizeof(struct ip6_hdr) */
#if !defined(_KERNEL) && defined(INET6)
struct ip6_hdr ip6;
#else
- u_char ip6buf[40]; /* sizeof(struct ip6_hdr) */
+ u_char ip6buf[IP6_HDR_LEN];
#endif
struct tcphdr th;
} td_ti6;
OpenPOWER on IntegriCloud