• Home
  • Raw
  • Download

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()
453 struct nlmsghdr *nlh = nlmsg_put(skb, portid, seq, event, in ip6addrlbl_fill() local
455 if (!nlh) in ip6addrlbl_fill()
458 ip6addrlbl_putmsg(nlh, p->prefixlen, p->ifindex, lseq); in ip6addrlbl_fill()
462 nlmsg_cancel(skb, nlh); in ip6addrlbl_fill()
466 nlmsg_end(skb, nlh); in ip6addrlbl_fill()
470 static int ip6addrlbl_valid_dump_req(const struct nlmsghdr *nlh, in ip6addrlbl_valid_dump_req() argument
475 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifal))) { in ip6addrlbl_valid_dump_req()
480 ifal = nlmsg_data(nlh); in ip6addrlbl_valid_dump_req()
487 if (nlmsg_attrlen(nlh, sizeof(*ifal))) { in ip6addrlbl_valid_dump_req()
497 const struct nlmsghdr *nlh = cb->nlh; in ip6addrlbl_dump() local
504 err = ip6addrlbl_valid_dump_req(nlh, cb->extack); in ip6addrlbl_dump()
515 nlh->nlmsg_seq, in ip6addrlbl_dump()
536 const struct nlmsghdr *nlh, in ip6addrlbl_valid_get_req() argument
543 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifal))) { in ip6addrlbl_valid_get_req()
549 return nlmsg_parse_deprecated(nlh, sizeof(*ifal), tb, in ip6addrlbl_valid_get_req()
552 ifal = nlmsg_data(nlh); in ip6addrlbl_valid_get_req()
558 err = nlmsg_parse_deprecated_strict(nlh, sizeof(*ifal), tb, IFAL_MAX, in ip6addrlbl_valid_get_req()
579 static int ip6addrlbl_get(struct sk_buff *in_skb, struct nlmsghdr *nlh, in ip6addrlbl_get() argument
591 err = ip6addrlbl_valid_get_req(in_skb, nlh, tb, extack); in ip6addrlbl_get()
595 ifal = nlmsg_data(nlh); in ip6addrlbl_get()
621 nlh->nlmsg_seq, in ip6addrlbl_get()