Skip to content

Commit 4135ab8

Browse files
Octavian Purdiladavem330
authored andcommitted
tcp: tcp_conn_request: fix build error when IPv6 is disabled
Fixes build error introduced by commit 1fb6f15 (tcp: add tcp_conn_request): net/ipv4/tcp_input.c: In function 'pr_drop_req': net/ipv4/tcp_input.c:5889:130: error: 'struct sock_common' has no member named 'skc_v6_daddr' Reported-by: kbuild test robot <[email protected]> Signed-off-by: Octavian Purdila <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 9e1a21b commit 4135ab8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

net/ipv4/tcp_input.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5885,9 +5885,11 @@ static inline void pr_drop_req(struct request_sock *req, __u16 port, int family)
58855885
if (family == AF_INET)
58865886
LIMIT_NETDEBUG(KERN_DEBUG pr_fmt("drop open request from %pI4/%u\n"),
58875887
&ireq->ir_rmt_addr, port);
5888-
else
5888+
#if IS_ENABLED(CONFIG_IPV6)
5889+
else if (family == AF_INET6)
58895890
LIMIT_NETDEBUG(KERN_DEBUG pr_fmt("drop open request from %pI6/%u\n"),
58905891
&ireq->ir_v6_rmt_addr, port);
5892+
#endif
58915893
}
58925894

58935895
int tcp_conn_request(struct request_sock_ops *rsk_ops,

0 commit comments

Comments
 (0)