diff options
author | Octavian Purdila <octavian.purdila@intel.com> | 2014-06-28 14:20:54 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-30 02:46:38 -0400 |
commit | 4135ab8208048a1586385fae1298726d7dacfc26 (patch) | |
tree | 742437711ba18086d42d3933b886dd9b23e73e57 /net/ipv4 | |
parent | 9e1a21b69394b677bd9b144bb638f6c660f77ed2 (diff) |
tcp: tcp_conn_request: fix build error when IPv6 is disabled
Fixes build error introduced by commit 1fb6f159fd21c64 (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 <fengguang.wu@intel.com>
Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/tcp_input.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 97e48d60c4e8..bb684967f7a7 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -5885,9 +5885,11 @@ static inline void pr_drop_req(struct request_sock *req, __u16 port, int family) | |||
5885 | if (family == AF_INET) | 5885 | if (family == AF_INET) |
5886 | LIMIT_NETDEBUG(KERN_DEBUG pr_fmt("drop open request from %pI4/%u\n"), | 5886 | LIMIT_NETDEBUG(KERN_DEBUG pr_fmt("drop open request from %pI4/%u\n"), |
5887 | &ireq->ir_rmt_addr, port); | 5887 | &ireq->ir_rmt_addr, port); |
5888 | else | 5888 | #if IS_ENABLED(CONFIG_IPV6) |
5889 | else if (family == AF_INET6) | ||
5889 | LIMIT_NETDEBUG(KERN_DEBUG pr_fmt("drop open request from %pI6/%u\n"), | 5890 | LIMIT_NETDEBUG(KERN_DEBUG pr_fmt("drop open request from %pI6/%u\n"), |
5890 | &ireq->ir_v6_rmt_addr, port); | 5891 | &ireq->ir_v6_rmt_addr, port); |
5892 | #endif | ||
5891 | } | 5893 | } |
5892 | 5894 | ||
5893 | int tcp_conn_request(struct request_sock_ops *rsk_ops, | 5895 | int tcp_conn_request(struct request_sock_ops *rsk_ops, |