Lines Matching defs:nlh
499 struct nlmsghdr *nlh;
502 nlh = nlmsg_put(skb, portid, seq, family->id, GENL_HDRLEN +
504 if (nlh == NULL)
507 hdr = nlmsg_data(nlh);
528 struct nlmsghdr *nlh,
548 err = __nlmsg_parse(nlh, hdrlen, attrbuf, ops->maxattr, ops->policy,
564 struct nlmsghdr *nlh;
581 if (ctx->nlh->nlmsg_len < nlmsg_msg_size(ctx->hdrlen))
584 attrs = genl_family_rcv_msg_attrs_parse(ctx->family, ctx->nlh, ctx->extack,
659 struct nlmsghdr *nlh,
671 ctx.nlh = nlh;
686 err = __netlink_dump_start(net->genl_sock, skb, nlh, &c);
697 err = __netlink_dump_start(net->genl_sock, skb, nlh, &c);
705 struct nlmsghdr *nlh,
717 attrbuf = genl_family_rcv_msg_attrs_parse(family, nlh, extack,
723 info.snd_seq = nlh->nlmsg_seq;
725 info.nlhdr = nlh;
726 info.genlhdr = nlmsg_data(nlh);
727 info.userhdr = nlmsg_data(nlh) + GENL_HDRLEN;
752 struct nlmsghdr *nlh,
756 struct genlmsghdr *hdr = nlmsg_data(nlh);
765 if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen))
779 if ((nlh->nlmsg_flags & NLM_F_DUMP) == NLM_F_DUMP)
780 return genl_family_rcv_msg_dumpit(family, skb, nlh, extack,
783 return genl_family_rcv_msg_doit(family, skb, nlh, extack,
787 static int genl_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh,
793 family = genl_family_find_byid(nlh->nlmsg_type);
800 err = genl_family_rcv_msg(family, skb, nlh, extack);
967 cb->nlh->nlmsg_seq, NLM_F_MULTI,
1205 cb->nlh->nlmsg_seq, &genl_ctrl,