Lines Matching defs:nlh
272 struct dn_fib_info *dn_fib_create_info(const struct rtmsg *r, struct dn_kern_rta *rta, const struct nlmsghdr *nlh, int *errp)
507 static int dn_fib_rtm_delroute(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg)
511 struct rtmsg *r = NLMSG_DATA(nlh);
518 return tb->delete(tb, r, (struct dn_kern_rta *)rta, nlh, &NETLINK_CB(skb));
523 static int dn_fib_rtm_newroute(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg)
527 struct rtmsg *r = NLMSG_DATA(nlh);
534 return tb->insert(tb, r, (struct dn_kern_rta *)rta, nlh, &NETLINK_CB(skb));
543 struct nlmsghdr nlh;
559 req.nlh.nlmsg_len = sizeof(req);
560 req.nlh.nlmsg_type = cmd;
561 req.nlh.nlmsg_flags = NLM_F_REQUEST|NLM_F_CREATE|NLM_F_APPEND;
562 req.nlh.nlmsg_pid = 0;
563 req.nlh.nlmsg_seq = 0;
576 tb->insert(tb, &req.rtm, &rta, &req.nlh, NULL);
578 tb->delete(tb, &req.rtm, &rta, &req.nlh, NULL);