]> git.proxmox.com Git - mirror_frr.git/commitdiff
*: Modify notify_owner to route_notify_owner
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 23 Feb 2018 19:40:46 +0000 (14:40 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 23 Feb 2018 19:45:57 +0000 (14:45 -0500)
In the future we are going to have a rule_notify_owner
so make the distinction between the two types of notification
clearer.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
eigrpd/eigrp_zebra.c
lib/zclient.c
lib/zclient.h
sharpd/sharp_zebra.c

index 513fda06f309dc85d96490c856d0e48908efc549..e8392f50b4269a0af3c9b9f6ecb274a243bc5e3f 100644 (file)
@@ -94,8 +94,8 @@ static int eigrp_router_id_update_zebra(int command, struct zclient *zclient,
        return 0;
 }
 
-static int eigrp_zebra_notify_owner(int command, struct zclient *zclient,
-                                   zebra_size_t length, vrf_id_t vrf_id)
+static int eigrp_zebra_route_notify_owner(int command, struct zclient *zclient,
+                                         zebra_size_t length, vrf_id_t vrf_id)
 {
        struct prefix p;
        enum zapi_route_notify_owner note;
@@ -129,7 +129,7 @@ void eigrp_zebra_init(void)
        zclient->interface_address_delete = eigrp_interface_address_delete;
        zclient->redistribute_route_add = eigrp_zebra_read_route;
        zclient->redistribute_route_del = eigrp_zebra_read_route;
-       zclient->notify_owner = eigrp_zebra_notify_owner;
+       zclient->route_notify_owner = eigrp_zebra_route_notify_owner;
 }
 
 
index d6a6cee731b0c9ff1c7e66da26324c17f471499b..d11457a859f8ad7e9df4924a3677c00a8dd9cc60 100644 (file)
@@ -2369,9 +2369,9 @@ static int zclient_read(struct thread *thread)
                                                     vrf_id);
                break;
        case ZEBRA_ROUTE_NOTIFY_OWNER:
-               if (zclient->notify_owner)
-                       (*zclient->notify_owner)(command, zclient,
-                                                length, vrf_id);
+               if (zclient->route_notify_owner)
+                       (*zclient->route_notify_owner)(command, zclient, length,
+                                                      vrf_id);
                break;
        default:
                break;
index 21785abfbcf95cf2a3f8722928b8d7e47d4b9e95..4c84af1f61b09878baa084f5a4a131038207700f 100644 (file)
@@ -213,8 +213,8 @@ struct zclient {
        int (*local_macip_add)(int, struct zclient *, uint16_t, vrf_id_t);
        int (*local_macip_del)(int, struct zclient *, uint16_t, vrf_id_t);
        int (*pw_status_update)(int, struct zclient *, uint16_t, vrf_id_t);
-       int (*notify_owner)(int command, struct zclient *zclient,
-                           uint16_t length, vrf_id_t vrf_id);
+       int (*route_notify_owner)(int command, struct zclient *zclient,
+                                 uint16_t length, vrf_id_t vrf_id);
 };
 
 /* Zebra API message flag. */
index b39fc47d3dff721256e327fb9262150dbfce9cc7..3b22db20aa155e7e33f6a45e4d7b783f55a7ad73 100644 (file)
@@ -131,8 +131,8 @@ static int interface_state_down(int command, struct zclient *zclient,
 extern uint32_t total_routes;
 extern uint32_t installed_routes;
 
-static int notify_owner(int command, struct zclient *zclient,
-                       zebra_size_t length, vrf_id_t vrf_id)
+static int route_notify_owner(int command, struct zclient *zclient,
+                             zebra_size_t length, vrf_id_t vrf_id)
 {
        struct prefix p;
        enum zapi_route_notify_owner note;
@@ -211,5 +211,5 @@ void sharp_zebra_init(void)
        zclient->interface_down = interface_state_down;
        zclient->interface_address_add = interface_address_add;
        zclient->interface_address_delete = interface_address_delete;
-       zclient->notify_owner = notify_owner;
+       zclient->route_notify_owner = route_notify_owner;
 }