Lines Matching refs:nlh
848 struct nlmsghdr *nlh = (struct nlmsghdr *)skb_pull(skb, sizeof(struct ipv6hdr)); in ip6mr_destroy_unres() local
849 nlh->nlmsg_type = NLMSG_ERROR; in ip6mr_destroy_unres()
850 nlh->nlmsg_len = nlmsg_msg_size(sizeof(struct nlmsgerr)); in ip6mr_destroy_unres()
851 skb_trim(skb, nlh->nlmsg_len); in ip6mr_destroy_unres()
852 ((struct nlmsgerr *)nlmsg_data(nlh))->error = -ETIMEDOUT; in ip6mr_destroy_unres()
1106 struct nlmsghdr *nlh = (struct nlmsghdr *)skb_pull(skb, sizeof(struct ipv6hdr)); in ip6mr_cache_resolve() local
1108 if (__ip6mr_fill_mroute(mrt, skb, c, nlmsg_data(nlh)) > 0) { in ip6mr_cache_resolve()
1109 nlh->nlmsg_len = skb_tail_pointer(skb) - (u8 *)nlh; in ip6mr_cache_resolve()
1111 nlh->nlmsg_type = NLMSG_ERROR; in ip6mr_cache_resolve()
1112 nlh->nlmsg_len = nlmsg_msg_size(sizeof(struct nlmsgerr)); in ip6mr_cache_resolve()
1113 skb_trim(skb, nlh->nlmsg_len); in ip6mr_cache_resolve()
1114 ((struct nlmsgerr *)nlmsg_data(nlh))->error = -EMSGSIZE; in ip6mr_cache_resolve()
2359 struct nlmsghdr *nlh; in ip6mr_fill_mroute() local
2363 nlh = nlmsg_put(skb, portid, seq, cmd, sizeof(*rtm), flags); in ip6mr_fill_mroute()
2364 if (!nlh) in ip6mr_fill_mroute()
2367 rtm = nlmsg_data(nlh); in ip6mr_fill_mroute()
2391 nlmsg_end(skb, nlh); in ip6mr_fill_mroute()
2395 nlmsg_cancel(skb, nlh); in ip6mr_fill_mroute()
2470 cb->nlh->nlmsg_seq, in ip6mr_rtm_dumproute()
2485 cb->nlh->nlmsg_seq, in ip6mr_rtm_dumproute()