]>
Commit | Line | Data |
---|---|---|
8f5f5e91 DS |
1 | /* |
2 | * PIM for Quagga | |
3 | * Copyright (C) 2015 Cumulus Networks, Inc. | |
4 | * Donald Sharp | |
5 | * | |
6 | * This program is free software; you can redistribute it and/or modify | |
7 | * it under the terms of the GNU General Public License as published by | |
8 | * the Free Software Foundation; either version 2 of the License, or | |
9 | * (at your option) any later version. | |
10 | * | |
11 | * This program is distributed in the hope that it will be useful, but | |
12 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 | * General Public License for more details. | |
15 | * | |
16 | * You should have received a copy of the GNU General Public License | |
17 | * along with this program; see the file COPYING; if not, write to the | |
18 | * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, | |
19 | * MA 02110-1301 USA | |
20 | */ | |
21 | #ifndef PIM_RP_H | |
22 | #define PIM_RP_H | |
23 | ||
36d6bd7d DS |
24 | void pim_rp_init (void); |
25 | void pim_rp_free (void); | |
26 | ||
dfe43e25 DW |
27 | int pim_rp_new (const char *rp, const char *group, const char *plist); |
28 | int pim_rp_del (const char *rp, const char *group, const char *plist); | |
29 | void pim_rp_prefix_list_update (struct prefix_list *plist); | |
75a26779 DS |
30 | |
31 | int pim_rp_config_write (struct vty *vty); | |
32 | ||
13afbd05 | 33 | int pim_rp_setup (void); |
75a26779 | 34 | |
54b97c74 | 35 | int pim_rp_i_am_rp (struct in_addr group); |
7176984f | 36 | void pim_rp_check_on_if_add(struct pim_interface *pim_ifp); |
37 | void pim_i_am_rp_re_evaluate(void); | |
75a26779 DS |
38 | |
39 | int pim_rp_check_is_my_ip_address (struct in_addr group, struct in_addr dest_addr); | |
40 | ||
36d6bd7d | 41 | int pim_rp_set_upstream_addr (struct in_addr *up, struct in_addr source, struct in_addr group); |
75a26779 | 42 | |
ed66602c | 43 | struct pim_rpf *pim_rp_g (struct in_addr group); |
8f5f5e91 | 44 | |
71694057 DS |
45 | #define I_am_RP(G) pim_rp_i_am_rp ((G)) |
46 | #define RP(G) pim_rp_g ((G)) | |
00d07c6f | 47 | |
9bf3c633 | 48 | void pim_rp_show_information (struct vty *vty, u_char uj); |
8f5f5e91 | 49 | #endif |