diff options
Diffstat (limited to 'net/ipv4/tcp_metrics.c')
-rw-r--r-- | net/ipv4/tcp_metrics.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/net/ipv4/tcp_metrics.c b/net/ipv4/tcp_metrics.c index 8fcc2cb9dba4..4a2a84110dfb 100644 --- a/net/ipv4/tcp_metrics.c +++ b/net/ipv4/tcp_metrics.c | |||
@@ -215,13 +215,15 @@ static struct tcp_metrics_block *__tcp_get_metrics_req(struct request_sock *req, | |||
215 | addr.family = req->rsk_ops->family; | 215 | addr.family = req->rsk_ops->family; |
216 | switch (addr.family) { | 216 | switch (addr.family) { |
217 | case AF_INET: | 217 | case AF_INET: |
218 | addr.addr.a4 = inet_rsk(req)->rmt_addr; | 218 | addr.addr.a4 = inet_rsk(req)->ir_rmt_addr; |
219 | hash = (__force unsigned int) addr.addr.a4; | 219 | hash = (__force unsigned int) addr.addr.a4; |
220 | break; | 220 | break; |
221 | #if IS_ENABLED(CONFIG_IPV6) | ||
221 | case AF_INET6: | 222 | case AF_INET6: |
222 | *(struct in6_addr *)addr.addr.a6 = inet6_rsk(req)->rmt_addr; | 223 | *(struct in6_addr *)addr.addr.a6 = inet_rsk(req)->ir_v6_rmt_addr; |
223 | hash = ipv6_addr_hash(&inet6_rsk(req)->rmt_addr); | 224 | hash = ipv6_addr_hash(&inet_rsk(req)->ir_v6_rmt_addr); |
224 | break; | 225 | break; |
226 | #endif | ||
225 | default: | 227 | default: |
226 | return NULL; | 228 | return NULL; |
227 | } | 229 | } |