Lines Matching refs:network
47 if (!link->network) in link_ipv6_accept_ra_enabled()
53 assert(link->network->ipv6_accept_ra >= 0); in link_ipv6_accept_ra_enabled()
54 return link->network->ipv6_accept_ra; in link_ipv6_accept_ra_enabled()
57 void network_adjust_ipv6_accept_ra(Network *network) { in network_adjust_ipv6_accept_ra() argument
58 assert(network); in network_adjust_ipv6_accept_ra()
60 if (!FLAGS_SET(network->link_local, ADDRESS_FAMILY_IPV6)) { in network_adjust_ipv6_accept_ra()
61 if (network->ipv6_accept_ra > 0) in network_adjust_ipv6_accept_ra()
63 "Disabling IPv6AcceptRA=.", network->filename); in network_adjust_ipv6_accept_ra()
64 network->ipv6_accept_ra = false; in network_adjust_ipv6_accept_ra()
67 if (network->ipv6_accept_ra < 0) in network_adjust_ipv6_accept_ra()
69 network->ipv6_accept_ra = !FLAGS_SET(network->ip_forward, ADDRESS_FAMILY_IPV6); in network_adjust_ipv6_accept_ra()
73 if (!set_isempty(network->ndisc_allow_listed_router)) in network_adjust_ipv6_accept_ra()
74 … network->ndisc_deny_listed_router = set_free_free(network->ndisc_deny_listed_router); in network_adjust_ipv6_accept_ra()
75 if (!set_isempty(network->ndisc_allow_listed_prefix)) in network_adjust_ipv6_accept_ra()
76 … network->ndisc_deny_listed_prefix = set_free_free(network->ndisc_deny_listed_prefix); in network_adjust_ipv6_accept_ra()
77 if (!set_isempty(network->ndisc_allow_listed_route_prefix)) in network_adjust_ipv6_accept_ra()
78 … network->ndisc_deny_listed_route_prefix = set_free_free(network->ndisc_deny_listed_route_prefix); in network_adjust_ipv6_accept_ra()
241 route->priority = link->network->ipv6_accept_ra_route_metric; in ndisc_request_route()
305 assert(link->network); in ndisc_router_process_default()
308 if (!link->network->ipv6_accept_ra_use_gateway && in ndisc_router_process_default()
309 hashmap_isempty(link->network->routes_by_section)) in ndisc_router_process_default()
344 if (link->network->ipv6_accept_ra_use_mtu) { in ndisc_router_process_default()
350 if (link->network->ipv6_accept_ra_use_gateway) { in ndisc_router_process_default()
370 HASHMAP_FOREACH(route_gw, link->network->routes_by_section) { in ndisc_router_process_default()
407 assert(link->network); in ndisc_router_process_autonomous_prefix()
410 if (!link->network->ipv6_accept_ra_use_autonomous_prefix) in ndisc_router_process_autonomous_prefix()
500 assert(link->network); in ndisc_router_process_onlink_prefix()
503 if (!link->network->ipv6_accept_ra_use_onlink_prefix) in ndisc_router_process_onlink_prefix()
548 assert(link->network); in ndisc_router_process_prefix()
559 …if (in6_prefix_is_filtered(&a, prefixlen, link->network->ndisc_allow_listed_prefix, link->network-… in ndisc_router_process_prefix()
564 if (!set_isempty(link->network->ndisc_allow_listed_prefix)) in ndisc_router_process_prefix()
601 if (!link->network->ipv6_accept_ra_use_route_prefix) in ndisc_router_process_route()
624 …f (in6_prefix_is_filtered(&dst, prefixlen, link->network->ndisc_allow_listed_route_prefix, link->n… in ndisc_router_process_route()
629 if (!set_isempty(link->network->ndisc_allow_listed_route_prefix)) in ndisc_router_process_route()
702 assert(link->network); in ndisc_router_process_rdnss()
705 if (!link->network->ipv6_accept_ra_use_dns) in ndisc_router_process_rdnss()
796 assert(link->network); in ndisc_router_process_dnssl()
799 if (link->network->ipv6_accept_ra_use_domains == DHCP_USE_DOMAINS_NO) in ndisc_router_process_dnssl()
868 assert(link->network); in ndisc_router_process_options()
935 assert(link->network); in ndisc_start_dhcp6_client()
937 switch (link->network->ipv6_accept_ra_start_dhcp6_client) { in ndisc_start_dhcp6_client()
979 assert(link->network); in ndisc_router_handler()
987 …if (in6_prefix_is_filtered(&router, 128, link->network->ndisc_allow_listed_router, link->network->… in ndisc_router_handler()
992 if (!set_isempty(link->network->ndisc_allow_listed_router)) in ndisc_router_handler()