Lines Matching refs:rtnl_rule
47 struct rtnl_rule *rule = nl_object_priv(c);
58 struct rtnl_rule *dst = nl_object_priv(_dst);
59 struct rtnl_rule *src = nl_object_priv(_src);
83 struct rtnl_rule *rule;
174 struct rtnl_rule *r = (struct rtnl_rule *) o;
215 struct rtnl_rule *rule = (struct rtnl_rule *) obj;
232 struct rtnl_rule *rule = (struct rtnl_rule *) obj;
280 struct rtnl_rule *a = (struct rtnl_rule *) _a;
281 struct rtnl_rule *b = (struct rtnl_rule *) _b;
331 struct rtnl_rule *rtnl_rule_alloc(void)
333 return (struct rtnl_rule *) nl_object_alloc(&rule_obj_ops);
336 void rtnl_rule_put(struct rtnl_rule *rule)
386 static int build_rule_msg(struct rtnl_rule *tmpl, int cmd, int flags,
461 int rtnl_rule_build_add_request(struct rtnl_rule *tmpl, int flags,
480 int rtnl_rule_add(struct nl_sock *sk, struct rtnl_rule *tmpl, int flags)
516 int rtnl_rule_build_delete_request(struct rtnl_rule *rule, int flags,
534 int rtnl_rule_delete(struct nl_sock *sk, struct rtnl_rule *rule, int flags)
557 void rtnl_rule_set_family(struct rtnl_rule *rule, int family)
563 int rtnl_rule_get_family(struct rtnl_rule *rule)
571 void rtnl_rule_set_prio(struct rtnl_rule *rule, int prio)
577 int rtnl_rule_get_prio(struct rtnl_rule *rule)
585 void rtnl_rule_set_mark(struct rtnl_rule *rule, uint64_t mark)
591 uint64_t rtnl_rule_get_mark(struct rtnl_rule *rule)
599 void rtnl_rule_set_table(struct rtnl_rule *rule, int table)
605 int rtnl_rule_get_table(struct rtnl_rule *rule)
613 void rtnl_rule_set_dsfield(struct rtnl_rule *rule, int dsfield)
619 int rtnl_rule_get_dsfield(struct rtnl_rule *rule)
627 void rtnl_rule_set_src_len(struct rtnl_rule *rule, int len)
635 int rtnl_rule_get_src_len(struct rtnl_rule *rule)
643 void rtnl_rule_set_dst_len(struct rtnl_rule *rule, int len)
651 int rtnl_rule_get_dst_len(struct rtnl_rule *rule)
659 static inline int __assign_addr(struct rtnl_rule *rule, struct nl_addr **pos,
680 int rtnl_rule_set_src(struct rtnl_rule *rule, struct nl_addr *src)
686 struct nl_addr *rtnl_rule_get_src(struct rtnl_rule *rule)
694 int rtnl_rule_set_dst(struct rtnl_rule *rule, struct nl_addr *dst)
700 struct nl_addr *rtnl_rule_get_dst(struct rtnl_rule *rule)
708 int rtnl_rule_set_iif(struct rtnl_rule *rule, const char *dev)
718 char *rtnl_rule_get_iif(struct rtnl_rule *rule)
726 void rtnl_rule_set_action(struct rtnl_rule *rule, int type)
732 int rtnl_rule_get_action(struct rtnl_rule *rule)
740 void rtnl_rule_set_realms(struct rtnl_rule *rule, uint32_t realms)
746 uint32_t rtnl_rule_get_realms(struct rtnl_rule *rule)
758 .oo_size = sizeof(struct rtnl_rule),