]> git.proxmox.com Git - mirror_frr.git/blame - pimd/pim_vxlan_instance.h
Merge pull request #5581 from Jafaral/pimroute-rf
[mirror_frr.git] / pimd / pim_vxlan_instance.h
CommitLineData
b583b035
AK
1/* PIM support for VxLAN BUM flooding
2 *
3 * Copyright (C) 2019 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 *
15 */
16
17#ifndef PIM_VXLAN_INSTANCE_H
18#define PIM_VXLAN_INSTANCE_H
19
b07d897e
AK
20/* pim termination device is expected to include the substring ipmr-lo */
21#define PIM_VXLAN_TERM_DEV_NAME "ipmr-lo"
22
b583b035
AK
23struct pim_vxlan_instance {
24 struct hash *sg_hash;
b07d897e
AK
25
26 /* this is lo for default instance and vrf-dev for non-default
27 * instances
28 */
29 struct interface *default_iif;
30
31 /* In a MLAG/VxLAN-AA setup the peerlink sub-interface (ISL-rif) is
32 * used as the IIF in
33 */
34 struct interface *peerlink_rif;
35
36 /* device used by the dataplane to terminate multicast encapsulated
37 * vxlan traffic
38 */
39 struct interface *term_if;
b583b035
AK
40};
41
42extern void pim_vxlan_init(struct pim_instance *pim);
43extern void pim_vxlan_exit(struct pim_instance *pim);
44
45#endif /* PIM_VXLAN_INSTANCE_H */