Re: [PATCH] Fallback to ipv4 if we try to add join IPv4 multicast group via ipv4-mapped address.

2007-10-03 Thread Dmitry Baryshkov
Hello, David Stevens wrote: Dmitry, Good catch; a couple comments: Thank you for the response. struct ipv6_pinfo *np = inet6_sk(sk); int err; + int addr_type = ipv6_addr_type(addr); + + if (addr_type == IPV6_ADDR_MAPPED) { + __be32 v4addr = addr->s6_addr32[3]; +

Re: [PATCH] Fallback to ipv4 if we try to add join IPv4 multicast group via ipv4-mapped address.

2007-10-02 Thread David Stevens
Dmitry, Good catch; a couple comments: > struct ipv6_pinfo *np = inet6_sk(sk); > int err; > + int addr_type = ipv6_addr_type(addr); > + > + if (addr_type == IPV6_ADDR_MAPPED) { > + __be32 v4addr = addr->s6_addr32[3]; > + struct ip_mreqn mreq; > + mreq.imr_multiad

[PATCH] Fallback to ipv4 if we try to add join IPv4 multicast group via ipv4-mapped address.

2007-10-02 Thread Dmitry Baryshkov
Signed-off-by: Dmitry Baryshkov <[EMAIL PROTECTED]> diff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c index ae98818..c70a87d 100644 --- a/net/ipv6/mcast.c +++ b/net/ipv6/mcast.c @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include @@ -183,6 +184,17 @@ int i