From: Philippe Guibert Date: Thu, 21 Jun 2018 13:01:01 +0000 (+0200) Subject: zebra: pbr ipset_type2_str command is externalised X-Git-Tag: frr-6.1-dev~217^2~27 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=5b0d92b8d594e908c0baf93957aa26e8745797c6;p=matthieu%2Ffrr.git zebra: pbr ipset_type2_str command is externalised The API of that function that converts ipset types is externalised. Signed-off-by: Philippe Guibert --- diff --git a/zebra/zebra_pbr.c b/zebra/zebra_pbr.c index d511c8c6ec..f186298d65 100644 --- a/zebra/zebra_pbr.c +++ b/zebra/zebra_pbr.c @@ -515,7 +515,7 @@ struct pbr_ipset_name_lookup { char ipset_name[ZEBRA_IPSET_NAME_SIZE]; }; -static const char *zebra_pbr_ipset_type2str(uint32_t type) +const char *zebra_pbr_ipset_type2str(uint32_t type) { return lookup_msg(ipset_type_msg, type, "Unrecognized IPset Type"); diff --git a/zebra/zebra_pbr.h b/zebra/zebra_pbr.h index 6cbafd6daa..182088f623 100644 --- a/zebra/zebra_pbr.h +++ b/zebra/zebra_pbr.h @@ -138,6 +138,8 @@ struct zebra_pbr_iptable { char ipset_name[ZEBRA_IPSET_NAME_SIZE]; }; +const char *zebra_pbr_ipset_type2str(uint32_t type); + void zebra_pbr_add_rule(struct zebra_ns *zns, struct zebra_pbr_rule *rule); void zebra_pbr_del_rule(struct zebra_ns *zns, struct zebra_pbr_rule *rule); void zebra_pbr_create_ipset(struct zebra_ns *zns,