Lines Matching refs:req
146 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req;
151 r = sd_rtnl_message_new_route(NULL, &req, RTM_NEWROUTE, AF_INET, RTPROT_STATIC);
159 r = sd_netlink_message_append_in_addr(req, RTA_GATEWAY, &addr);
165 r = sd_netlink_message_append_u32(req, RTA_OIF, index);
171 assert_se(sd_netlink_message_rewind(req) >= 0);
173 assert_se(sd_netlink_message_read_in_addr(req, RTA_GATEWAY, &addr_data) >= 0);
176 assert_se(sd_netlink_message_read_u32(req, RTA_OIF, &u32_data) >= 0);
179 assert_se((req = sd_netlink_message_unref(req)) == NULL);
344 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL, *reply = NULL;
347 assert_se(sd_rtnl_message_new_addr(rtnl, &req, RTM_GETADDR, 0, AF_UNSPEC) >= 0);
349 assert_se(sd_netlink_call(rtnl, req, 0, &reply) >= 0);