]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: pbr ipset_type2_str command is externalised
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 21 Jun 2018 13:01:01 +0000 (15:01 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 28 Jun 2018 06:52:15 +0000 (08:52 +0200)
The API of that function that converts ipset types is externalised.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
zebra/zebra_pbr.c
zebra/zebra_pbr.h

index d511c8c6ec1479e4eb9d2262dad25b8107944afc..f186298d657c7854a63bdabcf3e81e2a43804b32 100644 (file)
@@ -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");
index 6cbafd6daaed1dd771c41395d6e8fb40344c3e69..182088f6238642d0654b7b57681db8c0e28262d7 100644 (file)
@@ -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,