diff options
Diffstat (limited to 'net/ipv4/tcp_diag.c')
-rw-r--r-- | net/ipv4/tcp_diag.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/net/ipv4/tcp_diag.c b/net/ipv4/tcp_diag.c index 6f2d6f2276b9..60c6a797cc50 100644 --- a/net/ipv4/tcp_diag.c +++ b/net/ipv4/tcp_diag.c | |||
@@ -174,8 +174,6 @@ nlmsg_failure: | |||
174 | return -1; | 174 | return -1; |
175 | } | 175 | } |
176 | 176 | ||
177 | extern struct sock *tcp_v4_lookup(u32 saddr, u16 sport, u32 daddr, u16 dport, | ||
178 | int dif); | ||
179 | #ifdef CONFIG_IP_TCPDIAG_IPV6 | 177 | #ifdef CONFIG_IP_TCPDIAG_IPV6 |
180 | extern struct sock *tcp_v6_lookup(struct in6_addr *saddr, u16 sport, | 178 | extern struct sock *tcp_v6_lookup(struct in6_addr *saddr, u16 sport, |
181 | struct in6_addr *daddr, u16 dport, | 179 | struct in6_addr *daddr, u16 dport, |
@@ -197,9 +195,9 @@ static int tcpdiag_get_exact(struct sk_buff *in_skb, const struct nlmsghdr *nlh) | |||
197 | struct sk_buff *rep; | 195 | struct sk_buff *rep; |
198 | 196 | ||
199 | if (req->tcpdiag_family == AF_INET) { | 197 | if (req->tcpdiag_family == AF_INET) { |
200 | sk = tcp_v4_lookup(req->id.tcpdiag_dst[0], req->id.tcpdiag_dport, | 198 | sk = inet_lookup(&tcp_hashinfo, req->id.tcpdiag_dst[0], |
201 | req->id.tcpdiag_src[0], req->id.tcpdiag_sport, | 199 | req->id.tcpdiag_dport, req->id.tcpdiag_src[0], |
202 | req->id.tcpdiag_if); | 200 | req->id.tcpdiag_sport, req->id.tcpdiag_if); |
203 | } | 201 | } |
204 | #ifdef CONFIG_IP_TCPDIAG_IPV6 | 202 | #ifdef CONFIG_IP_TCPDIAG_IPV6 |
205 | else if (req->tcpdiag_family == AF_INET6) { | 203 | else if (req->tcpdiag_family == AF_INET6) { |