Lines Matching refs:nlmsghdr
76 rtnl_neigh_from_linux(struct nlmsghdr *hdr, struct nl_pstate *npt) in rtnl_neigh_from_linux()
81 if (hdr->nlmsg_len < sizeof(struct nlmsghdr) + sizeof(struct ndmsg)) in rtnl_neigh_from_linux()
92 rtnl_ifaddr_from_linux(struct nlmsghdr *hdr, struct nl_pstate *npt) in rtnl_ifaddr_from_linux()
97 if (hdr->nlmsg_len < sizeof(struct nlmsghdr) + in rtnl_ifaddr_from_linux()
112 rtnl_route_from_linux(struct nlmsghdr *hdr, struct nl_pstate *npt) in rtnl_route_from_linux()
120 if (hdr->nlmsg_len < sizeof(struct nlmsghdr) + sizeof(struct rtmsg)) in rtnl_route_from_linux()
129 attrs_len = hdr->nlmsg_len - sizeof(struct nlmsghdr); in rtnl_route_from_linux()
158 rtnl_from_linux(struct nlmsghdr *hdr, struct nl_pstate *npt) in rtnl_from_linux()
185 nlmsg_from_linux(int netlink_family, struct nlmsghdr **hdr, in nlmsg_from_linux()
202 handle_default_out(struct nlmsghdr *hdr, struct nl_writer *nw) in handle_default_out()
216 nlmsg_copy_header(struct nlmsghdr *hdr, struct nl_writer *nw) in nlmsg_copy_header()
223 _nlmsg_copy_next_header(struct nlmsghdr *hdr, struct nl_writer *nw, int sz) in _nlmsg_copy_next_header()
265 nlmsg_translate_all_nla(struct nlmsghdr *hdr, struct nlattr *nla, in nlmsg_translate_all_nla()
286 nlmsg_copy_all_nla(struct nlmsghdr *hdr, int raw_hdrlen, struct nl_writer *nw) in nlmsg_copy_all_nla()
292 int attrs_len = hdr->nlmsg_len - sizeof(struct nlmsghdr) - hdrlen; in nlmsg_copy_all_nla()
353 rtnl_newlink_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_newlink_to_linux()
388 rtnl_newaddr_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_newaddr_to_linux()
410 rtnl_newneigh_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_newneigh_to_linux()
431 rtnl_newroute_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, in rtnl_newroute_to_linux()
444 int attrs_len = hdr->nlmsg_len - sizeof(struct nlmsghdr) - hdrlen; in rtnl_newroute_to_linux()
479 rtnl_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_writer *nw) in rtnl_to_linux()
506 nlmsg_error_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_writer *nw) in nlmsg_error_to_linux()
515 int copied_len = sizeof(struct nlmsghdr) + sizeof(struct nlmsgerr); in nlmsg_error_to_linux()
540 nlmsg_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_writer *nw) in nlmsg_to_linux()
578 offset + sizeof(struct nlmsghdr) <= orig->datalen; in nlmsgs_to_linux()
580 struct nlmsghdr *hdr = (struct nlmsghdr *)&orig->data[offset]; in nlmsgs_to_linux()