Lines Matching refs:nlh
264 const struct nlmsghdr *nlh, int *errp) in dn_fib_create_info() argument
500 static int dn_fib_rtm_delroute(struct sk_buff *skb, struct nlmsghdr *nlh) in dn_fib_rtm_delroute() argument
504 struct rtmsg *r = nlmsg_data(nlh); in dn_fib_rtm_delroute()
514 err = nlmsg_parse(nlh, sizeof(*r), attrs, RTA_MAX, rtm_dn_policy); in dn_fib_rtm_delroute()
522 return tb->delete(tb, r, attrs, nlh, &NETLINK_CB(skb)); in dn_fib_rtm_delroute()
525 static int dn_fib_rtm_newroute(struct sk_buff *skb, struct nlmsghdr *nlh) in dn_fib_rtm_newroute() argument
529 struct rtmsg *r = nlmsg_data(nlh); in dn_fib_rtm_newroute()
539 err = nlmsg_parse(nlh, sizeof(*r), attrs, RTA_MAX, rtm_dn_policy); in dn_fib_rtm_newroute()
547 return tb->insert(tb, r, attrs, nlh, &NETLINK_CB(skb)); in dn_fib_rtm_newroute()
554 struct nlmsghdr nlh; in fib_magic() member
591 req.nlh.nlmsg_len = sizeof(req); in fib_magic()
592 req.nlh.nlmsg_type = cmd; in fib_magic()
593 req.nlh.nlmsg_flags = NLM_F_REQUEST|NLM_F_CREATE|NLM_F_APPEND; in fib_magic()
594 req.nlh.nlmsg_pid = 0; in fib_magic()
595 req.nlh.nlmsg_seq = 0; in fib_magic()
604 tb->insert(tb, &req.rtm, attrs, &req.nlh, NULL); in fib_magic()
606 tb->delete(tb, &req.rtm, attrs, &req.nlh, NULL); in fib_magic()