]>
Commit | Line | Data |
---|---|---|
acddc0ed | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
12e41d03 | 2 | /* |
896014f4 DL |
3 | * PIM for Quagga |
4 | * Copyright (C) 2008 Everton da Silva Marques | |
896014f4 | 5 | */ |
12e41d03 DL |
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 | ||
993e3d8e DL |
16 | struct channel_oil; |
17 | ||
12e41d03 | 18 | struct pim_zlookup_nexthop { |
a756969d | 19 | vrf_id_t vrf_id; |
cbe1dbba | 20 | pim_addr nexthop_addr; |
d62a17ae | 21 | ifindex_t ifindex; |
22 | uint32_t route_metric; | |
23 | uint8_t protocol_distance; | |
12e41d03 DL |
24 | }; |
25 | ||
d62a17ae | 26 | void zclient_lookup_new(void); |
27 | void zclient_lookup_free(void); | |
12e41d03 | 28 | |
71edad0f DS |
29 | int zclient_lookup_nexthop(struct pim_instance *pim, |
30 | struct pim_zlookup_nexthop nexthop_tab[], | |
00b1f412 | 31 | const int tab_size, pim_addr addr, |
12e41d03 DL |
32 | int max_lookup); |
33 | ||
d62a17ae | 34 | void pim_zlookup_show_ip_multicast(struct vty *vty); |
05b0d0d0 | 35 | |
d62a17ae | 36 | int pim_zlookup_sg_statistics(struct channel_oil *c_oil); |
12e41d03 | 37 | #endif /* PIM_ZLOOKUP_H */ |