Project

General

Profile

Bug #352 » batman.patch

Марк Коренберг, 04/06/2018 06:03 PM

View differences:

batman-adv-2018.0/net/batman-adv/multicast.c
*/
static void batadv_mcast_mla_br_addr_cpy(char *dst, const struct br_ip *src)
{
if (src->proto == htons(ETH_P_IP))
#if IS_ENABLED(CONFIG_INET)
if (src->proto == htons(ETH_P_IP)) {
ip_eth_mc_map(src->u.ip4, dst);
return;
}
#endif
#if IS_ENABLED(CONFIG_IPV6)
else if (src->proto == htons(ETH_P_IPV6))
if (src->proto == htons(ETH_P_IPV6)) {
ipv6_eth_mc_map(&src->u.ip6, dst);
return;
}
#endif
else
eth_zero_addr(dst);
eth_zero_addr(dst);
}
/**
    (1-1/1)