]>
git.proxmox.com Git - mirror_frr.git/blob - pimd/pim_rp.h
3 * Copyright (C) 2015 Cumulus Networks, Inc.
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.
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.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; see the file COPYING; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
40 enum rp_source rp_src
;
45 void pim_rp_init(struct pim_instance
*pim
);
46 void pim_rp_free(struct pim_instance
*pim
);
48 void pim_rp_list_hash_clean(void *data
);
50 int pim_rp_new(struct pim_instance
*pim
, pim_addr rp_addr
, struct prefix group
,
51 const char *plist
, enum rp_source rp_src_flag
);
52 void pim_rp_del_config(struct pim_instance
*pim
, pim_addr rp_addr
,
53 const char *group
, const char *plist
);
54 int pim_rp_del(struct pim_instance
*pim
, pim_addr rp_addr
, struct prefix group
,
55 const char *plist
, enum rp_source rp_src_flag
);
56 int pim_rp_change(struct pim_instance
*pim
, pim_addr new_rp_addr
,
57 struct prefix group
, enum rp_source rp_src_flag
);
58 void pim_rp_prefix_list_update(struct pim_instance
*pim
,
59 struct prefix_list
*plist
);
61 int pim_rp_config_write(struct pim_instance
*pim
, struct vty
*vty
,
64 void pim_rp_setup(struct pim_instance
*pim
);
66 int pim_rp_i_am_rp(struct pim_instance
*pim
, pim_addr group
);
67 void pim_rp_check_on_if_add(struct pim_interface
*pim_ifp
);
68 void pim_i_am_rp_re_evaluate(struct pim_instance
*pim
);
70 bool pim_rp_check_is_my_ip_address(struct pim_instance
*pim
,
71 struct in_addr dest_addr
);
73 int pim_rp_set_upstream_addr(struct pim_instance
*pim
, pim_addr
*up
,
74 pim_addr source
, pim_addr group
);
76 struct pim_rpf
*pim_rp_g(struct pim_instance
*pim
, pim_addr group
);
78 #define I_am_RP(P, G) pim_rp_i_am_rp ((P), (G))
79 #define RP(P, G) pim_rp_g ((P), (G))
81 void pim_rp_show_information(struct pim_instance
*pim
, struct vty
*vty
,
83 void pim_resolve_rp_nh(struct pim_instance
*pim
, struct pim_neighbor
*nbr
);
84 int pim_rp_list_cmp(void *v1
, void *v2
);
85 struct rp_info
*pim_rp_find_match_group(struct pim_instance
*pim
,
86 const struct prefix
*group
);
87 void pim_upstream_update(struct pim_instance
*pim
, struct pim_upstream
*up
);
88 void pim_rp_refresh_group_to_rp_mapping(struct pim_instance
*pim
);