]> git.proxmox.com Git - mirror_frr.git/blob - pimd/pim_zlookup.h
*: auto-convert to SPDX License IDs
[mirror_frr.git] / pimd / pim_zlookup.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * PIM for Quagga
4 * Copyright (C) 2008 Everton da Silva Marques
5 */
6
7 #ifndef PIM_ZLOOKUP_H
8 #define PIM_ZLOOKUP_H
9
10 #include <zebra.h>
11
12 #include "zclient.h"
13
14 #define PIM_NEXTHOP_LOOKUP_MAX (3) /* max. recursive route lookup */
15
16 struct channel_oil;
17
18 struct pim_zlookup_nexthop {
19 vrf_id_t vrf_id;
20 pim_addr nexthop_addr;
21 ifindex_t ifindex;
22 uint32_t route_metric;
23 uint8_t protocol_distance;
24 };
25
26 void zclient_lookup_new(void);
27 void zclient_lookup_free(void);
28
29 int zclient_lookup_nexthop(struct pim_instance *pim,
30 struct pim_zlookup_nexthop nexthop_tab[],
31 const int tab_size, pim_addr addr,
32 int max_lookup);
33
34 void pim_zlookup_show_ip_multicast(struct vty *vty);
35
36 int pim_zlookup_sg_statistics(struct channel_oil *c_oil);
37 #endif /* PIM_ZLOOKUP_H */