Lines Matching refs:nlh
264 const struct nlmsghdr *nlh, int *errp) in dn_fib_create_info() argument
501 static int dn_fib_rtm_delroute(struct sk_buff *skb, struct nlmsghdr *nlh) in dn_fib_rtm_delroute() argument
505 struct rtmsg *r = nlmsg_data(nlh); in dn_fib_rtm_delroute()
515 err = nlmsg_parse(nlh, sizeof(*r), attrs, RTA_MAX, rtm_dn_policy); in dn_fib_rtm_delroute()
523 return tb->delete(tb, r, attrs, nlh, &NETLINK_CB(skb)); in dn_fib_rtm_delroute()
526 static int dn_fib_rtm_newroute(struct sk_buff *skb, struct nlmsghdr *nlh) in dn_fib_rtm_newroute() argument
530 struct rtmsg *r = nlmsg_data(nlh); in dn_fib_rtm_newroute()
540 err = nlmsg_parse(nlh, sizeof(*r), attrs, RTA_MAX, rtm_dn_policy); in dn_fib_rtm_newroute()
548 return tb->insert(tb, r, attrs, nlh, &NETLINK_CB(skb)); in dn_fib_rtm_newroute()
555 struct nlmsghdr nlh; in fib_magic() member
592 req.nlh.nlmsg_len = sizeof(req); in fib_magic()
593 req.nlh.nlmsg_type = cmd; in fib_magic()
594 req.nlh.nlmsg_flags = NLM_F_REQUEST|NLM_F_CREATE|NLM_F_APPEND; in fib_magic()
595 req.nlh.nlmsg_pid = 0; in fib_magic()
596 req.nlh.nlmsg_seq = 0; in fib_magic()
605 tb->insert(tb, &req.rtm, attrs, &req.nlh, NULL); in fib_magic()
607 tb->delete(tb, &req.rtm, attrs, &req.nlh, NULL); in fib_magic()