Lines Matching refs:nlh

384 static int ip6addrlbl_newdel(struct sk_buff *skb, struct nlmsghdr *nlh,  in ip6addrlbl_newdel()  argument
394 err = nlmsg_parse_deprecated(nlh, sizeof(*ifal), tb, IFAL_MAX, in ip6addrlbl_newdel()
399 ifal = nlmsg_data(nlh); in ip6addrlbl_newdel()
415 switch (nlh->nlmsg_type) { in ip6addrlbl_newdel()
423 nlh->nlmsg_flags & NLM_F_REPLACE); in ip6addrlbl_newdel()
435 static void ip6addrlbl_putmsg(struct nlmsghdr *nlh, in ip6addrlbl_putmsg() argument
438 struct ifaddrlblmsg *ifal = nlmsg_data(nlh); in ip6addrlbl_putmsg()
452 struct nlmsghdr *nlh = nlmsg_put(skb, portid, seq, event, in ip6addrlbl_fill() local
454 if (!nlh) in ip6addrlbl_fill()
457 ip6addrlbl_putmsg(nlh, p->prefixlen, p->ifindex, lseq); in ip6addrlbl_fill()
461 nlmsg_cancel(skb, nlh); in ip6addrlbl_fill()
465 nlmsg_end(skb, nlh); in ip6addrlbl_fill()
469 static int ip6addrlbl_valid_dump_req(const struct nlmsghdr *nlh, in ip6addrlbl_valid_dump_req() argument
474 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifal))) { in ip6addrlbl_valid_dump_req()
479 ifal = nlmsg_data(nlh); in ip6addrlbl_valid_dump_req()
486 if (nlmsg_attrlen(nlh, sizeof(*ifal))) { in ip6addrlbl_valid_dump_req()
496 const struct nlmsghdr *nlh = cb->nlh; in ip6addrlbl_dump() local
503 err = ip6addrlbl_valid_dump_req(nlh, cb->extack); in ip6addrlbl_dump()
514 nlh->nlmsg_seq, in ip6addrlbl_dump()
535 const struct nlmsghdr *nlh, in ip6addrlbl_valid_get_req() argument
542 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifal))) { in ip6addrlbl_valid_get_req()
548 return nlmsg_parse_deprecated(nlh, sizeof(*ifal), tb, in ip6addrlbl_valid_get_req()
551 ifal = nlmsg_data(nlh); in ip6addrlbl_valid_get_req()
557 err = nlmsg_parse_deprecated_strict(nlh, sizeof(*ifal), tb, IFAL_MAX, in ip6addrlbl_valid_get_req()
578 static int ip6addrlbl_get(struct sk_buff *in_skb, struct nlmsghdr *nlh, in ip6addrlbl_get() argument
590 err = ip6addrlbl_valid_get_req(in_skb, nlh, tb, extack); in ip6addrlbl_get()
594 ifal = nlmsg_data(nlh); in ip6addrlbl_get()
620 nlh->nlmsg_seq, in ip6addrlbl_get()