[FFmpeg-devel] [PATCH] Clean up ipv6 vs the udp protocol

Martin Storsjö martin
Tue Jan 12 11:33:22 CET 2010


On Tue, 12 Jan 2010, Luca Abeni wrote:

> I am obviously missing something, but...
> [...]
> @@ -182,9 +177,11 @@ static int is_multicast_address(struct sockaddr *addr)
>      if (addr->sa_family == AF_INET) {
>          return IN_MULTICAST(ntohl(((struct sockaddr_in
> *)addr)->sin_addr.s_addr));
>      }
> +#if CONFIG_IPV6_MULTICAST
>      if (addr->sa_family == AF_INET6) {
>          return IN6_IS_ADDR_MULTICAST(&((struct sockaddr_in6
> *)addr)->sin6_addr);
>      }
> +#endif
> [...]
> Why is this needed?

We can't rely on having struct sockaddr_in6 available.

// Martin



More information about the ffmpeg-devel mailing list