/systemd-251/src/libsystemd/sd-netlink/ |
D | netlink-message-rtnl.c | 23 assert_return(m, -EINVAL); in sd_rtnl_message_route_set_dst_prefixlen() 24 assert_return(m->hdr, -EINVAL); in sd_rtnl_message_route_set_dst_prefixlen() 25 assert_return(rtnl_message_type_is_route(m->hdr->nlmsg_type), -EINVAL); in sd_rtnl_message_route_set_dst_prefixlen() 41 assert_return(m, -EINVAL); in sd_rtnl_message_route_set_src_prefixlen() 42 assert_return(m->hdr, -EINVAL); in sd_rtnl_message_route_set_src_prefixlen() 43 assert_return(rtnl_message_type_is_route(m->hdr->nlmsg_type), -EINVAL); in sd_rtnl_message_route_set_src_prefixlen() 59 assert_return(m, -EINVAL); in sd_rtnl_message_route_set_scope() 60 assert_return(m->hdr, -EINVAL); in sd_rtnl_message_route_set_scope() 61 assert_return(rtnl_message_type_is_route(m->hdr->nlmsg_type), -EINVAL); in sd_rtnl_message_route_set_scope() 73 assert_return(m, -EINVAL); in sd_rtnl_message_route_set_flags() [all …]
|
D | netlink-message.c | 87 assert_return(nl, -EINVAL); in message_new() 88 assert_return(ret, -EINVAL); in message_new() 117 assert_return(m, -EINVAL); in sd_netlink_message_request_dump() 118 assert_return(m->hdr, -EINVAL); in sd_netlink_message_request_dump() 119 assert_return(m->protocol != NETLINK_ROUTE || in sd_netlink_message_request_dump() 150 assert_return(m, -EINVAL); in sd_netlink_message_get_type() 151 assert_return(type != 0, -EINVAL); in sd_netlink_message_get_type() 159 assert_return(m, -EINVAL); in sd_netlink_message_set_flags() 160 assert_return(flags != 0, -EINVAL); in sd_netlink_message_set_flags() 168 assert_return(m, -EINVAL); in sd_netlink_message_is_broadcast() [all …]
|
D | sd-netlink.c | 25 assert_return(ret, -EINVAL); in netlink_new() 76 assert_return(ret, -EINVAL); in sd_netlink_new_from_fd() 100 assert_return(ret, -EINVAL); in sd_netlink_open_fd() 101 assert_return(fd >= 0, -EBADF); in sd_netlink_open_fd() 164 assert_return(nl, -EINVAL); in sd_netlink_inc_rcvbuf() 165 assert_return(!netlink_pid_changed(nl), -ECHILD); in sd_netlink_inc_rcvbuf() 236 assert_return(nl, -EINVAL); in sd_netlink_send() 237 assert_return(!netlink_pid_changed(nl), -ECHILD); in sd_netlink_send() 238 assert_return(message, -EINVAL); in sd_netlink_send() 239 assert_return(!message->sealed, -EPERM); in sd_netlink_send() [all …]
|
/systemd-251/src/libsystemd-network/ |
D | ndisc-router.c | 38 assert_return(rt, -EINVAL); in sd_ndisc_router_get_address() 39 assert_return(ret_addr, -EINVAL); in sd_ndisc_router_get_address() 49 assert_return(rt, -EINVAL); in sd_ndisc_router_get_timestamp() 50 assert_return(TRIPLE_TIMESTAMP_HAS_CLOCK(clock), -EOPNOTSUPP); in sd_ndisc_router_get_timestamp() 51 assert_return(clock_supported(clock), -EOPNOTSUPP); in sd_ndisc_router_get_timestamp() 52 assert_return(ret, -EINVAL); in sd_ndisc_router_get_timestamp() 62 assert_return(rt, -EINVAL); in sd_ndisc_router_get_raw() 63 assert_return(ret, -EINVAL); in sd_ndisc_router_get_raw() 64 assert_return(size, -EINVAL); in sd_ndisc_router_get_raw() 217 assert_return(rt, -EINVAL); in sd_ndisc_router_get_hop_limit() [all …]
|
D | lldp-neighbor.c | 365 assert_return(n, -EINVAL); in sd_lldp_neighbor_get_source_address() 366 assert_return(address, -EINVAL); in sd_lldp_neighbor_get_source_address() 373 assert_return(n, -EINVAL); in sd_lldp_neighbor_get_destination_address() 374 assert_return(address, -EINVAL); in sd_lldp_neighbor_get_destination_address() 381 assert_return(n, -EINVAL); in sd_lldp_neighbor_get_raw() 382 assert_return(ret, -EINVAL); in sd_lldp_neighbor_get_raw() 383 assert_return(size, -EINVAL); in sd_lldp_neighbor_get_raw() 392 assert_return(n, -EINVAL); in sd_lldp_neighbor_get_chassis_id() 393 assert_return(type, -EINVAL); in sd_lldp_neighbor_get_chassis_id() 394 assert_return(ret, -EINVAL); in sd_lldp_neighbor_get_chassis_id() [all …]
|
D | sd-dhcp6-client.c | 40 assert_return(client, -EINVAL); in sd_dhcp6_client_set_callback() 49 assert_return(client, -EINVAL); in sd_dhcp6_client_set_ifindex() 50 assert_return(!sd_dhcp6_client_is_running(client), -EBUSY); in sd_dhcp6_client_set_ifindex() 51 assert_return(ifindex > 0, -EINVAL); in sd_dhcp6_client_set_ifindex() 58 assert_return(client, -EINVAL); in sd_dhcp6_client_set_ifname() 59 assert_return(ifname, -EINVAL); in sd_dhcp6_client_set_ifname() 70 assert_return(client, -EINVAL); in sd_dhcp6_client_get_ifname() 86 assert_return(client, -EINVAL); in sd_dhcp6_client_set_local_address() 87 assert_return(!sd_dhcp6_client_is_running(client), -EBUSY); in sd_dhcp6_client_set_local_address() 88 assert_return(local_address, -EINVAL); in sd_dhcp6_client_set_local_address() [all …]
|
D | sd-ipv4ll.c | 82 assert_return(ret, -EINVAL); in sd_ipv4ll_new() 115 assert_return(ll, -EINVAL); in sd_ipv4ll_set_ifindex() 116 assert_return(ifindex > 0, -EINVAL); in sd_ipv4ll_set_ifindex() 117 assert_return(sd_ipv4ll_is_running(ll) == 0, -EBUSY); in sd_ipv4ll_set_ifindex() 130 assert_return(ll, -EINVAL); in sd_ipv4ll_set_ifname() 131 assert_return(ifname, -EINVAL); in sd_ipv4ll_set_ifname() 137 assert_return(ll, -EINVAL); in sd_ipv4ll_get_ifname() 145 assert_return(ll, -EINVAL); in sd_ipv4ll_set_mac() 146 assert_return(addr, -EINVAL); in sd_ipv4ll_set_mac() 147 assert_return(!ether_addr_is_null(addr), -EINVAL); in sd_ipv4ll_set_mac() [all …]
|
D | sd-radv.c | 32 assert_return(ret, -EINVAL); in sd_radv_new() 52 assert_return(ra, -EINVAL); in sd_radv_attach_event() 53 assert_return(!ra->event, -EBUSY); in sd_radv_attach_event() 70 assert_return(ra, -EINVAL); in sd_radv_detach_event() 77 assert_return(ra, NULL); in sd_radv_get_event() 83 assert_return(ra, false); in sd_radv_is_running() 404 assert_return(ra, -EINVAL); in sd_radv_start() 405 assert_return(ra->event, -EINVAL); in sd_radv_start() 406 assert_return(ra->ifindex > 0, -EINVAL); in sd_radv_start() 448 assert_return(ra, -EINVAL); in sd_radv_set_ifindex() [all …]
|
D | sd-ipv4acd.c | 144 assert_return(ret, -EINVAL); in sd_ipv4acd_new() 421 assert_return(acd, -EINVAL); in sd_ipv4acd_set_ifindex() 422 assert_return(ifindex > 0, -EINVAL); in sd_ipv4acd_set_ifindex() 423 assert_return(acd->state == IPV4ACD_STATE_INIT, -EBUSY); in sd_ipv4acd_set_ifindex() 438 assert_return(acd, -EINVAL); in sd_ipv4acd_set_ifname() 439 assert_return(ifname, -EINVAL); in sd_ipv4acd_set_ifname() 450 assert_return(acd, -EINVAL); in sd_ipv4acd_get_ifname() 465 assert_return(acd, -EINVAL); in sd_ipv4acd_set_mac() 466 assert_return(addr, -EINVAL); in sd_ipv4acd_set_mac() 467 assert_return(!ether_addr_is_null(addr), -EINVAL); in sd_ipv4acd_set_mac() [all …]
|
D | sd-lldp-rx.c | 258 assert_return(lldp_rx, -EINVAL); in sd_lldp_rx_start() 259 assert_return(lldp_rx->event, -EINVAL); in sd_lldp_rx_start() 260 assert_return(lldp_rx->ifindex > 0, -EINVAL); in sd_lldp_rx_start() 304 assert_return(lldp_rx, -EINVAL); in sd_lldp_rx_attach_event() 305 assert_return(!sd_lldp_rx_is_running(lldp_rx), -EBUSY); in sd_lldp_rx_attach_event() 306 assert_return(!lldp_rx->event, -EBUSY); in sd_lldp_rx_attach_event() 322 assert_return(lldp_rx, -EINVAL); in sd_lldp_rx_detach_event() 323 assert_return(!sd_lldp_rx_is_running(lldp_rx), -EBUSY); in sd_lldp_rx_detach_event() 332 assert_return(lldp_rx, NULL); in sd_lldp_rx_get_event() 338 assert_return(lldp_rx, -EINVAL); in sd_lldp_rx_set_callback() [all …]
|
D | sd-ndisc.c | 50 assert_return(nd, -EINVAL); in sd_ndisc_set_callback() 59 assert_return(nd, -EINVAL); in sd_ndisc_set_ifindex() 60 assert_return(ifindex > 0, -EINVAL); in sd_ndisc_set_ifindex() 61 assert_return(nd->fd < 0, -EBUSY); in sd_ndisc_set_ifindex() 68 assert_return(nd, -EINVAL); in sd_ndisc_set_ifname() 69 assert_return(ifname, -EINVAL); in sd_ndisc_set_ifname() 80 assert_return(nd, -EINVAL); in sd_ndisc_get_ifname() 93 assert_return(nd, -EINVAL); in sd_ndisc_set_mac() 106 assert_return(nd, -EINVAL); in sd_ndisc_attach_event() 107 assert_return(nd->fd < 0, -EBUSY); in sd_ndisc_attach_event() [all …]
|
D | sd-dhcp-client.c | 176 assert_return(data, -EINVAL); in sd_dhcp_client_id_to_string() 177 assert_return(len >= 1, -EINVAL); in sd_dhcp_client_id_to_string() 178 assert_return(ret, -EINVAL); in sd_dhcp_client_id_to_string() 230 assert_return(client, -EINVAL); in sd_dhcp_client_set_callback() 239 assert_return(client, -EINVAL); in sd_dhcp_client_set_request_broadcast() 247 assert_return(client, -EINVAL); in sd_dhcp_client_set_request_option() 248 assert_return(IN_SET(client->state, DHCP_STATE_INIT, DHCP_STATE_STOPPED), -EBUSY); in sd_dhcp_client_set_request_option() 270 assert_return(client, -EINVAL); in sd_dhcp_client_set_request_address() 271 assert_return(IN_SET(client->state, DHCP_STATE_INIT, DHCP_STATE_STOPPED), -EBUSY); in sd_dhcp_client_set_request_address() 282 assert_return(client, -EINVAL); in sd_dhcp_client_set_ifindex() [all …]
|
D | sd-dhcp-lease.c | 35 assert_return(lease, -EINVAL); in sd_dhcp_lease_get_address() 36 assert_return(addr, -EINVAL); in sd_dhcp_lease_get_address() 46 assert_return(lease, -EINVAL); in sd_dhcp_lease_get_broadcast() 47 assert_return(addr, -EINVAL); in sd_dhcp_lease_get_broadcast() 57 assert_return(lease, -EINVAL); in sd_dhcp_lease_get_lifetime() 58 assert_return(lifetime, -EINVAL); in sd_dhcp_lease_get_lifetime() 68 assert_return(lease, -EINVAL); in sd_dhcp_lease_get_t1() 69 assert_return(t1, -EINVAL); in sd_dhcp_lease_get_t1() 79 assert_return(lease, -EINVAL); in sd_dhcp_lease_get_t2() 80 assert_return(t2, -EINVAL); in sd_dhcp_lease_get_t2() [all …]
|
D | sd-lldp-tx.c | 100 assert_return(ret, -EINVAL); in sd_lldp_tx_new() 116 assert_return(lldp_tx, -EINVAL); in sd_lldp_tx_set_ifindex() 117 assert_return(ifindex > 0, -EINVAL); in sd_lldp_tx_set_ifindex() 124 assert_return(lldp_tx, -EINVAL); in sd_lldp_tx_set_ifname() 125 assert_return(ifname, -EINVAL); in sd_lldp_tx_set_ifname() 136 assert_return(lldp_tx, -EINVAL); in sd_lldp_tx_get_ifname() 149 assert_return(lldp_tx, -EINVAL); in sd_lldp_tx_set_multicast_mode() 150 assert_return(mode >= 0 && mode < _SD_LLDP_MULTICAST_MODE_MAX, -EINVAL); in sd_lldp_tx_set_multicast_mode() 157 assert_return(lldp_tx, -EINVAL); in sd_lldp_tx_set_hwaddr() 158 assert_return(!ether_addr_is_null(hwaddr), -EINVAL); in sd_lldp_tx_set_hwaddr() [all …]
|
/systemd-251/src/libsystemd/sd-bus/ |
D | bus-convenience.c | 13 assert_return(reply, -EINVAL); in sd_bus_message_send() 14 assert_return(reply->bus, -EINVAL); in sd_bus_message_send() 15 assert_return(!bus_pid_changed(reply->bus), -ECHILD); in sd_bus_message_send() 30 assert_return(bus, -EINVAL); in sd_bus_emit_signalv() 31 assert_return(bus = bus_resolve(bus), -ENOPKG); in sd_bus_emit_signalv() 32 assert_return(!bus_pid_changed(bus), -ECHILD); in sd_bus_emit_signalv() 81 assert_return(bus, -EINVAL); in sd_bus_call_method_asyncv() 82 assert_return(bus = bus_resolve(bus), -ENOPKG); in sd_bus_call_method_asyncv() 83 assert_return(!bus_pid_changed(bus), -ECHILD); in sd_bus_call_method_asyncv() 187 assert_return(call, -EINVAL); in sd_bus_reply_method_returnv() [all …]
|
D | sd-bus.c | 234 assert_return(ret, -EINVAL); in sd_bus_new() 265 assert_return(bus, -EINVAL); in sd_bus_set_address() 266 assert_return(bus = bus_resolve(bus), -ENOPKG); in sd_bus_set_address() 267 assert_return(bus->state == BUS_UNSET, -EPERM); in sd_bus_set_address() 268 assert_return(address, -EINVAL); in sd_bus_set_address() 269 assert_return(!bus_pid_changed(bus), -ECHILD); in sd_bus_set_address() 275 assert_return(bus, -EINVAL); in sd_bus_set_fd() 276 assert_return(bus = bus_resolve(bus), -ENOPKG); in sd_bus_set_fd() 277 assert_return(bus->state == BUS_UNSET, -EPERM); in sd_bus_set_fd() 278 assert_return(input_fd >= 0, -EBADF); in sd_bus_set_fd() [all …]
|
D | bus-control.c | 26 assert_return(bus, -EINVAL); in sd_bus_get_unique_name() 27 assert_return(bus = bus_resolve(bus), -ENOPKG); in sd_bus_get_unique_name() 28 assert_return(unique, -EINVAL); in sd_bus_get_unique_name() 29 assert_return(!bus_pid_changed(bus), -ECHILD); in sd_bus_get_unique_name() 54 …assert_return(!(flags & ~(SD_BUS_NAME_ALLOW_REPLACEMENT|SD_BUS_NAME_REPLACE_EXISTING|SD_BUS_NAME_Q… in validate_request_name_parameters() 55 assert_return(service_name_is_valid(name), -EINVAL); in validate_request_name_parameters() 56 assert_return(name[0] != ':', -EINVAL); in validate_request_name_parameters() 89 assert_return(bus, -EINVAL); in sd_bus_request_name() 90 assert_return(bus = bus_resolve(bus), -ENOPKG); in sd_bus_request_name() 91 assert_return(name, -EINVAL); in sd_bus_request_name() [all …]
|
D | bus-creds.c | 118 assert_return(c, 0); in sd_bus_creds_get_mask() 124 assert_return(c, 0); in sd_bus_creds_get_augmented_mask() 145 assert_return(pid >= 0, -EINVAL); in sd_bus_creds_new_from_pid() 146 assert_return(mask <= _SD_BUS_CREDS_ALL, -EOPNOTSUPP); in sd_bus_creds_new_from_pid() 147 assert_return(ret, -EINVAL); in sd_bus_creds_new_from_pid() 174 assert_return(c, -EINVAL); in sd_bus_creds_get_uid() 175 assert_return(uid, -EINVAL); in sd_bus_creds_get_uid() 185 assert_return(c, -EINVAL); in sd_bus_creds_get_euid() 186 assert_return(euid, -EINVAL); in sd_bus_creds_get_euid() 196 assert_return(c, -EINVAL); in sd_bus_creds_get_suid() [all …]
|
D | bus-message.c | 585 assert_return(bus, -ENOTCONN); in sd_bus_message_new() 586 assert_return(bus = bus_resolve(bus), -ENOPKG); in sd_bus_message_new() 587 assert_return(bus->state != BUS_UNSET, -ENOTCONN); in sd_bus_message_new() 588 assert_return(m, -EINVAL); in sd_bus_message_new() 590 assert_return(type < _SD_BUS_MESSAGE_TYPE_MAX, -EINVAL); in sd_bus_message_new() 622 assert_return(bus, -ENOTCONN); in sd_bus_message_new_signal() 623 assert_return(bus = bus_resolve(bus), -ENOPKG); in sd_bus_message_new_signal() 624 assert_return(bus->state != BUS_UNSET, -ENOTCONN); in sd_bus_message_new_signal() 625 assert_return(object_path_is_valid(path), -EINVAL); in sd_bus_message_new_signal() 626 assert_return(interface_name_is_valid(interface), -EINVAL); in sd_bus_message_new_signal() [all …]
|
D | bus-track.c | 123 assert_return(bus, -EINVAL); in sd_bus_track_new() 124 assert_return(bus = bus_resolve(bus), -ENOPKG); in sd_bus_track_new() 125 assert_return(track, -EINVAL); in sd_bus_track_new() 188 assert_return(track, -EINVAL); in sd_bus_track_add_name() 189 assert_return(service_name_is_valid(name), -EINVAL); in sd_bus_track_add_name() 264 assert_return(name, -EINVAL); in sd_bus_track_remove_name() 295 assert_return(name, NULL); in sd_bus_track_contains() 332 assert_return(track, -EINVAL); in sd_bus_track_add_sender() 333 assert_return(m, -EINVAL); in sd_bus_track_add_sender() 348 assert_return(m, -EINVAL); in sd_bus_track_remove_sender() [all …]
|
/systemd-251/src/libsystemd/sd-event/ |
D | sd-event.c | 366 assert_return(ret, -EINVAL); in sd_event_new() 1094 assert_return(e, -EINVAL); in sd_event_add_io() 1095 assert_return(e = event_resolve(e), -ENOPKG); in sd_event_add_io() 1096 assert_return(fd >= 0, -EBADF); in sd_event_add_io() 1097 …assert_return(!(events & ~(EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLPRI|EPOLLERR|EPOLLHUP|EPOLLET)), -EINV… in sd_event_add_io() 1098 assert_return(e->state != SD_EVENT_FINISHED, -ESTALE); in sd_event_add_io() 1099 assert_return(!event_pid_changed(e), -ECHILD); in sd_event_add_io() 1243 assert_return(e, -EINVAL); in sd_event_add_time() 1244 assert_return(e = event_resolve(e), -ENOPKG); in sd_event_add_time() 1245 assert_return(accuracy != UINT64_MAX, -EINVAL); in sd_event_add_time() [all …]
|
/systemd-251/src/libsystemd/sd-login/ |
D | sd-login.c | 45 assert_return(pid >= 0, -EINVAL); in sd_pid_get_session() 46 assert_return(session, -EINVAL); in sd_pid_get_session() 55 assert_return(pid >= 0, -EINVAL); in sd_pid_get_unit() 56 assert_return(unit, -EINVAL); in sd_pid_get_unit() 65 assert_return(pid >= 0, -EINVAL); in sd_pid_get_user_unit() 66 assert_return(unit, -EINVAL); in sd_pid_get_user_unit() 75 assert_return(pid >= 0, -EINVAL); in sd_pid_get_machine_name() 76 assert_return(name, -EINVAL); in sd_pid_get_machine_name() 85 assert_return(pid >= 0, -EINVAL); in sd_pid_get_slice() 86 assert_return(slice, -EINVAL); in sd_pid_get_slice() [all …]
|
/systemd-251/src/libsystemd/sd-resolve/ |
D | sd-resolve.c | 338 assert_return(length >= sizeof(RHeader), -EIO); in handle_request() 339 assert_return(length == req->length, -EIO); in handle_request() 349 assert_return(length >= sizeof(AddrInfoRequest), -EBADMSG); in handle_request() 350 …assert_return(length == sizeof(AddrInfoRequest) + ai_req->node_len + ai_req->service_len, -EBADMSG… in handle_request() 378 assert_return(length >= sizeof(NameInfoRequest), -EBADMSG); in handle_request() 379 assert_return(length == sizeof(NameInfoRequest) + ni_req->sockaddr_len, -EBADMSG); in handle_request() 380 assert_return(ni_req->sockaddr_len <= sizeof(sa), -EBADMSG); in handle_request() 487 assert_return(ret, -EINVAL); in sd_resolve_new() 545 assert_return(resolve, -EINVAL); in sd_resolve_get_tid() 546 assert_return(tid, -EINVAL); in sd_resolve_get_tid() [all …]
|
/systemd-251/src/libsystemd/sd-journal/ |
D | sd-journal.c | 239 assert_return(j, -EINVAL); in sd_journal_add_match() 240 assert_return(!journal_pid_changed(j), -ECHILD); in sd_journal_add_match() 241 assert_return(data, -EINVAL); in sd_journal_add_match() 246 assert_return(match_is_valid(data, size), -EINVAL); in sd_journal_add_match() 335 assert_return(j, -EINVAL); in sd_journal_add_conjunction() 336 assert_return(!journal_pid_changed(j), -ECHILD); in sd_journal_add_conjunction() 354 assert_return(j, -EINVAL); in sd_journal_add_disjunction() 355 assert_return(!journal_pid_changed(j), -ECHILD); in sd_journal_add_disjunction() 826 assert_return(j, -EINVAL); in real_journal_next() 827 assert_return(!journal_pid_changed(j), -ECHILD); in real_journal_next() [all …]
|
/systemd-251/src/libsystemd/sd-network/ |
D | sd-network.c | 25 assert_return(ret, -EINVAL); in network_get_string() 69 assert_return(ret, -EINVAL); in network_get_strv() 114 assert_return(ifindex > 0, -EINVAL); in network_link_get_string() 115 assert_return(ret, -EINVAL); in network_link_get_string() 138 assert_return(ifindex > 0, -EINVAL); in network_link_get_strv() 139 assert_return(ret, -EINVAL); in network_link_get_strv() 180 assert_return(state, -EINVAL); in sd_network_link_get_required_family_for_online() 243 assert_return(state, -EINVAL); in sd_network_link_get_required_operstate_for_online() 264 assert_return(policy, -EINVAL); in sd_network_link_get_activation_policy() 326 assert_return(ifindex > 0, -EINVAL); in sd_network_link_get_dns_default_route() [all …]
|