Lines Matching defs:nlh
698 struct nlmsghdr *nlh;
702 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nhm), nlflags);
703 if (!nlh)
706 nhm = nlmsg_data(nlh);
766 nlmsg_end(skb, nlh);
770 nlmsg_cancel(skb, nlh);
843 unsigned int nlflags = info->nlh ? info->nlh->nlmsg_flags : 0;
844 u32 seq = info->nlh ? info->nlh->nlmsg_seq : 0;
861 info->nlh, gfp_any());
921 struct nlmsghdr *nlh;
925 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nhm), nlflags);
926 if (!nlh)
929 nhm = nlmsg_data(nlh);
951 nlmsg_end(skb, nlh);
957 nlmsg_cancel(skb, nlh);
2767 struct nlmsghdr *nlh, struct nh_config *cfg,
2770 struct nhmsg *nhm = nlmsg_data(nlh);
2774 err = nlmsg_parse(nlh, sizeof(*nhm), tb,
2804 cfg->nlflags = nlh->nlmsg_flags;
2806 cfg->nlinfo.nlh = nlh;
2951 static int rtm_new_nexthop(struct sk_buff *skb, struct nlmsghdr *nlh,
2959 err = rtm_to_nh_config(net, skb, nlh, &cfg, extack);
2969 static int __nh_valid_get_del_req(const struct nlmsghdr *nlh,
2973 struct nhmsg *nhm = nlmsg_data(nlh);
2994 static int nh_valid_get_del_req(const struct nlmsghdr *nlh, u32 *id,
3000 err = nlmsg_parse(nlh, sizeof(struct nhmsg), tb,
3006 return __nh_valid_get_del_req(nlh, tb, id, extack);
3010 static int rtm_del_nexthop(struct sk_buff *skb, struct nlmsghdr *nlh,
3015 .nlh = nlh,
3023 err = nh_valid_get_del_req(nlh, &id, extack);
3037 static int rtm_get_nexthop(struct sk_buff *in_skb, struct nlmsghdr *nlh,
3046 err = nh_valid_get_del_req(nlh, &id, extack);
3061 nlh->nlmsg_seq, 0);
3121 static int __nh_valid_dump_req(const struct nlmsghdr *nlh, struct nlattr **tb,
3147 nhm = nlmsg_data(nlh);
3156 static int nh_valid_dump_req(const struct nlmsghdr *nlh,
3163 err = nlmsg_parse(nlh, sizeof(struct nhmsg), tb,
3169 return __nh_valid_dump_req(nlh, tb, filter, cb->extack);
3218 struct nhmsg *nhm = nlmsg_data(cb->nlh);
3226 cb->nlh->nlmsg_seq, NLM_F_MULTI);
3238 err = nh_valid_dump_req(cb->nlh, &filter, cb);
3298 static int nh_valid_dump_bucket_req(const struct nlmsghdr *nlh,
3306 err = nlmsg_parse(nlh, sizeof(struct nhmsg), tb,
3333 return __nh_valid_dump_req(nlh, tb, filter, cb->extack);
3361 struct nhmsg *nhm = nlmsg_data(cb->nlh);
3387 cb->nlh->nlmsg_seq, NLM_F_MULTI,
3425 err = nh_valid_dump_bucket_req(cb->nlh, &dd.filter, cb);
3473 static int nh_valid_get_bucket_req(const struct nlmsghdr *nlh,
3480 err = nlmsg_parse(nlh, sizeof(struct nhmsg), tb,
3486 err = __nh_valid_get_del_req(nlh, tb, id, extack);
3504 static int rtm_get_nexthop_bucket(struct sk_buff *in_skb, struct nlmsghdr *nlh,
3516 err = nh_valid_get_bucket_req(nlh, &id, &bucket_index, extack);
3537 NETLINK_CB(in_skb).portid, nlh->nlmsg_seq,