]> git.proxmox.com Git - mirror_frr.git/blob - pimd/pim_jp_agg.h
Merge pull request #254 from donaldsharp/shutdown3
[mirror_frr.git] / pimd / pim_jp_agg.h
1 /*
2 * PIM for FRR - J/P Aggregation
3 * Copyright (C) 2017 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_JP_AGG_H__
22 #define __PIM_JP_AGG_H__
23
24 struct pim_jp_sources
25 {
26 struct pim_upstream *up;
27 int is_join;
28 };
29
30 struct pim_jp_agg_group
31 {
32 struct in_addr group;
33 //int onetime;
34 struct list *sources;
35 };
36
37 void pim_jp_agg_group_list_free (struct pim_jp_agg_group *jag);
38 int pim_jp_agg_group_list_cmp (void *arg1, void *arg2);
39
40 void pim_jp_agg_clear_group (struct list *group);
41 void pim_jp_agg_remove_group (struct list *group, struct pim_upstream *up);
42
43 void pim_jp_agg_add_group (struct list *group,
44 struct pim_upstream *up, bool is_join);
45
46 void pim_jp_agg_switch_interface (struct pim_rpf *orpf,
47 struct pim_rpf *nrpf,
48 struct pim_upstream *up);
49
50 void pim_jp_agg_single_upstream_send (struct pim_rpf *rpf,
51 struct pim_upstream *up,
52 bool is_join);
53 #endif