From cc6f7c0d991522d3063004bbc78a1c276db66ca0 Mon Sep 17 00:00:00 2001 From: maxim Date: Wed, 9 May 2007 06:09:40 +0000 Subject: o Unbreak "options TCPDEBUG" && "nooptions INET6" kernel build. PR: kern/112517 Submitted by: vd --- sys/netinet/tcp_input.c | 2 ++ sys/netinet/tcp_reass.c | 2 ++ 2 files changed, 4 insertions(+) (limited to 'sys') diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 6ff6363..1103e55 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -780,9 +780,11 @@ findpcb: #ifdef TCPDEBUG if (so->so_options & SO_DEBUG) { ostate = tp->t_state; +#ifdef INET6 if (isipv6) bcopy((char *)ip6, (char *)tcp_saveipgen, sizeof(*ip6)); else +#endif /* INET6 */ bcopy((char *)ip, (char *)tcp_saveipgen, sizeof(*ip)); tcp_savetcp = *th; } diff --git a/sys/netinet/tcp_reass.c b/sys/netinet/tcp_reass.c index 6ff6363..1103e55 100644 --- a/sys/netinet/tcp_reass.c +++ b/sys/netinet/tcp_reass.c @@ -780,9 +780,11 @@ findpcb: #ifdef TCPDEBUG if (so->so_options & SO_DEBUG) { ostate = tp->t_state; +#ifdef INET6 if (isipv6) bcopy((char *)ip6, (char *)tcp_saveipgen, sizeof(*ip6)); else +#endif /* INET6 */ bcopy((char *)ip, (char *)tcp_saveipgen, sizeof(*ip)); tcp_savetcp = *th; } -- cgit v1.1