Lines Matching refs:rcast
103 struct udp_replicast rcast; member
237 struct udp_replicast *rcast; in tipc_udp_send_msg() local
256 &ub->rcast.dst_cache); in tipc_udp_send_msg()
259 list_for_each_entry_rcu(rcast, &ub->rcast.list, list) { in tipc_udp_send_msg()
268 err = tipc_udp_xmit(net, _skb, ub, src, &rcast->addr, in tipc_udp_send_msg()
269 &rcast->dst_cache); in tipc_udp_send_msg()
282 struct udp_replicast *rcast, *tmp; in tipc_udp_is_known_peer() local
291 list_for_each_entry_safe(rcast, tmp, &ub->rcast.list, list) { in tipc_udp_is_known_peer()
292 if (!memcmp(&rcast->addr, addr, sizeof(struct udp_media_addr))) in tipc_udp_is_known_peer()
302 struct udp_replicast *rcast; in tipc_udp_rcast_add() local
309 rcast = kmalloc(sizeof(*rcast), GFP_ATOMIC); in tipc_udp_rcast_add()
310 if (!rcast) in tipc_udp_rcast_add()
313 if (dst_cache_init(&rcast->dst_cache, GFP_ATOMIC)) { in tipc_udp_rcast_add()
314 kfree(rcast); in tipc_udp_rcast_add()
318 memcpy(&rcast->addr, addr, sizeof(struct udp_media_addr)); in tipc_udp_rcast_add()
321 pr_info("New replicast peer: %pI4\n", &rcast->addr.ipv4); in tipc_udp_rcast_add()
324 pr_info("New replicast peer: %pI6\n", &rcast->addr.ipv6); in tipc_udp_rcast_add()
327 list_add_rcu(&rcast->list, &ub->rcast.list); in tipc_udp_rcast_add()
460 struct udp_replicast *rcast, *tmp; in tipc_udp_nl_dump_remoteip() local
513 list_for_each_entry_safe(rcast, tmp, &ub->rcast.list, list) { in tipc_udp_nl_dump_remoteip()
523 err = __tipc_nl_add_udp_addr(skb, &rcast->addr, in tipc_udp_nl_dump_remoteip()
563 if (!list_empty(&ub->rcast.list)) { in tipc_udp_nl_add_bearer_data()
679 INIT_LIST_HEAD(&ub->rcast.list); in tipc_udp_enable()
776 err = dst_cache_init(&ub->rcast.dst_cache, GFP_ATOMIC); in tipc_udp_enable()
795 dst_cache_destroy(&ub->rcast.dst_cache); in tipc_udp_enable()
806 struct udp_replicast *rcast, *tmp; in cleanup_bearer() local
808 list_for_each_entry_safe(rcast, tmp, &ub->rcast.list, list) { in cleanup_bearer()
809 dst_cache_destroy(&rcast->dst_cache); in cleanup_bearer()
810 list_del_rcu(&rcast->list); in cleanup_bearer()
811 kfree_rcu(rcast, rcu); in cleanup_bearer()
815 dst_cache_destroy(&ub->rcast.dst_cache); in cleanup_bearer()