Lines Matching defs:family

38         route->family = AF_UNSPEC;
113 siphash24_compress(&route->family, sizeof(route->family), state);
115 switch (route->family) {
120 siphash24_compress(&route->dst, FAMILY_ADDRESS_SIZE(route->family), state);
128 /* treat any other address family as AF_UNSPEC */
136 if (a->family < b->family)
138 if (a->family > b->family)
141 switch (a->family) {
164 return memcmp(&a->dst, &b->dst, FAMILY_ADDRESS_SIZE(a->family));
166 /* treat any other address family as AF_UNSPEC */
177 int family,
185 .family = family,
214 int family,
231 route->family = family;
257 int family,
263 return route_add_internal(link, &link->routes_foreign, family, dst, dst_prefixlen, tos, priority, table, ret);
267 int family,
276 r = route_get(link, family, dst, dst_prefixlen, tos, priority, table, &route);
279 r = route_add_internal(link, &link->routes, family, dst, dst_prefixlen, tos, priority, table, &route);
341 assert(route->family == AF_INET || route->family == AF_INET6);
344 RTM_DELROUTE, route->family,
349 if (!in_addr_is_null(route->family, &route->gw)) {
350 if (route->family == AF_INET)
352 else if (route->family == AF_INET6)
359 if (route->family == AF_INET)
361 else if (route->family == AF_INET6)
372 if (route->family == AF_INET)
374 else if (route->family == AF_INET6)
384 if (!in_addr_is_null(route->family, &route->prefsrc)) {
385 if (route->family == AF_INET)
387 else if (route->family == AF_INET6)
438 assert(route->family == AF_INET || route->family == AF_INET6);
441 RTM_NEWROUTE, route->family,
446 if (!in_addr_is_null(route->family, &route->gw)) {
447 if (route->family == AF_INET)
449 else if (route->family == AF_INET6)
456 if (route->family == AF_INET)
458 else if (route->family == AF_INET6)
469 if (route->family == AF_INET)
471 else if (route->family == AF_INET6)
481 if (!in_addr_is_null(route->family, &route->prefsrc)) {
482 if (route->family == AF_INET)
484 else if (route->family == AF_INET6)
518 r = route_add(link, route->family, &route->dst, route->dst_prefixlen, route->tos, route->priority, route->table, &route);
577 n->family = f;
617 n->family = f;
668 log_syntax(unit, LOG_ERR, filename, line, 0, "Unknown address family, ignoring assignment: %s", address);
690 n->family = f;