Lines Matching refs:nlmsghdr
66 fetch_nlmsghdr(struct tcb *const tcp, struct nlmsghdr *const nlmsghdr, in fetch_nlmsghdr() argument
70 if (len < sizeof(struct nlmsghdr)) { in fetch_nlmsghdr()
75 if (tfetch_obj(tcp, addr, nlmsghdr)) in fetch_nlmsghdr()
449 const struct nlmsghdr *const nlmsghdr) in print_nlmsghdr() argument
453 tprintf("{len=%u, type=", nlmsghdr->nlmsg_len); in print_nlmsghdr()
455 decode_nlmsg_type(tcp, nlmsghdr->nlmsg_type, family); in print_nlmsghdr()
458 decode_nlmsg_flags(nlmsghdr->nlmsg_flags, in print_nlmsghdr()
459 nlmsghdr->nlmsg_type, family); in print_nlmsghdr()
461 tprintf(", seq=%u, pid=%u}", nlmsghdr->nlmsg_seq, in print_nlmsghdr()
462 nlmsghdr->nlmsg_pid); in print_nlmsghdr()
499 const struct nlmsghdr *const nlmsghdr,
572 const struct nlmsghdr *const nlmsghdr, in decode_payload() argument
576 if (nlmsghdr->nlmsg_type == NLMSG_ERROR) { in decode_payload()
578 nlmsghdr->nlmsg_flags & NLM_F_CAPPED); in decode_payload()
591 if ((nlmsghdr->nlmsg_type >= NLMSG_MIN_TYPE in decode_payload()
592 || nlmsghdr->nlmsg_type == NLMSG_DONE) in decode_payload()
595 && netlink_decoders[family](tcp, nlmsghdr, addr, len)) { in decode_payload()
599 if (nlmsghdr->nlmsg_type == NLMSG_DONE && len == sizeof(int)) { in decode_payload()
614 const struct nlmsghdr *const nlmsghdr, in decode_nlmsghdr_with_payload() argument
618 const unsigned int nlmsg_len = MIN(nlmsghdr->nlmsg_len, len); in decode_nlmsghdr_with_payload()
623 print_nlmsghdr(tcp, fd, family, nlmsghdr); in decode_nlmsghdr_with_payload()
627 decode_payload(tcp, fd, family, nlmsghdr, addr + NLMSG_HDRLEN, in decode_nlmsghdr_with_payload()
646 struct nlmsghdr nlmsghdr; in decode_netlink() local
650 for (elt = 0; fetch_nlmsghdr(tcp, &nlmsghdr, addr, len, is_array); in decode_netlink()
657 unsigned int nlmsg_len = NLMSG_ALIGN(nlmsghdr.nlmsg_len); in decode_netlink()
661 if (nlmsghdr.nlmsg_len >= NLMSG_HDRLEN) { in decode_netlink()
674 &nlmsghdr, addr, len); in decode_netlink()