o Unbreak "options TCPDEBUG" && "nooptions INET6" kernel build.
PR: kern/112517 Submitted by: vd
This commit is contained in:
parent
5100f9e95b
commit
10fe523e99
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=169405
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user