Searched refs:req (Results 1 - 24 of 24) sorted by relevance

/systemd/src/network/
H A Dnetworkd-netdev-bridge.c47 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL;
57 r = sd_rtnl_message_new_link(netdev->manager->rtnl, &req, RTM_NEWLINK, netdev->ifindex);
61 r = sd_netlink_message_set_flags(req, NLM_F_REQUEST | NLM_F_ACK);
65 r = sd_netlink_message_open_container(req, IFLA_LINKINFO);
69 r = sd_netlink_message_open_container_union(req, IFLA_INFO_DATA, netdev_kind_to_string(netdev->kind));
75 r = sd_netlink_message_append_u32(req, IFLA_BR_FORWARD_DELAY, usec_to_jiffies(b->forward_delay));
81 r = sd_netlink_message_append_u32(req, IFLA_BR_HELLO_TIME, usec_to_jiffies(b->hello_time));
87 r = sd_netlink_message_append_u32(req, IFLA_BR_MAX_AGE, usec_to_jiffies(b->max_age));
92 r = sd_netlink_message_close_container(req);
96 r = sd_netlink_message_close_container(req);
[all...]
H A Dnetworkd-netdev-ipvlan.c34 static int netdev_ipvlan_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *req) { argument
47 r = sd_netlink_message_append_u16(req, IFLA_IPVLAN_MODE, m->mode);
H A Dnetworkd-netdev-vlan.c24 static int netdev_vlan_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *req) { argument
30 assert(req);
37 r = sd_netlink_message_append_u16(req, IFLA_VLAN_ID, v->id);
H A Dnetworkd-fdb.c98 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL;
109 r = sd_rtnl_message_new_neigh(rtnl, &req, RTM_NEWNEIGH, link->ifindex, PF_BRIDGE);
114 r = sd_rtnl_message_neigh_set_flags(req, NTF_SELF);
119 r = sd_rtnl_message_neigh_set_state(req, NUD_NOARP | NUD_PERMANENT);
123 r = sd_netlink_message_append_ether_addr(req, NDA_LLADDR, fdb_entry->mac_addr);
129 r = sd_netlink_message_append_u16(req, NDA_VLAN, fdb_entry->vlan_id);
135 r = sd_netlink_call_async(rtnl, req, set_fdb_handler, link, 0, NULL);
H A Dnetworkd-route.c334 _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, rout
[all...]
H A Dnetworkd-netdev-macvlan.c36 static int netdev_macvlan_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *req) { argument
52 r = sd_netlink_message_append_u32(req, IFLA_MACVLAN_MODE, m->mode);
H A Dnetworkctl.c198 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL, *reply = NULL;
209 r = sd_rtnl_message_new_link(rtnl, &req, RTM_GETLINK, 0);
213 r = sd_netlink_message_request_dump(req, true);
217 r = sd_netlink_call(rtnl, req, 0, &reply);
300 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL, *reply = NULL;
310 r = sd_rtnl_message_new_neigh(rtnl, &req, RTM_GETNEIGH, ifindex, family);
314 r = sd_netlink_message_request_dump(req, true);
318 r = sd_netlink_call(rtnl, req, 0, &reply);
508 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL, *reply = NULL;
527 r = sd_rtnl_message_new_link(rtnl, &req, RTM_GETLIN
[all...]
H A Dnetworkd-address.c409 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL;
419 r = sd_rtnl_message_new_addr(link->manager->rtnl, &req, RTM_DELADDR,
424 r = sd_rtnl_message_addr_set_prefixlen(req, address->prefixlen);
429 r = sd_netlink_message_append_in_addr(req, IFA_LOCAL, &address->in_addr.in);
431 r = sd_netlink_message_append_in6_addr(req, IFA_LOCAL, &address->in_addr.in6);
435 r = sd_netlink_call_async(link->manager->rtnl, req, callback, link, 0, NULL);
504 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL;
519 r = sd_rtnl_message_new_addr_update(link->manager->rtnl, &req,
522 r = sd_rtnl_message_new_addr(link->manager->rtnl, &req, RTM_NEWADDR,
527 r = sd_rtnl_message_addr_set_prefixlen(req, addres
[all...]
H A Dnetworkd-wait-online-manager.c176 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL, *reply = NULL;
200 r = sd_rtnl_message_new_link(m->rtnl, &req, RTM_GETLINK, 0);
204 r = sd_netlink_message_request_dump(req, true);
208 r = sd_netlink_call(m->rtnl, req, 0, &reply);
H A Dnetworkd-link.c1149 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL;
1158 r = sd_rtnl_message_new_link(link->manager->rtnl, &req, RTM_SETLINK, link->ifindex);
1162 r = sd_netlink_message_append_u32(req, IFLA_MTU, mtu);
1166 r = sd_netlink_call_async(link->manager->rtnl, req, set_mtu_handler, link, 0, NULL);
1176 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL;
1182 r = sd_rtnl_message_new_link(link->manager->rtnl, &req, RTM_SETLINK, link->ifindex);
1186 r = sd_rtnl_message_link_set_family(req, PF_BRIDGE);
1190 r = sd_netlink_message_open_container(req, IFLA_PROTINFO);
1194 r = sd_netlink_message_append_u8(req, IFLA_BRPORT_GUARD, !link->network->use_bpdu);
1198 r = sd_netlink_message_append_u8(req, IFLA_BRPORT_MOD
[all...]
H A Dnetworkd-manager.c1166 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL, *reply = NULL;
1173 r = sd_rtnl_message_new_link(m->rtnl, &req, RTM_GETLINK, 0);
1177 r = sd_netlink_message_request_dump(req, true);
1181 r = sd_netlink_call(m->rtnl, req, 0, &reply);
1201 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL, *reply = NULL;
1208 r = sd_rtnl_message_new_addr(m->rtnl, &req, RTM_GETADDR, 0, 0);
1212 r = sd_netlink_message_request_dump(req, true);
1216 r = sd_netlink_call(m->rtnl, req, 0, &reply);
1236 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL, *reply = NULL;
1243 r = sd_rtnl_message_new_route(m->rtnl, &req, RTM_GETROUT
[all...]
H A Dnetworkd-netdev.c194 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL;
205 r = sd_rtnl_message_new_link(netdev->manager->rtnl, &req, RTM_SETLINK, link->ifindex);
209 r = sd_netlink_message_append_u32(req, IFLA_MASTER, netdev->ifindex);
213 r = sd_netlink_call_async(netdev->manager->rtnl, req, callback, link, 0, NULL);
/systemd/src/core/
H A Dloopback-setup.c30 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL;
33 r = sd_rtnl_message_new_link(rtnl, &req, RTM_SETLINK, LOOPBACK_IFINDEX);
37 r = sd_rtnl_message_link_set_flags(req, IFF_UP, IFF_UP);
41 r = sd_netlink_call(rtnl, req, 0, NULL);
49 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL, *reply = NULL;
53 r = sd_rtnl_message_new_link(rtnl, &req, RTM_GETLINK, LOOPBACK_IFINDEX);
57 r = sd_netlink_call(rtnl, req, 0, &reply);
/systemd/src/libsystemd-network/
H A Dsd-dhcp-server.c336 static bool requested_broadcast(DHCPRequest *req) { argument
337 assert(req);
339 return req->message->flags & htobe16(0x8000);
343 DHCPRequest *req, DHCPPacket *packet,
349 assert(req);
350 assert(req->max_optlen);
351 assert(optoffset <= req->max_optlen);
354 r = dhcp_option_append(&packet->dhcp, req->max_optlen, &optoffset, 0,
360 r = dhcp_option_append(&packet->dhcp, req->max_optlen, &optoffset, 0,
388 if (req
342 dhcp_server_send_packet(sd_dhcp_server *server, DHCPRequest *req, DHCPPacket *packet, int type, size_t optoffset) argument
410 server_message_init(sd_dhcp_server *server, DHCPPacket **ret, uint8_t type, size_t *_optoffset, DHCPRequest *req) argument
443 server_send_offer(sd_dhcp_server *server, DHCPRequest *req, be32_t address) argument
480 server_send_ack(sd_dhcp_server *server, DHCPRequest *req, be32_t address) argument
544 server_send_nak(sd_dhcp_server *server, DHCPRequest *req) argument
592 DHCPRequest *req = userdata; local
637 dhcp_request_free(DHCPRequest *req) argument
648 ensure_sane_request(sd_dhcp_server *server, DHCPRequest *req, DHCPMessage *message) argument
699 _cleanup_dhcp_request_free_ DHCPRequest *req = NULL; local
[all...]
H A Ddhcp-server-internal.h90 DHCPRequest *req, DHCPPacket *packet,
/systemd/src/resolve/
H A Dtest-dnssec-complex.c56 _cleanup_(sd_bus_message_unrefp) sd_bus_message *req = NULL, *reply = NULL;
69 &req,
75 assert_se(sd_bus_message_append(req, "isqqt", 0, name, DNS_CLASS_IN, type, UINT64_C(0)) >= 0);
77 r = sd_bus_call(bus, req, DNS_CALL_TIMEOUT_USEC, &error, &reply);
90 _cleanup_(sd_bus_message_unrefp) sd_bus_message *req = NULL, *reply = NULL;
106 &req,
112 assert_se(sd_bus_message_append(req, "isit", 0, name, family, UINT64_C(0)) >= 0);
114 r = sd_bus_call(bus, req, DNS_CALL_TIMEOUT_USEC, &error, &reply);
H A Dresolve-tool.c84 _cleanup_(sd_bus_message_unrefp) sd_bus_message *req = NULL, *reply = NULL;
102 &req,
110 r = sd_bus_message_append(req, "isit", arg_ifindex, name, arg_family, arg_flags);
116 r = sd_bus_call(bus, req, DNS_CALL_TIMEOUT_USEC, &error, &reply);
198 _cleanup_(sd_bus_message_unrefp) sd_bus_message *req = NULL, *reply = NULL;
225 &req,
233 r = sd_bus_message_append(req, "ii", ifindex, family);
237 r = sd_bus_message_append_array(req, 'y', address, FAMILY_ADDRESS_SIZE(family));
241 r = sd_bus_message_append(req, "t", arg_flags);
247 r = sd_bus_call(bus, req, DNS_CALL_TIMEOUT_USE
[all...]
H A Dresolved-manager.c196 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL, *reply = NULL;
228 r = sd_rtnl_message_new_link(m->rtnl, &req, RTM_GETLINK, 0);
232 r = sd_netlink_message_request_dump(req, true);
236 r = sd_netlink_call(m->rtnl, req, 0, &reply);
246 req = sd_netlink_message_unref(req);
250 r = sd_rtnl_message_new_addr(m->rtnl, &req, RTM_GETADDR, 0, AF_UNSPEC);
254 r = sd_netlink_message_request_dump(req, true);
258 r = sd_netlink_call(m->rtnl, req, 0, &reply);
/systemd/src/initctl/
H A Dinitctl.c137 static void request_process(Server *s, const struct init_request *req) { argument
139 assert(req);
141 if (req->magic != INIT_MAGIC) {
146 switch (req->cmd) {
149 if (!isprint(req->runlevel))
152 switch (req->runlevel) {
175 change_runlevel(s, req->runlevel);
/systemd/src/libsystemd/sd-netlink/
H A Dlocal-addresses.c57 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL, *reply = NULL;
74 r = sd_rtnl_message_new_addr(rtnl, &req, RTM_GETADDR, 0, af);
78 r = sd_netlink_call(rtnl, req, 0, &reply);
168 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL, *reply = NULL;
185 r = sd_rtnl_message_new_route(rtnl, &req, RTM_GETROUTE, af, RTPROT_UNSPEC);
189 r = sd_netlink_message_request_dump(req, true);
193 r = sd_netlink_call(rtnl, req, 0, &reply);
H A Dtest-netlink.c146 _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
[all...]
/systemd/src/libsystemd/sd-resolve/
H A Dsd-resolve.c326 const RHeader *req; local
331 req = &packet->rheader;
334 assert(length == req->length);
336 switch (req->type) {
361 return send_addrinfo_reply(out_fd, req->id, ret, result, errno, h_errno);
381 return send_nameinfo_reply(out_fd, req->id, ret,
573 RHeader req = { local
575 .length = sizeof(req)
580 (void) send(resolve->fds[REQUEST_SEND_FD], &req, req
941 AddrInfoRequest req = {}; local
1015 NameInfoRequest req = {}; local
[all...]
/systemd/src/nss-resolve/
H A Dnss-resolve.c127 _cleanup_(sd_bus_message_unrefp) sd_bus_message *req = NULL, *reply = NULL;
150 &req,
158 r = sd_bus_message_set_auto_start(req, false);
162 r = sd_bus_message_append(req, "isit", 0, name, AF_UNSPEC, (uint64_t) 0);
166 r = sd_bus_call(bus, req, DNS_CALL_TIMEOUT_USEC, &error, &reply);
312 _cleanup_(sd_bus_message_unrefp) sd_bus_message *req = NULL, *reply = NULL;
342 &req,
350 r = sd_bus_message_set_auto_start(req, false);
354 r = sd_bus_message_append(req, "isit", 0, name, af, (uint64_t) 0);
358 r = sd_bus_call(bus, req, DNS_CALL_TIMEOUT_USE
[all...]
/systemd/src/bootchart/
H A Dbootchart.c436 struct timespec req; local
438 req.tv_sec = (time_t)(timeleft / 1000000000.0);
439 req.tv_nsec = (long)(timeleft - (req.tv_sec * 1000000000.0));
441 res = nanosleep(&req, NULL);

Completed in 123 milliseconds