Searched refs:nlmsg_len (Results 1 – 5 of 5) sorted by relevance
/systemd-251/src/basic/linux/ |
D | netlink.h | 45 __u32 nlmsg_len; /* Length of message including header */ member 95 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ 97 NLMSG_ALIGN((nlh)->nlmsg_len))) 99 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \ 100 (nlh)->nlmsg_len <= (len)) 101 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
|
/systemd-251/src/libsystemd/sd-netlink/ |
D | netlink-socket.c | 188 k = sendto(nl->fd, m->hdr, m->hdr->nlmsg_len, 0, &addr.sa, sizeof(addr)); in socket_write_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() 358 if (new_msg->nlmsg_len < NLMSG_LENGTH(size)) { in socket_read_message() 368 m->hdr = memdup(new_msg, new_msg->nlmsg_len); in socket_read_message()
|
D | netlink-message.c | 75 m->hdr->nlmsg_len = size; in message_new_full() 184 assert(NLMSG_ALIGN(m->hdr->nlmsg_len) == m->hdr->nlmsg_len); in add_rtattr() 188 message_length = m->hdr->nlmsg_len + RTA_SPACE(data_length); in add_rtattr() 201 rta = (struct rtattr *) ((uint8_t *) m->hdr + m->hdr->nlmsg_len); in add_rtattr() 210 offset = m->hdr->nlmsg_len; in add_rtattr() 211 m->hdr->nlmsg_len = message_length; in add_rtattr() 690 m->hdr->nlmsg_len -= rta_len; in sd_netlink_message_cancel_array() 1354 hlen += err->msg.nlmsg_len - sizeof(struct nlmsghdr); in netlink_message_parse_error() 1356 if (m->hdr->nlmsg_len <= NLMSG_SPACE(hlen)) in netlink_message_parse_error()
|
D | netlink-genl.c | 427 if (m->hdr->nlmsg_len < NLMSG_LENGTH(size)) in sd_genl_message_get_command()
|
/systemd-251/src/journal/ |
D | journald-audit.c | 457 …process_audit_string(s, nl->nlmsg_type, NLMSG_DATA(nl), nl->nlmsg_len - ALIGN(sizeof(struct nlmsgh… in server_process_audit_message() 468 .header.nlmsg_len = NLMSG_LENGTH(sizeof(struct audit_status)), in enable_audit()
|