2023-02-08 13:17:09 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2015-02-04 07:01:14 +01:00
|
|
|
/*
|
2017-05-13 10:25:29 +02:00
|
|
|
* PIM for Quagga
|
|
|
|
* Copyright (C) 2008 Everton da Silva Marques
|
|
|
|
*/
|
2015-02-04 07:01:14 +01:00
|
|
|
|
|
|
|
#ifndef PIM_ZLOOKUP_H
|
|
|
|
#define PIM_ZLOOKUP_H
|
|
|
|
|
|
|
|
#include <zebra.h>
|
|
|
|
|
|
|
|
#include "zclient.h"
|
|
|
|
|
|
|
|
#define PIM_NEXTHOP_LOOKUP_MAX (3) /* max. recursive route lookup */
|
|
|
|
|
2022-05-06 12:36:51 +02:00
|
|
|
struct channel_oil;
|
|
|
|
|
2015-02-04 07:01:14 +01:00
|
|
|
struct pim_zlookup_nexthop {
|
2018-11-02 00:24:59 +01:00
|
|
|
vrf_id_t vrf_id;
|
2022-04-06 16:34:12 +02:00
|
|
|
pim_addr nexthop_addr;
|
2016-01-18 11:12:10 +01:00
|
|
|
ifindex_t ifindex;
|
2015-02-04 07:01:14 +01:00
|
|
|
uint32_t route_metric;
|
|
|
|
uint8_t protocol_distance;
|
|
|
|
};
|
|
|
|
|
2016-08-09 21:04:23 +02:00
|
|
|
void zclient_lookup_new(void);
|
2016-12-12 01:02:46 +01:00
|
|
|
void zclient_lookup_free(void);
|
2015-02-04 07:01:14 +01:00
|
|
|
|
2017-05-21 15:03:07 +02:00
|
|
|
int zclient_lookup_nexthop(struct pim_instance *pim,
|
|
|
|
struct pim_zlookup_nexthop nexthop_tab[],
|
2022-01-18 11:54:36 +01:00
|
|
|
const int tab_size, pim_addr addr,
|
2015-02-04 07:01:14 +01:00
|
|
|
int max_lookup);
|
|
|
|
|
2016-08-09 21:04:23 +02:00
|
|
|
void pim_zlookup_show_ip_multicast(struct vty *vty);
|
|
|
|
|
2016-08-11 02:04:20 +02:00
|
|
|
int pim_zlookup_sg_statistics(struct channel_oil *c_oil);
|
2015-02-04 07:01:14 +01:00
|
|
|
#endif /* PIM_ZLOOKUP_H */
|