Searched refs:hdr (Results 1 – 12 of 12) sorted by relevance
/systemd-251/src/libsystemd/sd-netlink/ |
D | netlink-message-rtnl.c | 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() 27 rtm = NLMSG_DATA(m->hdr); in sd_rtnl_message_route_set_dst_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() 45 rtm = NLMSG_DATA(m->hdr); in sd_rtnl_message_route_set_src_prefixlen() 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() 63 rtm = NLMSG_DATA(m->hdr); in sd_rtnl_message_route_set_scope() 74 assert_return(m->hdr, -EINVAL); in sd_rtnl_message_route_set_flags() [all …]
|
D | netlink-message.c | 18 #define GET_CONTAINER(m, i) ((struct rtattr*)((uint8_t*)(m)->hdr + (m)->containers[i].offset)) 70 m->hdr = malloc0(size); in message_new_full() 71 if (!m->hdr) in message_new_full() 74 m->hdr->nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; in message_new_full() 75 m->hdr->nlmsg_len = size; in message_new_full() 76 m->hdr->nlmsg_type = nlmsg_type; in message_new_full() 108 (*ret)->hdr->nlmsg_seq = serial; in message_new_synthetic_error() 110 err = NLMSG_DATA((*ret)->hdr); in message_new_synthetic_error() 118 assert_return(m->hdr, -EINVAL); in sd_netlink_message_request_dump() 120 IN_SET(m->hdr->nlmsg_type, in sd_netlink_message_request_dump() [all …]
|
D | netlink-socket.c | 186 assert(m->hdr); in socket_write_message() 188 k = sendto(nl->fd, m->hdr, m->hdr->nlmsg_len, 0, &addr.sa, sizeof(addr)); in socket_write_message() 208 assert(m[i]->hdr); in socket_writev_message() 209 assert(m[i]->hdr->nlmsg_len > 0); in socket_writev_message() 211 iovs[i] = IOVEC_MAKE(m[i]->hdr, m[i]->hdr->nlmsg_len); in socket_writev_message() 368 m->hdr = memdup(new_msg, new_msg->nlmsg_len); in socket_read_message() 369 if (!m->hdr) in socket_read_message()
|
D | netlink-genl.c | 241 *(struct genlmsghdr *) NLMSG_DATA(m->hdr) = (struct genlmsghdr) { in genl_message_new() 416 assert_return(m->hdr, -EINVAL); in sd_genl_message_get_command() 427 if (m->hdr->nlmsg_len < NLMSG_LENGTH(size)) in sd_genl_message_get_command() 430 h = NLMSG_DATA(m->hdr); in sd_genl_message_get_command()
|
D | netlink-message-nfnl.c | 29 m->hdr->nlmsg_flags |= flags; in nft_message_new() 31 *(struct nfgenmsg*) NLMSG_DATA(m->hdr) = (struct nfgenmsg) { in nft_message_new() 49 *(struct nfgenmsg*) NLMSG_DATA(m->hdr) = (struct nfgenmsg) { in nfnl_message_batch()
|
D | netlink-internal.h | 123 struct nlmsghdr *hdr; member
|
D | sd-netlink.c | 213 assert(m->hdr); in netlink_seal_message() 225 m->hdr->nlmsg_seq = picked; in netlink_seal_message()
|
/systemd-251/src/boot/efi/ |
D | linux_x86.c | 92 struct setup_header hdr; member 111 UINTN start = (UINTN)params->hdr.code32_start; in linux_efi_handover() 119 handover = (handover_f)(start + params->hdr.handover_offset); in linux_efi_handover() 146 if (image_params->hdr.boot_flag != 0xAA55 || in linux_exec() 147 image_params->hdr.header != SETUP_MAGIC || in linux_exec() 148 image_params->hdr.version < 0x20b || in linux_exec() 149 !image_params->hdr.relocatable_kernel) in linux_exec() 163 boot_params->hdr = image_params->hdr; in linux_exec() 164 boot_params->hdr.type_of_loader = 0xff; in linux_exec() 165 setup_sectors = image_params->hdr.setup_sects > 0 ? image_params->hdr.setup_sects : 4; in linux_exec() [all …]
|
/systemd-251/src/libsystemd/sd-bus/ |
D | bus-dump.c | 542 struct pcapng_section hdr = { in pcapng_section_header() local 551 fwrite(&hdr, 1, sizeof(hdr), f); in pcapng_section_header() 570 struct pcapng_interface_block hdr = { in pcapng_interface_header() local 577 fwrite(&hdr, 1, sizeof(hdr), f); in pcapng_interface_header()
|
/systemd-251/src/import/ |
D | pull-job.c | 731 _cleanup_free_ char *cc = NULL, *hdr = NULL; in pull_job_begin() local 737 hdr = strjoin("If-None-Match: ", cc); in pull_job_begin() 738 if (!hdr) in pull_job_begin() 742 j->request_header = curl_slist_new(hdr, NULL); in pull_job_begin() 748 l = curl_slist_append(j->request_header, hdr); in pull_job_begin()
|
/systemd-251/src/resolve/ |
D | resolved-dns-stream.c | 218 struct msghdr hdr = { in dns_stream_writev() local 225 m = sendmsg(s->fd, &hdr, MSG_FASTOPEN); in dns_stream_writev()
|
/systemd-251/src/core/ |
D | automount.c | 1003 switch (packet.hdr.type) { in automount_dispatch_io() 1049 log_unit_error(UNIT(a), "Received unknown automount request %i", packet.hdr.type); in automount_dispatch_io()
|