Lines Matching refs:req

46         _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL;  in start_loopback()
52 r = sd_rtnl_message_new_link(rtnl, &req, RTM_SETLINK, LOOPBACK_IFINDEX); in start_loopback()
56 r = sd_rtnl_message_link_set_flags(req, IFF_UP, IFF_UP); in start_loopback()
60 …r = sd_netlink_call_async(rtnl, NULL, req, generic_handler, NULL, s, LOOPBACK_SETUP_TIMEOUT_USEC, … in start_loopback()
69 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL; in add_ipv4_address()
75 r = sd_rtnl_message_new_addr(rtnl, &req, RTM_NEWADDR, LOOPBACK_IFINDEX, AF_INET); in add_ipv4_address()
79 r = sd_rtnl_message_addr_set_prefixlen(req, 8); in add_ipv4_address()
83 r = sd_rtnl_message_addr_set_flags(req, IFA_F_PERMANENT); in add_ipv4_address()
87 r = sd_rtnl_message_addr_set_scope(req, RT_SCOPE_HOST); in add_ipv4_address()
91 …r = sd_netlink_message_append_in_addr(req, IFA_LOCAL, &(struct in_addr) { .s_addr = htobe32(INADDR… in add_ipv4_address()
95 …r = sd_netlink_call_async(rtnl, NULL, req, generic_handler, NULL, s, USEC_INFINITY, "systemd-loopb… in add_ipv4_address()
104 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL; in add_ipv6_address()
110 r = sd_rtnl_message_new_addr(rtnl, &req, RTM_NEWADDR, LOOPBACK_IFINDEX, AF_INET6); in add_ipv6_address()
114 r = sd_rtnl_message_addr_set_prefixlen(req, 128); in add_ipv6_address()
118 r = sd_rtnl_message_addr_set_flags(req, IFA_F_PERMANENT); in add_ipv6_address()
122 r = sd_rtnl_message_addr_set_scope(req, RT_SCOPE_HOST); in add_ipv6_address()
126 r = sd_netlink_message_append_in6_addr(req, IFA_LOCAL, &in6addr_loopback); in add_ipv6_address()
130 …r = sd_netlink_call_async(rtnl, NULL, req, generic_handler, NULL, s, USEC_INFINITY, "systemd-loopb… in add_ipv6_address()
139 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL, *reply = NULL; in check_loopback()
143 r = sd_rtnl_message_new_link(rtnl, &req, RTM_GETLINK, LOOPBACK_IFINDEX); in check_loopback()
147 r = sd_netlink_call(rtnl, req, USEC_INFINITY, &reply); in check_loopback()