]>
Commit | Line | Data |
---|---|---|
15a5dafe | 1 | /* |
2 | * IP SSM ranges for FRR | |
3 | * Copyright (C) 2017 Cumulus Networks, Inc. | |
4 | * | |
5 | * This program is free software; you can redistribute it and/or modify | |
6 | * it under the terms of the GNU General Public License as published by | |
7 | * the Free Software Foundation; either version 2 of the License, or | |
8 | * (at your option) any later version. | |
9 | * | |
10 | * This program is distributed in the hope that it will be useful, but | |
11 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 | * General Public License for more details. | |
14 | * | |
896014f4 DL |
15 | * You should have received a copy of the GNU General Public License along |
16 | * with this program; see the file COPYING; if not, write to the Free Software | |
17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
15a5dafe | 18 | */ |
19 | #ifndef PIM_SSM_H | |
20 | #define PIM_SSM_H | |
21 | ||
22 | #define PIM_SSM_STANDARD_RANGE "232.0.0.0/8" | |
23 | ||
993e3d8e DL |
24 | struct pim_instance; |
25 | ||
15a5dafe | 26 | /* SSM error codes */ |
d62a17ae | 27 | enum pim_ssm_err { |
28 | PIM_SSM_ERR_NONE = 0, | |
29 | PIM_SSM_ERR_NO_VRF = -1, | |
30 | PIM_SSM_ERR_DUP = -2, | |
15a5dafe | 31 | }; |
32 | ||
d62a17ae | 33 | struct pim_ssm { |
d62a17ae | 34 | char *plist_name; /* prefix list of group ranges */ |
15a5dafe | 35 | }; |
36 | ||
6f439a70 DS |
37 | void pim_ssm_prefix_list_update(struct pim_instance *pim, |
38 | struct prefix_list *plist); | |
8c0a7680 | 39 | extern int pim_is_grp_ssm(struct pim_instance *pim, pim_addr group_addr); |
6f439a70 DS |
40 | int pim_ssm_range_set(struct pim_instance *pim, vrf_id_t vrf_id, |
41 | const char *plist_name); | |
e07fe9e6 | 42 | void *pim_ssm_init(void); |
d62a17ae | 43 | void pim_ssm_terminate(struct pim_ssm *ssm); |
15a5dafe | 44 | #endif |