o Unbreak "options TCPDEBUG" && "nooptions INET6" kernel build.

PR:		kern/112517
Submitted by:	vd
This commit is contained in:
Maxim Konovalov 2007-05-09 06:09:40 +00:00
parent 5100f9e95b
commit 10fe523e99
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=169405
2 changed files with 4 additions and 0 deletions

View File

@ -780,9 +780,11 @@ tcp_input(struct mbuf *m, int off0)
#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;
}

View File

@ -780,9 +780,11 @@ tcp_input(struct mbuf *m, int off0)
#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;
}