Searched refs:gw_family (Results 1 – 8 of 8) sorted by relevance
/systemd-251/src/network/ |
D | networkd-route.c | 127 siphash24_compress(&route->gw_family, sizeof(route->gw_family), state); in route_hash_func() 128 if (IN_SET(route->gw_family, AF_INET, AF_INET6)) { in route_hash_func() 129 … siphash24_compress(&route->gw, FAMILY_ADDRESS_SIZE(route->gw_family), state); in route_hash_func() 181 r = CMP(a->gw_family, b->gw_family); in route_compare_func() 185 if (IN_SET(a->gw_family, AF_INET, AF_INET6)) { in route_compare_func() 349 route->gw_family = nh->family; in route_apply_nexthop() 363 route->gw_family = m->gateway.family; in route_apply_multipath_route() 565 if (in_addr_is_set(route->gw_family, &route->gw)) { in log_route_debug() 566 (void) in_addr_to_string(route->gw_family, &route->gw, &gw_alloc); in log_route_debug() 569 if (route->gw_family == AF_INET) in log_route_debug() [all …]
|
D | networkd-dhcp4.c | 350 route->gw_family = AF_UNSPEC; in dhcp4_request_route_auto() 361 route->gw_family = AF_UNSPEC; in dhcp4_request_route_auto() 375 route->gw_family = AF_UNSPEC; in dhcp4_request_route_auto() 393 route->gw_family = AF_INET; in dhcp4_request_route_auto() 490 route->gw_family = AF_INET; in dhcp4_request_static_routes() 568 route->gw_family = AF_INET; in dhcp4_request_gateway() 600 if (rt->gw_family != AF_INET) in dhcp4_request_semi_static_routes()
|
D | networkd-route.h | 35 int gw_family; member
|
D | networkd-ndisc.c | 359 route->gw_family = AF_INET6; in ndisc_router_process_default() 376 if (route_gw->gw_family != AF_INET6) in ndisc_router_process_default() 666 route->gw_family = AF_INET6; in ndisc_router_process_route()
|
D | networkd-route-util.c | 60 if (!in_addr_is_set(route->gw_family, &route->gw)) in link_find_default_gateway()
|
D | networkd-dhcp-prefix-delegation.c | 822 route->gw_family = AF_INET6; in dhcp4_pd_request_default_gateway_on_6rd_tunnel()
|
D | networkd-json.c | 301 … JSON_BUILD_PAIR_IN_ADDR_NON_NULL("Gateway", &route->gw, route->gw_family), in route_build_json()
|
/systemd-251/src/libsystemd/sd-netlink/ |
D | netlink-util.c | 595 uint16_t gw_family; in rtattr_read_nexthop() local 603 gw_family = *(uint16_t *) RTA_DATA(attr); in rtattr_read_nexthop() 605 if (gw_family != AF_INET6) in rtattr_read_nexthop() 608 … if (attr->rta_len != RTA_LENGTH(FAMILY_ADDRESS_SIZE(gw_family) + sizeof(gw_family))) in rtattr_read_nexthop() 611 … memcpy(&m->gateway, RTA_DATA(attr), FAMILY_ADDRESS_SIZE(gw_family) + sizeof(gw_family)); in rtattr_read_nexthop()
|