diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2021-09-24 16:36:27 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2021-09-27 12:38:08 -0400 |
| commit | d597533a9dcabc298a53112c22e94c0264cd3f39 (patch) | |
| tree | b86f06ee542b1f6920954687494336a60733cf5d /zebra/zapi_msg.c | |
| parent | 6cd9a93dddba199e68c73baca62337b704f32e14 (diff) | |
zebra: Start carrying safi for rnh processing
PIM is going to need to be able to send down the address it is
trying to resolve in the multicast rib. We need a way to signal
this to the end developer. Start the conversion by adding the
ability to have a safi. But only allow SAFI_UNICAST at the moment.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/zapi_msg.c')
| -rw-r--r-- | zebra/zapi_msg.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/zebra/zapi_msg.c b/zebra/zapi_msg.c index 4c0a0c82bf..c5f29b8fe7 100644 --- a/zebra/zapi_msg.c +++ b/zebra/zapi_msg.c @@ -1240,7 +1240,8 @@ static void zread_rnh_register(ZAPI_HANDLER_ARGS) /* Anything not AF_INET/INET6 has been filtered out above */ if (!exist || flag_changed) - zebra_evaluate_rnh(zvrf, family2afi(p.family), 1, &p); + zebra_evaluate_rnh(zvrf, family2afi(p.family), 1, &p, + SAFI_UNICAST); zebra_add_rnh_client(rnh, client, zvrf_id(zvrf)); } @@ -1305,7 +1306,7 @@ static void zread_rnh_unregister(ZAPI_HANDLER_ARGS) p.family); return; } - rnh = zebra_lookup_rnh(&p, zvrf_id(zvrf)); + rnh = zebra_lookup_rnh(&p, zvrf_id(zvrf), SAFI_UNICAST); if (rnh) { client->nh_dereg_time = monotime(NULL); zebra_remove_rnh_client(rnh, client); |
