Searched refs:hdr (Results 1 - 10 of 10) sorted by relevance
/systemd/src/libsystemd/sd-netlink/ |
H A D | rtnl-message.c | 39 assert_return(m->hdr, -EINVAL); 40 assert_return(rtnl_message_type_is_route(m->hdr->nlmsg_type), -EINVAL); 42 rtm = NLMSG_DATA(m->hdr); 57 assert_return(m->hdr, -EINVAL); 58 assert_return(rtnl_message_type_is_route(m->hdr->nlmsg_type), -EINVAL); 60 rtm = NLMSG_DATA(m->hdr); 75 assert_return(m->hdr, -EINVAL); 76 assert_return(rtnl_message_type_is_route(m->hdr->nlmsg_type), -EINVAL); 78 rtm = NLMSG_DATA(m->hdr); 89 assert_return(m->hdr, [all...] |
H A D | netlink-message.c | 36 #define GET_CONTAINER(m, i) ((i) < (m)->n_containers ? (struct rtattr*)((uint8_t*)(m)->hdr + (m)->containers[i].offset) : NULL) 37 #define PUSH_CONTAINER(m, new) (m)->container_offsets[(m)->n_containers ++] = (uint8_t*)(new) - (uint8_t*)(m)->hdr; 85 m->hdr = malloc0(size); 86 if (!m->hdr) 89 m->hdr->nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; 92 m->hdr->nlmsg_len = size; 93 m->hdr->nlmsg_type = type; 103 assert_return(m->hdr, -EINVAL); 104 assert_return(m->hdr->nlmsg_type == RTM_GETLINK || 105 m->hdr [all...] |
H A D | netlink-util.c | 110 (*ret)->hdr->nlmsg_seq = serial; 112 err = NLMSG_DATA((*ret)->hdr);
|
H A D | netlink-socket.c | 248 assert(m->hdr); 250 k = sendto(nl->fd, m->hdr, m->hdr->nlmsg_len, 419 m->hdr = memdup(new_msg, new_msg->nlmsg_len); 420 if (!m->hdr)
|
H A D | netlink-internal.h | 96 size_t offset; /* offset from hdr to attribute */ 103 size_t offset; /* offset from hdr to the start of the container */ 113 struct nlmsghdr *hdr; member in struct:sd_netlink_message
|
H A D | sd-netlink.c | 205 assert(m->hdr); 209 m->hdr->nlmsg_seq = rtnl->serial++ ? : rtnl->serial++;
|
/systemd/src/libsystemd-network/ |
H A D | lldp-network.c | 32 struct ethhdr hdr; member in struct:LLDPFrame 37 BPF_STMT(BPF_LD + BPF_W + BPF_ABS, offsetof(LLDPFrame, hdr.h_dest)), /* A <- 4 bytes of destination MAC */ 40 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, offsetof(LLDPFrame, hdr.h_dest) + 4), /* A <- remaining 2 bytes of destination MAC */ 45 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, offsetof(LLDPFrame, hdr.h_proto)), /* A <- protocol */
|
/systemd/src/libsystemd/sd-bus/ |
H A D | bus-dump.c | 537 pcap_hdr_t hdr = { local 552 hdr.snaplen = (uint32_t) snaplen; 554 fwrite(&hdr, 1, sizeof(hdr), f); 561 pcaprec_hdr_t hdr = {}; local 578 hdr.ts_sec = tv.tv_sec; 579 hdr.ts_usec = tv.tv_usec; 580 hdr.orig_len = BUS_MESSAGE_SIZE(m); 581 hdr.incl_len = MIN(hdr [all...] |
/systemd/src/import/ |
H A D | pull-job.c | 560 _cleanup_free_ char *cc = NULL, *hdr = NULL; local 566 hdr = strappend("If-None-Match: ", cc); 567 if (!hdr) 571 j->request_header = curl_slist_new(hdr, NULL); 577 l = curl_slist_append(j->request_header, hdr);
|
/systemd/src/core/ |
H A D | automount.c | 931 switch (packet.hdr.type) { 1001 log_unit_error(UNIT(a), "Received unknown automount request %i", packet.hdr.type);
|
Completed in 1464 milliseconds