diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2021-09-24 15:51:18 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2021-09-27 12:38:08 -0400 |
| commit | ed6cec97d7f2c5abbc5a2ef2f087a614c54ddcb1 (patch) | |
| tree | e5804304819a41268360ca56509a8711be3ee09f /lib/zclient.c | |
| parent | 4aabcba0f15d9a37088bfc1c2787d45ed58592e5 (diff) | |
*: Add resolve via default flag
Diffstat (limited to 'lib/zclient.c')
| -rw-r--r-- | lib/zclient.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/zclient.c b/lib/zclient.c index dde60a6c90..bdc7cd5c75 100644 --- a/lib/zclient.c +++ b/lib/zclient.c @@ -765,7 +765,8 @@ 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, vrf_id_t vrf_id) + bool exact_match, + bool resolve_via_def, vrf_id_t vrf_id) { struct stream *s; @@ -773,7 +774,7 @@ enum zclient_send_status zclient_send_rnh(struct zclient *zclient, int command, stream_reset(s); zclient_create_header(s, command, vrf_id); stream_putc(s, (exact_match) ? 1 : 0); - + stream_putc(s, (resolve_via_def) ? 1 : 0); stream_putw(s, PREFIX_FAMILY(p)); stream_putc(s, p->prefixlen); switch (PREFIX_FAMILY(p)) { |
