diff options
author | Philippe Guibert <philippe.guibert@6wind.com> | 2018-03-24 14:58:04 +0100 |
---|---|---|
committer | Philippe Guibert <philippe.guibert@6wind.com> | 2018-04-16 14:40:43 +0200 |
commit | f46bbab419a3625955ade84ef1ddae28f156763f (patch) | |
tree | 55996bcbf6c6f55310c0b246f92cbfcaff7e116d | |
parent | zebra: adapt zebra_pbr_rule based with pbr_rule (diff) | |
download | frr-f46bbab419a3625955ade84ef1ddae28f156763f.tar.xz frr-f46bbab419a3625955ade84ef1ddae28f156763f.zip |
zebra: rename pbr_unique structure to pbr_rule_unique
This renaming of structure permits better identify which structure is
looked up, since policy routing will not only rely on iprule, but also
on some other structures.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
-rw-r--r-- | zebra/zebra_pbr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zebra/zebra_pbr.c b/zebra/zebra_pbr.c index 2d9086c76..27daa2d80 100644 --- a/zebra/zebra_pbr.c +++ b/zebra/zebra_pbr.c @@ -108,14 +108,14 @@ int zebra_pbr_rules_hash_equal(const void *arg1, const void *arg2) return 1; } -struct pbr_unique_lookup { +struct pbr_rule_unique_lookup { struct zebra_pbr_rule *rule; uint32_t unique; }; static int pbr_rule_lookup_unique_walker(struct hash_backet *b, void *data) { - struct pbr_unique_lookup *pul = data; + struct pbr_rule_unique_lookup *pul = data; struct zebra_pbr_rule *rule = b->data; if (pul->unique == rule->rule.unique) { @@ -129,7 +129,7 @@ static int pbr_rule_lookup_unique_walker(struct hash_backet *b, void *data) static struct zebra_pbr_rule *pbr_rule_lookup_unique(struct zebra_ns *zns, uint32_t unique) { - struct pbr_unique_lookup pul; + struct pbr_rule_unique_lookup pul; pul.unique = unique; pul.rule = NULL; |