]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: Fix usage to enum in notify functions
authorDonald Sharp <sharpd@nvidia.com>
Thu, 19 Aug 2021 15:31:05 +0000 (11:31 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 19 Aug 2021 15:31:05 +0000 (11:31 -0400)
For some reason commit #ef524230a6baa decided
to remove enums and switch to uint16_t.  Which
is not the right thing to do.  Put it back

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zebra/zapi_msg.c
zebra/zapi_msg.h

index 66208bfd803bb1a17afa9d4413201ea8a8761b24..ddd6a74c0bbb0d8e66b8384ce907ef4c432b4d4d 100644 (file)
@@ -867,7 +867,7 @@ void zsend_rule_notify_owner(const struct zebra_dplane_ctx *ctx,
 }
 
 void zsend_iptable_notify_owner(const struct zebra_dplane_ctx *ctx,
-                               uint16_t note)
+                               enum zapi_iptable_notify_owner note)
 {
        struct listnode *node;
        struct zserv *client;
@@ -901,7 +901,8 @@ void zsend_iptable_notify_owner(const struct zebra_dplane_ctx *ctx,
        zserv_send_message(client, s);
 }
 
-void zsend_ipset_notify_owner(const struct zebra_dplane_ctx *ctx, uint16_t note)
+void zsend_ipset_notify_owner(const struct zebra_dplane_ctx *ctx,
+                             enum zapi_ipset_notify_owner note)
 {
        struct listnode *node;
        struct zserv *client;
@@ -936,7 +937,7 @@ void zsend_ipset_notify_owner(const struct zebra_dplane_ctx *ctx, uint16_t note)
 }
 
 void zsend_ipset_entry_notify_owner(const struct zebra_dplane_ctx *ctx,
-                                   uint16_t note)
+                                   enum zapi_ipset_entry_notify_owner note)
 {
        struct listnode *node;
        struct zserv *client;
index e991dca4f32bef1f17ddc560a4ac3e4ea95710fd..dad40c200df58647f0f284acf778cf7ba7663f6a 100644 (file)
@@ -87,11 +87,12 @@ extern void zsend_rule_notify_owner(const struct zebra_dplane_ctx *ctx,
                                    enum zapi_rule_notify_owner note);
 
 extern void zsend_iptable_notify_owner(const struct zebra_dplane_ctx *ctx,
-                                      uint16_t note);
+                                      enum zapi_iptable_notify_owner note);
 extern void zsend_ipset_notify_owner(const struct zebra_dplane_ctx *ctx,
-                                    uint16_t note);
-extern void zsend_ipset_entry_notify_owner(const struct zebra_dplane_ctx *ctx,
-                                          uint16_t note);
+                                    enum zapi_ipset_notify_owner note);
+extern void
+zsend_ipset_entry_notify_owner(const struct zebra_dplane_ctx *ctx,
+                              enum zapi_ipset_entry_notify_owner note);
 extern bool zserv_nexthop_num_warn(const char *caller, const struct prefix *p,
                                   const unsigned int nexthop_num);