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()
565 struct nlmsghdr *nlh; in audit_make_reply() local
574 nlh = nlmsg_put(skb, portid, seq, t, size, flags); in audit_make_reply()
575 if (!nlh) in audit_make_reply()
577 data = nlmsg_data(nlh); in audit_make_reply()
813 static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh) in audit_receive_msg() argument
819 u16 msg_type = nlh->nlmsg_type; in audit_receive_msg()
838 seq = nlh->nlmsg_seq; in audit_receive_msg()
839 data = nlmsg_data(nlh); in audit_receive_msg()
861 memcpy(&s, data, min_t(size_t, sizeof(s), nlmsg_len(nlh))); in audit_receive_msg()
894 if (sizeof(s) > (size_t)nlh->nlmsg_len) in audit_receive_msg()
938 size = nlmsg_len(nlh); in audit_receive_msg()
951 if (nlmsg_len(nlh) < sizeof(struct audit_rule_data)) in audit_receive_msg()
960 seq, data, nlmsg_len(nlh)); in audit_receive_msg()
974 size_t msglen = nlmsg_len(nlh); in audit_receive_msg()
1051 memcpy(&s, data, min_t(size_t, sizeof(s), nlmsg_len(nlh))); in audit_receive_msg()
1088 struct nlmsghdr *nlh; in audit_receive_skb() local
1096 nlh = nlmsg_hdr(skb); in audit_receive_skb()
1099 while (nlmsg_ok(nlh, len)) { in audit_receive_skb()
1100 err = audit_receive_msg(skb, nlh); in audit_receive_skb()
1102 if (err || (nlh->nlmsg_flags & NLM_F_ACK)) in audit_receive_skb()
1103 netlink_ack(skb, nlh, err); in audit_receive_skb()
1105 nlh = nlmsg_next(nlh, &len); in audit_receive_skb()
1253 struct nlmsghdr *nlh; in audit_buffer_alloc() local
1277 nlh = nlmsg_put(ab->skb, 0, 0, type, 0, 0); in audit_buffer_alloc()
1278 if (!nlh) in audit_buffer_alloc()
1967 struct nlmsghdr *nlh = nlmsg_hdr(ab->skb); in audit_log_end() local
1969 nlh->nlmsg_len = ab->skb->len; in audit_log_end()
1981 nlh->nlmsg_len -= NLMSG_HDRLEN; in audit_log_end()