Lines Matching refs:link
33 Link *link, in ipv6_proxy_ndp_address_configure_handler() argument
39 assert(link); in ipv6_proxy_ndp_address_configure_handler()
43 …log_link_message_warning_errno(link, m, r, "Could not add IPv6 proxy ndp address entry, ignoring"); in ipv6_proxy_ndp_address_configure_handler()
45 if (link->static_ipv6_proxy_ndp_messages == 0) { in ipv6_proxy_ndp_address_configure_handler()
46 log_link_debug(link, "IPv6 proxy NDP addresses set."); in ipv6_proxy_ndp_address_configure_handler()
47 link->static_ipv6_proxy_ndp_configured = true; in ipv6_proxy_ndp_address_configure_handler()
48 link_check_ready(link); in ipv6_proxy_ndp_address_configure_handler()
55 static int ipv6_proxy_ndp_address_configure(const struct in6_addr *address, Link *link, Request *re… in ipv6_proxy_ndp_address_configure() argument
60 assert(link); in ipv6_proxy_ndp_address_configure()
61 assert(link->manager); in ipv6_proxy_ndp_address_configure()
62 assert(link->manager->rtnl); in ipv6_proxy_ndp_address_configure()
66 … r = sd_rtnl_message_new_neigh(link->manager->rtnl, &m, RTM_NEWNEIGH, link->ifindex, AF_INET6); in ipv6_proxy_ndp_address_configure()
78 return request_call_netlink_async(link->manager->rtnl, m, req); in ipv6_proxy_ndp_address_configure()
81 static int ipv6_proxy_ndp_address_process_request(Request *req, Link *link, struct in6_addr *addres… in ipv6_proxy_ndp_address_process_request() argument
85 assert(link); in ipv6_proxy_ndp_address_process_request()
88 if (!link_is_ready_to_configure(link, false)) in ipv6_proxy_ndp_address_process_request()
91 r = ipv6_proxy_ndp_address_configure(address, link, req); in ipv6_proxy_ndp_address_process_request()
93 … return log_link_warning_errno(link, r, "Failed to configure IPv6 proxy NDP address: %m"); in ipv6_proxy_ndp_address_process_request()
98 int link_request_static_ipv6_proxy_ndp_addresses(Link *link) { in link_request_static_ipv6_proxy_ndp_addresses() argument
102 assert(link); in link_request_static_ipv6_proxy_ndp_addresses()
103 assert(link->network); in link_request_static_ipv6_proxy_ndp_addresses()
105 link->static_ipv6_proxy_ndp_configured = false; in link_request_static_ipv6_proxy_ndp_addresses()
107 SET_FOREACH(address, link->network->ipv6_proxy_ndp_addresses) { in link_request_static_ipv6_proxy_ndp_addresses()
108 r = link_queue_request_safe(link, REQUEST_TYPE_IPV6_PROXY_NDP, in link_request_static_ipv6_proxy_ndp_addresses()
113 &link->static_ipv6_proxy_ndp_messages, in link_request_static_ipv6_proxy_ndp_addresses()
117 … return log_link_warning_errno(link, r, "Failed to request IPv6 proxy NDP address: %m"); in link_request_static_ipv6_proxy_ndp_addresses()
120 if (link->static_ipv6_proxy_ndp_messages == 0) { in link_request_static_ipv6_proxy_ndp_addresses()
121 link->static_ipv6_proxy_ndp_configured = true; in link_request_static_ipv6_proxy_ndp_addresses()
122 link_check_ready(link); in link_request_static_ipv6_proxy_ndp_addresses()
124 log_link_debug(link, "Setting IPv6 proxy NDP addresses."); in link_request_static_ipv6_proxy_ndp_addresses()
125 link_set_state(link, LINK_STATE_CONFIGURING); in link_request_static_ipv6_proxy_ndp_addresses()