lkml.org 
[lkml]   [2006]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 011 of 13] knfsd: SUNRPC: Support IPv6 addresses in svc_tcp_accept

    From: Chuck Lever <chuck.lever@oracle.com>

    Modify svc_tcp_accept to support connecting on IPv6 sockets.

    Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
    Cc: Aurelien Charbon <aurelien.charbon@ext.bull.net>
    Signed-off-by: Neil Brown <neilb@suse.de>

    ### Diffstat output
    ./net/sunrpc/svcsock.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff .prev/net/sunrpc/svcsock.c ./net/sunrpc/svcsock.c
    --- .prev/net/sunrpc/svcsock.c 2006-12-08 13:58:41.000000000 +1100
    +++ ./net/sunrpc/svcsock.c 2006-12-08 13:59:06.000000000 +1100
    @@ -946,7 +946,7 @@ static inline int svc_port_is_privileged
    static void
    svc_tcp_accept(struct svc_sock *svsk)
    {
    - struct sockaddr_in sin;
    + struct sockaddr_storage sin;
    struct svc_serv *serv = svsk->sk_server;
    struct socket *sock = svsk->sk_sock;
    struct socket *newsock;
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2006-12-08 13:09    [W:0.023 / U:0.456 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site