Lines Matching defs:rule
47 struct rtnl_rule *rule = nl_object_priv(c); in rule_free_data() local
83 struct rtnl_rule *rule; in rule_msg_parser() local
215 struct rtnl_rule *rule = (struct rtnl_rule *) obj; in rule_dump_details() local
232 struct rtnl_rule *rule = (struct rtnl_rule *) obj; in rule_dump_env() local
336 void rtnl_rule_put(struct rtnl_rule *rule) in rtnl_rule_put()
516 int rtnl_rule_build_delete_request(struct rtnl_rule *rule, int flags, in rtnl_rule_build_delete_request()
534 int rtnl_rule_delete(struct nl_sock *sk, struct rtnl_rule *rule, int flags) in rtnl_rule_delete()
557 void rtnl_rule_set_family(struct rtnl_rule *rule, int family) in rtnl_rule_set_family()
563 int rtnl_rule_get_family(struct rtnl_rule *rule) in rtnl_rule_get_family()
571 void rtnl_rule_set_prio(struct rtnl_rule *rule, int prio) in rtnl_rule_set_prio()
577 int rtnl_rule_get_prio(struct rtnl_rule *rule) in rtnl_rule_get_prio()
585 void rtnl_rule_set_mark(struct rtnl_rule *rule, uint64_t mark) in rtnl_rule_set_mark()
591 uint64_t rtnl_rule_get_mark(struct rtnl_rule *rule) in rtnl_rule_get_mark()
599 void rtnl_rule_set_table(struct rtnl_rule *rule, int table) in rtnl_rule_set_table()
605 int rtnl_rule_get_table(struct rtnl_rule *rule) in rtnl_rule_get_table()
613 void rtnl_rule_set_dsfield(struct rtnl_rule *rule, int dsfield) in rtnl_rule_set_dsfield()
619 int rtnl_rule_get_dsfield(struct rtnl_rule *rule) in rtnl_rule_get_dsfield()
627 void rtnl_rule_set_src_len(struct rtnl_rule *rule, int len) in rtnl_rule_set_src_len()
635 int rtnl_rule_get_src_len(struct rtnl_rule *rule) in rtnl_rule_get_src_len()
643 void rtnl_rule_set_dst_len(struct rtnl_rule *rule, int len) in rtnl_rule_set_dst_len()
651 int rtnl_rule_get_dst_len(struct rtnl_rule *rule) in rtnl_rule_get_dst_len()
659 static inline int __assign_addr(struct rtnl_rule *rule, struct nl_addr **pos, in __assign_addr()
680 int rtnl_rule_set_src(struct rtnl_rule *rule, struct nl_addr *src) in rtnl_rule_set_src()
686 struct nl_addr *rtnl_rule_get_src(struct rtnl_rule *rule) in rtnl_rule_get_src()
694 int rtnl_rule_set_dst(struct rtnl_rule *rule, struct nl_addr *dst) in rtnl_rule_set_dst()
700 struct nl_addr *rtnl_rule_get_dst(struct rtnl_rule *rule) in rtnl_rule_get_dst()
708 int rtnl_rule_set_iif(struct rtnl_rule *rule, const char *dev) in rtnl_rule_set_iif()
718 char *rtnl_rule_get_iif(struct rtnl_rule *rule) in rtnl_rule_get_iif()
726 void rtnl_rule_set_action(struct rtnl_rule *rule, int type) in rtnl_rule_set_action()
732 int rtnl_rule_get_action(struct rtnl_rule *rule) in rtnl_rule_get_action()
740 void rtnl_rule_set_realms(struct rtnl_rule *rule, uint32_t realms) in rtnl_rule_set_realms()
746 uint32_t rtnl_rule_get_realms(struct rtnl_rule *rule) in rtnl_rule_get_realms()