• Home
  • Raw
  • Download

Lines Matching refs:rcast

97 	struct udp_replicast rcast;  member
231 struct udp_replicast *rcast; in tipc_udp_send_msg() local
250 &ub->rcast.dst_cache); in tipc_udp_send_msg()
253 list_for_each_entry_rcu(rcast, &ub->rcast.list, list) { in tipc_udp_send_msg()
262 err = tipc_udp_xmit(net, _skb, ub, src, &rcast->addr, in tipc_udp_send_msg()
263 &rcast->dst_cache); in tipc_udp_send_msg()
276 struct udp_replicast *rcast, *tmp; in tipc_udp_is_known_peer() local
285 list_for_each_entry_safe(rcast, tmp, &ub->rcast.list, list) { in tipc_udp_is_known_peer()
286 if (!memcmp(&rcast->addr, addr, sizeof(struct udp_media_addr))) in tipc_udp_is_known_peer()
296 struct udp_replicast *rcast; in tipc_udp_rcast_add() local
303 rcast = kmalloc(sizeof(*rcast), GFP_ATOMIC); in tipc_udp_rcast_add()
304 if (!rcast) in tipc_udp_rcast_add()
307 if (dst_cache_init(&rcast->dst_cache, GFP_ATOMIC)) { in tipc_udp_rcast_add()
308 kfree(rcast); in tipc_udp_rcast_add()
312 memcpy(&rcast->addr, addr, sizeof(struct udp_media_addr)); in tipc_udp_rcast_add()
315 pr_info("New replicast peer: %pI4\n", &rcast->addr.ipv4); in tipc_udp_rcast_add()
318 pr_info("New replicast peer: %pI6\n", &rcast->addr.ipv6); in tipc_udp_rcast_add()
321 list_add_rcu(&rcast->list, &ub->rcast.list); in tipc_udp_rcast_add()
452 struct udp_replicast *rcast, *tmp; in tipc_udp_nl_dump_remoteip() local
505 list_for_each_entry_safe(rcast, tmp, &ub->rcast.list, list) { in tipc_udp_nl_dump_remoteip()
515 err = __tipc_nl_add_udp_addr(skb, &rcast->addr, in tipc_udp_nl_dump_remoteip()
555 if (!list_empty(&ub->rcast.list)) { in tipc_udp_nl_add_bearer_data()
671 INIT_LIST_HEAD(&ub->rcast.list); in tipc_udp_enable()
771 err = dst_cache_init(&ub->rcast.dst_cache, GFP_ATOMIC); in tipc_udp_enable()
790 dst_cache_destroy(&ub->rcast.dst_cache); in tipc_udp_enable()
801 struct udp_replicast *rcast, *tmp; in cleanup_bearer() local
803 list_for_each_entry_safe(rcast, tmp, &ub->rcast.list, list) { in cleanup_bearer()
804 dst_cache_destroy(&rcast->dst_cache); in cleanup_bearer()
805 list_del_rcu(&rcast->list); in cleanup_bearer()
806 kfree_rcu(rcast, rcu); in cleanup_bearer()
810 dst_cache_destroy(&ub->rcast.dst_cache); in cleanup_bearer()