Lines Matching refs:rule
71 res->r = arg.rule;
76 static int dn_fib_rule_action(struct fib_rule *rule, struct flowi *flp,
82 switch(rule->action) {
100 tbl = dn_fib_get_table(rule->table, 0);
115 static int dn_fib_rule_match(struct fib_rule *rule, struct flowi *fl, int flags)
117 struct dn_fib_rule *r = (struct dn_fib_rule *)rule;
128 static int dn_fib_rule_configure(struct fib_rule *rule, struct sk_buff *skb,
133 struct dn_fib_rule *r = (struct dn_fib_rule *)rule;
138 if (rule->table == RT_TABLE_UNSPEC) {
139 if (rule->action == FR_ACT_TO_TBL) {
148 rule->table = table->n;
167 static int dn_fib_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh,
170 struct dn_fib_rule *r = (struct dn_fib_rule *)rule;
205 static int dn_fib_rule_fill(struct fib_rule *rule, struct sk_buff *skb,
208 struct dn_fib_rule *r = (struct dn_fib_rule *)rule;
229 struct fib_rule *rule;
234 rule = list_entry(pos->next, struct fib_rule, list);
235 if (rule->pref)
236 return rule->pref - 1;