Home
last modified time | relevance | path

Searched refs:nlmsghdr (Results 1 – 8 of 8) sorted by relevance

/systemd-251/src/basic/linux/
Dnetlink.h44 struct nlmsghdr { struct
91 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
96 (struct nlmsghdr *)(((char *)(nlh)) + \
98 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
99 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
112 struct nlmsghdr msg;
/systemd-251/src/journal/
Djournald-audit.c421 const struct nlmsghdr *nl = buffer; in server_process_audit_message()
425 if (buffer_size < ALIGN(sizeof(struct nlmsghdr))) in server_process_audit_message()
457 …ss_audit_string(s, nl->nlmsg_type, NLMSG_DATA(nl), nl->nlmsg_len - ALIGN(sizeof(struct nlmsghdr))); in server_process_audit_message()
463 struct nlmsghdr header; in enable_audit()
Djournald-server.c1343 … ALIGN(sizeof(struct nlmsghdr)) + ALIGN((size_t) MAX_AUDIT_MESSAGE_LENGTH)) + 1); in server_process_datagram()
/systemd-251/src/libsystemd/sd-netlink/
Dnetlink-internal.h81 struct nlmsghdr *rbuffer;
123 struct nlmsghdr *hdr;
Dnetlink-message.c62 assert(size >= sizeof(struct nlmsghdr)); in message_new_full()
177 struct nlmsghdr *new_hdr; in add_rtattr()
1354 hlen += err->msg.nlmsg_len - sizeof(struct nlmsghdr); in netlink_message_parse_error()
Dnetlink-socket.c326 …for (struct nlmsghdr *new_msg = nl->rbuffer; NLMSG_OK(new_msg, len) && !done; new_msg = NLMSG_NEXT… in socket_read_message()
Dsd-netlink.c64 if (!greedy_realloc((void**) &nl->rbuffer, sizeof(struct nlmsghdr), sizeof(uint8_t))) in netlink_new()
/systemd-251/src/network/
Dnetworkd-manager.c254 …BPF_JUMP(BPF_JMP + BPF_JGE + BPF_K, sizeof(struct nlmsghdr), 1, 0), /* A (packet length) >… in manager_setup_rtnl_filter()
257 …BPF_STMT(BPF_LD + BPF_H + BPF_ABS, offsetof(struct nlmsghdr, nlmsg_flags)), /* A <- message flags … in manager_setup_rtnl_filter()
261 …BPF_STMT(BPF_LD + BPF_H + BPF_ABS, offsetof(struct nlmsghdr, nlmsg_type)), /* A <- message type */ in manager_setup_rtnl_filter()
267 … BPF_JUMP(BPF_JMP + BPF_JGE + BPF_K, sizeof(struct nlmsghdr) + sizeof(struct ndmsg), 1, 0), in manager_setup_rtnl_filter()
271 … BPF_STMT(BPF_LD + BPF_H + BPF_ABS, sizeof(struct nlmsghdr) + offsetof(struct ndmsg, ndm_state)), in manager_setup_rtnl_filter()