Lines Matching refs:cur
591 LIST_FOREACH(prefix, cur, ra->prefixes) { in sd_radv_add_prefix()
594 (const union in_addr_union*) &cur->opt.in6_addr, in sd_radv_add_prefix()
595 cur->opt.prefixlen, in sd_radv_add_prefix()
603 if (cur->opt.prefixlen == p->opt.prefixlen) { in sd_radv_add_prefix()
604 found = cur; in sd_radv_add_prefix()
609 (void) in6_addr_prefix_to_string(&cur->opt.in6_addr, cur->opt.prefixlen, &addr_cur); in sd_radv_add_prefix()
668 LIST_FOREACH(prefix, cur, ra->prefixes) { in sd_radv_remove_prefix()
669 if (prefixlen != cur->opt.prefixlen) in sd_radv_remove_prefix()
672 if (!in6_addr_equal(prefix, &cur->opt.in6_addr)) in sd_radv_remove_prefix()
675 LIST_REMOVE(prefix, ra->prefixes, cur); in sd_radv_remove_prefix()
677 sd_radv_prefix_unref(cur); in sd_radv_remove_prefix()
692 LIST_FOREACH(prefix, cur, ra->route_prefixes) { in sd_radv_add_route_prefix()
695 (const union in_addr_union*) &cur->opt.in6_addr, in sd_radv_add_route_prefix()
696 cur->opt.prefixlen, in sd_radv_add_route_prefix()
704 if (cur->opt.prefixlen == p->opt.prefixlen) { in sd_radv_add_route_prefix()
705 found = cur; in sd_radv_add_route_prefix()
710 (void) in6_addr_prefix_to_string(&cur->opt.in6_addr, cur->opt.prefixlen, &addr_cur); in sd_radv_add_route_prefix()