]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: fix IPv6 address handling in the DRC
authorJeff Layton <jlayton@redhat.com>
Mon, 28 Jan 2013 19:41:07 +0000 (14:41 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 4 Feb 2013 14:16:19 +0000 (09:16 -0500)
commit303b8604fbd993c2fb0828ccc7f83ee97827b979
tree285c0d08f3e967abb7e3c33e4846da353270183b
parent1b66b3c18d053c6edba3e048e4db710831337777
nfsd: fix IPv6 address handling in the DRC

Currently, it only stores the first 16 bytes of any address. struct
sockaddr_in6 is 28 bytes however, so we're currently ignoring the last
12 bytes of the address.

Expand the c_addr field to a sockaddr_in6, and cast it to a sockaddr_in
as necessary. Also fix the comparitor to use the existing RPC
helpers for this.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/cache.h
fs/nfsd/nfscache.c
include/linux/sunrpc/clnt.h