Searched refs:nlmsghdr (Results 1 – 8 of 8) sorted by relevance
/systemd-251/src/basic/linux/ |
D | netlink.h | 44 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/ |
D | journald-audit.c | 421 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()
|
D | journald-server.c | 1343 … ALIGN(sizeof(struct nlmsghdr)) + ALIGN((size_t) MAX_AUDIT_MESSAGE_LENGTH)) + 1); in server_process_datagram()
|
/systemd-251/src/libsystemd/sd-netlink/ |
D | netlink-internal.h | 81 struct nlmsghdr *rbuffer; 123 struct nlmsghdr *hdr;
|
D | netlink-message.c | 62 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()
|
D | netlink-socket.c | 326 …for (struct nlmsghdr *new_msg = nl->rbuffer; NLMSG_OK(new_msg, len) && !done; new_msg = NLMSG_NEXT… in socket_read_message()
|
D | sd-netlink.c | 64 if (!greedy_realloc((void**) &nl->rbuffer, sizeof(struct nlmsghdr), sizeof(uint8_t))) in netlink_new()
|
/systemd-251/src/network/ |
D | networkd-manager.c | 254 …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()
|