mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
Fix compilation in case of defined(INET) && defined(IPFIREWALL_FORWARD)
but no INET6. Reported by: avg Tested by: avg MFC after: 4 weeks X-MFC with: r225044 Approved by: re (kib)
This commit is contained in:
parent
8a006adb24
commit
6f69742441
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=225046
@ -581,9 +581,6 @@ tcp_input(struct mbuf *m, int off0)
|
||||
int isipv6;
|
||||
#else
|
||||
const void *ip6 = NULL;
|
||||
#if (defined(INET) && defined(IPFIREWALL_FORWARD)) || defined(TCPDEBUG)
|
||||
const int isipv6 = 0;
|
||||
#endif
|
||||
#endif /* INET6 */
|
||||
struct tcpopt to; /* options in this segment */
|
||||
char *s = NULL; /* address and port logging */
|
||||
@ -1028,11 +1025,11 @@ tcp_input(struct mbuf *m, int off0)
|
||||
#ifdef TCPDEBUG
|
||||
if (so->so_options & SO_DEBUG) {
|
||||
ostate = tp->t_state;
|
||||
if (isipv6) {
|
||||
#ifdef INET6
|
||||
if (isipv6) {
|
||||
bcopy((char *)ip6, (char *)tcp_saveipgen, sizeof(*ip6));
|
||||
#endif
|
||||
} else
|
||||
#endif
|
||||
bcopy((char *)ip, (char *)tcp_saveipgen, sizeof(*ip));
|
||||
tcp_savetcp = *th;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user