• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching refs:nlmsghdr

39 fetch_nlmsghdr(struct tcb *const tcp, struct nlmsghdr *const nlmsghdr,  in fetch_nlmsghdr()  argument
42 if (len < sizeof(struct nlmsghdr)) { in fetch_nlmsghdr()
47 if (umove_or_printaddr(tcp, addr, nlmsghdr)) in fetch_nlmsghdr()
54 print_nlmsghdr(struct tcb *tcp, const struct nlmsghdr *const nlmsghdr) in print_nlmsghdr() argument
58 tprintf("{len=%u, type=", nlmsghdr->nlmsg_len); in print_nlmsghdr()
60 printxval(netlink_types, nlmsghdr->nlmsg_type, "NLMSG_???"); in print_nlmsghdr()
63 printflags(netlink_flags, nlmsghdr->nlmsg_flags, "NLM_F_???"); in print_nlmsghdr()
65 tprintf(", seq=%u, pid=%u}", nlmsghdr->nlmsg_seq, in print_nlmsghdr()
66 nlmsghdr->nlmsg_pid); in print_nlmsghdr()
71 const struct nlmsghdr *const nlmsghdr, in decode_nlmsghdr_with_payload() argument
77 print_nlmsghdr(tcp, nlmsghdr); in decode_nlmsghdr_with_payload()
80 nlmsghdr->nlmsg_len > len ? len : nlmsghdr->nlmsg_len; in decode_nlmsghdr_with_payload()
81 if (nlmsg_len > sizeof(struct nlmsghdr)) { in decode_nlmsghdr_with_payload()
84 printstrn(tcp, addr + sizeof(struct nlmsghdr), in decode_nlmsghdr_with_payload()
85 nlmsg_len - sizeof(struct nlmsghdr)); in decode_nlmsghdr_with_payload()
94 struct nlmsghdr nlmsghdr; in decode_netlink() local
98 for (elt = 0; fetch_nlmsghdr(tcp, &nlmsghdr, addr, len); elt++) { in decode_netlink()
104 unsigned int nlmsg_len = NLMSG_ALIGN(nlmsghdr.nlmsg_len); in decode_netlink()
108 if (nlmsghdr.nlmsg_len >= sizeof(struct nlmsghdr)) { in decode_netlink()
120 decode_nlmsghdr_with_payload(tcp, &nlmsghdr, addr, len); in decode_netlink()