diff options
author | Pavel Emelyanov <xemul@parallels.com> | 2011-12-14 21:43:44 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-16 13:48:27 -0500 |
commit | f65c1b534b99aef1809b893387b295963821549f (patch) | |
tree | 0718e1598b4d01c4c1817a3c663a312616f0dddd /net/ipv4/udp_diag.c | |
parent | aec8dc62f66199aef153d86e1f90d9c1d14696e3 (diff) |
sock_diag: Generalize requests cookies managements
The sk address is used as a cookie between dump/get_exact calls.
It will be required for unix socket sdumping, so move it from
inet_diag to sock_diag.
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/udp_diag.c')
-rw-r--r-- | net/ipv4/udp_diag.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/udp_diag.c b/net/ipv4/udp_diag.c index fe9db8675acb..69f8a7ca63dd 100644 --- a/net/ipv4/udp_diag.c +++ b/net/ipv4/udp_diag.c | |||
@@ -57,7 +57,7 @@ static int udp_dump_one(struct udp_table *tbl, struct sk_buff *in_skb, | |||
57 | if (sk == NULL) | 57 | if (sk == NULL) |
58 | goto out_nosk; | 58 | goto out_nosk; |
59 | 59 | ||
60 | err = inet_diag_check_cookie(sk, req); | 60 | err = sock_diag_check_cookie(sk, req->id.idiag_cookie); |
61 | if (err) | 61 | if (err) |
62 | goto out; | 62 | goto out; |
63 | 63 | ||