Home
last modified time | relevance | path

Searched refs:mc (Results 1 – 6 of 6) sorted by relevance

/net/ipv6/
Dmcast.c624 struct ipv6_mc_socklist *mc; in inet6_mc_check() local
629 for_each_pmc_rcu(np, mc) { in inet6_mc_check()
630 if (ipv6_addr_equal(&mc->addr, mc_addr)) in inet6_mc_check()
633 if (!mc) { in inet6_mc_check()
637 read_lock(&mc->sflock); in inet6_mc_check()
638 psl = mc->sflist; in inet6_mc_check()
640 rv = mc->sfmode == MCAST_EXCLUDE; in inet6_mc_check()
648 if (mc->sfmode == MCAST_INCLUDE && i >= psl->sl_count) in inet6_mc_check()
650 if (mc->sfmode == MCAST_EXCLUDE && i < psl->sl_count) in inet6_mc_check()
653 read_unlock(&mc->sflock); in inet6_mc_check()
[all …]
/net/core/
Ddev_addr_lists.c743 list_for_each_entry(ha, &dev->mc.list, list) { in dev_mc_add_excl()
750 err = __hw_addr_create_ex(&dev->mc, addr, dev->addr_len, in dev_mc_add_excl()
766 err = __hw_addr_add_ex(&dev->mc, addr, dev->addr_len, in __dev_mc_add()
806 err = __hw_addr_del_ex(&dev->mc, addr, dev->addr_len, in __dev_mc_del()
862 err = __hw_addr_sync(&to->mc, &from->mc, to->addr_len); in dev_mc_sync()
892 err = __hw_addr_sync_multiple(&to->mc, &from->mc, to->addr_len); in dev_mc_sync_multiple()
916 __hw_addr_unsync(&to->mc, &from->mc, to->addr_len); in dev_mc_unsync()
932 __hw_addr_flush(&dev->mc); in dev_mc_flush()
945 __hw_addr_init(&dev->mc); in dev_mc_init()
Dpktgen.c2303 __u32 mc; in mod_cur_headers() local
2307 mc = prandom_u32() % pkt_dev->src_mac_count; in mod_cur_headers()
2309 mc = pkt_dev->cur_src_mac_offset++; in mod_cur_headers()
2315 tmp = pkt_dev->src_mac[5] + (mc & 0xFF); in mod_cur_headers()
2317 tmp = (pkt_dev->src_mac[4] + ((mc >> 8) & 0xFF) + (tmp >> 8)); in mod_cur_headers()
2319 tmp = (pkt_dev->src_mac[3] + ((mc >> 16) & 0xFF) + (tmp >> 8)); in mod_cur_headers()
2321 tmp = (pkt_dev->src_mac[2] + ((mc >> 24) & 0xFF) + (tmp >> 8)); in mod_cur_headers()
2329 __u32 mc; in mod_cur_headers() local
2333 mc = prandom_u32() % pkt_dev->dst_mac_count; in mod_cur_headers()
2336 mc = pkt_dev->cur_dst_mac_offset++; in mod_cur_headers()
[all …]
Drtnetlink.c3956 err = nlmsg_populate_fdb(skb, cb, dev, idx, &dev->mc); in ndo_dflt_fdb_dump()
/net/mac80211/
Dmain.c38 u64 mc; in ieee80211_configure_filter() local
70 mc = drv_prepare_multicast(local, &local->mc_list); in ieee80211_configure_filter()
76 drv_configure_filter(local, changed_flags, &new_flags, mc); in ieee80211_configure_filter()
Diface.c873 __hw_addr_unsync(&local->mc_list, &sdata->dev->mc, in ieee80211_do_stop()
1100 __hw_addr_sync(&local->mc_list, &dev->mc, dev->addr_len); in ieee80211_set_multicast_list()