Lines Matching refs:nlh
853 struct nlmsghdr *nlh = (struct nlmsghdr *)skb_pull(skb, sizeof(struct ipv6hdr)); in ip6mr_destroy_unres() local
854 nlh->nlmsg_type = NLMSG_ERROR; in ip6mr_destroy_unres()
855 nlh->nlmsg_len = nlmsg_msg_size(sizeof(struct nlmsgerr)); in ip6mr_destroy_unres()
856 skb_trim(skb, nlh->nlmsg_len); in ip6mr_destroy_unres()
857 ((struct nlmsgerr *)nlmsg_data(nlh))->error = -ETIMEDOUT; in ip6mr_destroy_unres()
1111 struct nlmsghdr *nlh = (struct nlmsghdr *)skb_pull(skb, sizeof(struct ipv6hdr)); in ip6mr_cache_resolve() local
1113 if (__ip6mr_fill_mroute(mrt, skb, c, nlmsg_data(nlh)) > 0) { in ip6mr_cache_resolve()
1114 nlh->nlmsg_len = skb_tail_pointer(skb) - (u8 *)nlh; in ip6mr_cache_resolve()
1116 nlh->nlmsg_type = NLMSG_ERROR; in ip6mr_cache_resolve()
1117 nlh->nlmsg_len = nlmsg_msg_size(sizeof(struct nlmsgerr)); in ip6mr_cache_resolve()
1118 skb_trim(skb, nlh->nlmsg_len); in ip6mr_cache_resolve()
1119 ((struct nlmsgerr *)nlmsg_data(nlh))->error = -EMSGSIZE; in ip6mr_cache_resolve()
2364 struct nlmsghdr *nlh; in ip6mr_fill_mroute() local
2368 nlh = nlmsg_put(skb, portid, seq, cmd, sizeof(*rtm), flags); in ip6mr_fill_mroute()
2369 if (!nlh) in ip6mr_fill_mroute()
2372 rtm = nlmsg_data(nlh); in ip6mr_fill_mroute()
2396 nlmsg_end(skb, nlh); in ip6mr_fill_mroute()
2400 nlmsg_cancel(skb, nlh); in ip6mr_fill_mroute()
2475 cb->nlh->nlmsg_seq, in ip6mr_rtm_dumproute()
2490 cb->nlh->nlmsg_seq, in ip6mr_rtm_dumproute()