Lines Matching refs:nlh
194 struct nlmsghdr *nlh = nlmsg_hdr(ab->skb); in audit_set_portid() local
195 nlh->nlmsg_pid = portid; in audit_set_portid()
394 struct nlmsghdr *nlh = nlmsg_hdr(skb); in audit_printk_skb() local
395 char *data = nlmsg_data(nlh); in audit_printk_skb()
397 if (nlh->nlmsg_type != AUDIT_EOE) { in audit_printk_skb()
399 pr_notice("type=%d %s\n", nlh->nlmsg_type, data); in audit_printk_skb()
548 struct nlmsghdr *nlh; in audit_make_reply() local
557 nlh = nlmsg_put(skb, portid, seq, t, size, flags); in audit_make_reply()
558 if (!nlh) in audit_make_reply()
560 data = nlmsg_data(nlh); in audit_make_reply()
799 static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh) in audit_receive_msg() argument
805 u16 msg_type = nlh->nlmsg_type; in audit_receive_msg()
824 seq = nlh->nlmsg_seq; in audit_receive_msg()
825 data = nlmsg_data(nlh); in audit_receive_msg()
847 memcpy(&s, data, min_t(size_t, sizeof(s), nlmsg_len(nlh))); in audit_receive_msg()
880 if (sizeof(s) > (size_t)nlh->nlmsg_len) in audit_receive_msg()
924 size = nlmsg_len(nlh); in audit_receive_msg()
937 if (nlmsg_len(nlh) < sizeof(struct audit_rule_data)) in audit_receive_msg()
946 seq, data, nlmsg_len(nlh)); in audit_receive_msg()
960 size_t msglen = nlmsg_len(nlh); in audit_receive_msg()
1037 memcpy(&s, data, min_t(size_t, sizeof(s), nlmsg_len(nlh))); in audit_receive_msg()
1074 struct nlmsghdr *nlh; in audit_receive_skb() local
1082 nlh = nlmsg_hdr(skb); in audit_receive_skb()
1085 while (nlmsg_ok(nlh, len)) { in audit_receive_skb()
1086 err = audit_receive_msg(skb, nlh); in audit_receive_skb()
1088 if (err || (nlh->nlmsg_flags & NLM_F_ACK)) in audit_receive_skb()
1089 netlink_ack(skb, nlh, err); in audit_receive_skb()
1091 nlh = nlmsg_next(nlh, &len); in audit_receive_skb()
1239 struct nlmsghdr *nlh; in audit_buffer_alloc() local
1263 nlh = nlmsg_put(ab->skb, 0, 0, type, 0, 0); in audit_buffer_alloc()
1264 if (!nlh) in audit_buffer_alloc()
1953 struct nlmsghdr *nlh = nlmsg_hdr(ab->skb); in audit_log_end() local
1955 nlh->nlmsg_len = ab->skb->len; in audit_log_end()
1967 nlh->nlmsg_len -= NLMSG_HDRLEN; in audit_log_end()