summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/zclient.c4
-rw-r--r--lib/zclient.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/zclient.c b/lib/zclient.c
index 96c3d67ba8..6f863c5ea6 100644
--- a/lib/zclient.c
+++ b/lib/zclient.c
@@ -765,7 +765,7 @@ static int zclient_connect(struct thread *t)
enum zclient_send_status zclient_send_rnh(struct zclient *zclient, int command,
const struct prefix *p,
- bool exact_match,
+ bool connected,
bool resolve_via_def, vrf_id_t vrf_id)
{
struct stream *s;
@@ -773,7 +773,7 @@ enum zclient_send_status zclient_send_rnh(struct zclient *zclient, int command,
s = zclient->obuf;
stream_reset(s);
zclient_create_header(s, command, vrf_id);
- stream_putc(s, (exact_match) ? 1 : 0);
+ stream_putc(s, (connected) ? 1 : 0);
stream_putc(s, (resolve_via_def) ? 1 : 0);
stream_putw(s, PREFIX_FAMILY(p));
stream_putc(s, p->prefixlen);
diff --git a/lib/zclient.h b/lib/zclient.h
index a6d104301e..c35753ca80 100644
--- a/lib/zclient.h
+++ b/lib/zclient.h
@@ -1103,7 +1103,7 @@ extern enum zclient_send_status zclient_route_send(uint8_t, struct zclient *,
struct zapi_route *);
extern enum zclient_send_status
zclient_send_rnh(struct zclient *zclient, int command, const struct prefix *p,
- bool exact_match, bool resolve_via_default, vrf_id_t vrf_id);
+ bool connected, bool resolve_via_default, vrf_id_t vrf_id);
int zapi_nexthop_encode(struct stream *s, const struct zapi_nexthop *api_nh,
uint32_t api_flags, uint32_t api_message);
extern int zapi_route_encode(uint8_t, struct stream *, struct zapi_route *);