]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: Modify zclient_send_rnh to use const struct prefix
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sun, 22 Mar 2020 22:38:56 +0000 (18:38 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Sun, 22 Mar 2020 22:38:56 +0000 (18:38 -0400)
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/zclient.c
lib/zclient.h

index eac6c7081df43e584f4a62d7853bb09f86e069b1..93c5fe39af06d362bdb4f0e483cc115b74532e1b 100644 (file)
@@ -690,8 +690,9 @@ static int zclient_connect(struct thread *t)
        return zclient_start(zclient);
 }
 
-int zclient_send_rnh(struct zclient *zclient, int command, struct prefix *p,
-                    bool exact_match, vrf_id_t vrf_id)
+int zclient_send_rnh(struct zclient *zclient, int command,
+                    const struct prefix *p, bool exact_match,
+                    vrf_id_t vrf_id)
 {
        struct stream *s;
 
index e6f4c747e317ab1aebc832b75ea43200b9edfca2..f18511dc815c371b73944877a5aeae90ec0d97ed 100644 (file)
@@ -738,7 +738,7 @@ extern void zebra_read_pw_status_update(ZAPI_CALLBACK_ARGS, struct zapi_pw_statu
 
 extern int zclient_route_send(uint8_t, struct zclient *, struct zapi_route *);
 extern int zclient_send_rnh(struct zclient *zclient, int command,
-                           struct prefix *p, bool exact_match,
+                           const struct prefix *p, bool exact_match,
                            vrf_id_t vrf_id);
 int zapi_nexthop_encode(struct stream *s, const struct zapi_nexthop *api_nh,
                        uint32_t api_flags);