Lines Matching refs:nlh
646 struct nlmsghdr *nlh; in tca_get_fill() local
650 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*t), flags); in tca_get_fill()
651 if (!nlh) in tca_get_fill()
653 t = nlmsg_data(nlh); in tca_get_fill()
667 nlh->nlmsg_len = skb_tail_pointer(skb) - b; in tca_get_fill()
763 struct nlmsghdr *nlh; in tca_action_flush() local
792 nlh = nlmsg_put(skb, portid, n->nlmsg_seq, RTM_DELACTION, sizeof(*t), 0); in tca_action_flush()
793 if (!nlh) in tca_action_flush()
795 t = nlmsg_data(nlh); in tca_action_flush()
812 nlh->nlmsg_len = skb_tail_pointer(skb) - b; in tca_action_flush()
813 nlh->nlmsg_flags |= NLM_F_ROOT; in tca_action_flush()
1029 struct nlmsghdr *nlh; in tc_dump_action() local
1035 struct tcamsg *t = (struct tcamsg *) nlmsg_data(cb->nlh); in tc_dump_action()
1036 struct nlattr *kind = find_dump_kind(cb->nlh); in tc_dump_action()
1050 nlh = nlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, in tc_dump_action()
1051 cb->nlh->nlmsg_type, sizeof(*t), 0); in tc_dump_action()
1052 if (!nlh) in tc_dump_action()
1054 t = nlmsg_data(nlh); in tc_dump_action()
1073 nlh->nlmsg_len = skb_tail_pointer(skb) - b; in tc_dump_action()
1075 nlh->nlmsg_flags |= NLM_F_MULTI; in tc_dump_action()