Lines Matching refs:nlh
488 struct nlmsghdr *nlh; in cgw_put_job() local
490 nlh = nlmsg_put(skb, pid, seq, type, sizeof(*rtcan), flags); in cgw_put_job()
491 if (!nlh) in cgw_put_job()
494 rtcan = nlmsg_data(nlh); in cgw_put_job()
578 nlmsg_end(skb, nlh); in cgw_put_job()
582 nlmsg_cancel(skb, nlh); in cgw_put_job()
599 cb->nlh->nlmsg_seq, NLM_F_MULTI) < 0) in cgw_dump_jobs()
625 static int cgw_parse_attr(struct nlmsghdr *nlh, struct cf_mod *mod, in cgw_parse_attr() argument
636 err = nlmsg_parse(nlh, sizeof(struct rtcanmsg), tb, CGW_MAX, in cgw_parse_attr()
801 static int cgw_create_job(struct sk_buff *skb, struct nlmsghdr *nlh) in cgw_create_job() argument
811 if (nlmsg_len(nlh) < sizeof(*r)) in cgw_create_job()
814 r = nlmsg_data(nlh); in cgw_create_job()
832 err = cgw_parse_attr(nlh, &gwj->mod, CGW_TYPE_CAN_CAN, &gwj->ccgw, in cgw_create_job()
887 static int cgw_remove_job(struct sk_buff *skb, struct nlmsghdr *nlh) in cgw_remove_job() argument
900 if (nlmsg_len(nlh) < sizeof(*r)) in cgw_remove_job()
903 r = nlmsg_data(nlh); in cgw_remove_job()
911 err = cgw_parse_attr(nlh, &mod, CGW_TYPE_CAN_CAN, &ccgw, &limhops); in cgw_remove_job()