diff options
| author | David Lamparter <equinox@diac24.net> | 2012-04-11 23:52:46 +0200 | 
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2017-08-28 01:21:43 +0200 | 
| commit | 09a484dd1d27580d98c4b94d3ed77e47d7aac0b5 (patch) | |
| tree | ac178c846ddabfe4d6c80d5f6b5f4ba6025bbea2 /ospf6d/ospf6_zebra.c | |
| parent | 3df31ebb0328b4b84fa11d5fbd956dcc30c44dfe (diff) | |
*: remove ZEBRA_FLAG_{BLACKHOLE,REJECT} from API
FLAG_BLACKHOLE is used for different things in different places. remove
it from the zclient API, instead indicate blackholes as proper nexthops
inside the message.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospf6d/ospf6_zebra.c')
| -rw-r--r-- | ospf6d/ospf6_zebra.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/ospf6d/ospf6_zebra.c b/ospf6d/ospf6_zebra.c index 3443bc47b6..ae08384559 100644 --- a/ospf6d/ospf6_zebra.c +++ b/ospf6d/ospf6_zebra.c @@ -392,9 +392,9 @@ void ospf6_zebra_add_discard(struct ospf6_route *request)  		memset(&api, 0, sizeof(api));  		api.vrf_id = VRF_DEFAULT;  		api.type = ZEBRA_ROUTE_OSPF6; -		api.flags = ZEBRA_FLAG_BLACKHOLE;  		api.safi = SAFI_UNICAST;  		api.prefix = *dest; +		zapi_route_set_blackhole(&api, BLACKHOLE_NULL);  		zclient_route_send(ZEBRA_ROUTE_ADD, zclient, &api); @@ -425,9 +425,9 @@ void ospf6_zebra_delete_discard(struct ospf6_route *request)  		memset(&api, 0, sizeof(api));  		api.vrf_id = VRF_DEFAULT;  		api.type = ZEBRA_ROUTE_OSPF6; -		api.flags = ZEBRA_FLAG_BLACKHOLE;  		api.safi = SAFI_UNICAST;  		api.prefix = *dest; +		zapi_route_set_blackhole(&api, BLACKHOLE_NULL);  		zclient_route_send(ZEBRA_ROUTE_DELETE, zclient, &api);  | 
