Lines Matching refs:req
334 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL;
343 r = sd_rtnl_message_new_route(link->manager->rtnl, &req,
351 r = sd_netlink_message_append_in_addr(req, RTA_GATEWAY, &route->gw.in);
353 r = sd_netlink_message_append_in6_addr(req, RTA_GATEWAY, &route->gw.in6);
360 r = sd_netlink_message_append_in_addr(req, RTA_DST, &route->dst.in);
362 r = sd_netlink_message_append_in6_addr(req, RTA_DST, &route->dst.in6);
366 r = sd_rtnl_message_route_set_dst_prefixlen(req, route->dst_prefixlen);
373 r = sd_netlink_message_append_in_addr(req, RTA_SRC, &route->src.in);
375 r = sd_netlink_message_append_in6_addr(req, RTA_SRC, &route->src.in6);
379 r = sd_rtnl_message_route_set_src_prefixlen(req, route->src_prefixlen);
386 r = sd_netlink_message_append_in_addr(req, RTA_PREFSRC, &route->prefsrc.in);
388 r = sd_netlink_message_append_in6_addr(req, RTA_PREFSRC, &route->prefsrc.in6);
393 r = sd_rtnl_message_route_set_scope(req, route->scope);
397 r = sd_netlink_message_append_u32(req, RTA_PRIORITY, route->priority);
401 r = sd_netlink_message_append_u32(req, RTA_OIF, link->ifindex);
405 r = sd_netlink_call_async(link->manager->rtnl, req, callback, link, 0, NULL);
429 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL;
440 r = sd_rtnl_message_new_route(link->manager->rtnl, &req,
448 r = sd_netlink_message_append_in_addr(req, RTA_GATEWAY, &route->gw.in);
450 r = sd_netlink_message_append_in6_addr(req, RTA_GATEWAY, &route->gw.in6);
457 r = sd_netlink_message_append_in_addr(req, RTA_DST, &route->dst.in);
459 r = sd_netlink_message_append_in6_addr(req, RTA_DST, &route->dst.in6);
463 r = sd_rtnl_message_route_set_dst_prefixlen(req, route->dst_prefixlen);
470 r = sd_netlink_message_append_in_addr(req, RTA_SRC, &route->src.in);
472 r = sd_netlink_message_append_in6_addr(req, RTA_SRC, &route->src.in6);
476 r = sd_rtnl_message_route_set_src_prefixlen(req, route->src_prefixlen);
483 r = sd_netlink_message_append_in_addr(req, RTA_PREFSRC, &route->prefsrc.in);
485 r = sd_netlink_message_append_in6_addr(req, RTA_PREFSRC, &route->prefsrc.in6);
490 r = sd_rtnl_message_route_set_scope(req, route->scope);
494 r = sd_rtnl_message_route_set_flags(req, route->flags);
498 r = sd_netlink_message_append_u32(req, RTA_PRIORITY, route->priority);
502 r = sd_netlink_message_append_u8(req, RTA_PREF, route->pref);
506 r = sd_netlink_message_append_u32(req, RTA_OIF, link->ifindex);
510 r = sd_netlink_call_async(link->manager->rtnl, req, callback, link, 0, NULL);