Commit:     b225b884a18a1932db5414abd3ef94a45e4e348e
Parent:     cc121fa87a0ce356c23fb4d7358310e747cad8cc
Author:     Dave Johnson <[EMAIL PROTECTED]>
AuthorDate: Wed Jul 25 19:49:29 2007 -0400
Committer:  Vlad Yasevich <[EMAIL PROTECTED]>
CommitDate: Wed Aug 1 11:19:06 2007 -0400

    SCTP: IPv4 mapped addr not returned in SCTPv6 accept()
    An accept() call on a SCTPv6 socket that returns due to connection of
    a IPv4 mapped peer will fill out the 'struct sockaddr' with a zero
    IPv6 address instead of the IPv4 mapped address of the peer.
    This is due to the v4mapped flag not getting copied into the new
    socket on accept() as well as a missing check for INET6 socket type in
    Signed-off-by: Dave Johnson <[EMAIL PROTECTED]>
    Cc: Srinivas Akkipeddi <[EMAIL PROTECTED]>
    Signed-off-by: Vlad Yasevich <[EMAIL PROTECTED]>
 net/sctp/ipv6.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c
index 2c29394..f8aa23d 100644
--- a/net/sctp/ipv6.c
+++ b/net/sctp/ipv6.c
@@ -641,6 +641,8 @@ static struct sock *sctp_v6_create_accept_sk(struct sock 
        newsctp6sk = (struct sctp6_sock *)newsk;
        inet_sk(newsk)->pinet6 = &newsctp6sk->inet6;
+       sctp_sk(newsk)->v4mapped = sctp_sk(sk)->v4mapped;
        newinet = inet_sk(newsk);
        newnp = inet6_sk(newsk);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to