diff options
author | Anuradha Karuppiah <anuradhak@cumulusnetworks.com> | 2019-03-19 23:54:02 +0100 |
---|---|---|
committer | Anuradha Karuppiah <anuradhak@cumulusnetworks.com> | 2019-04-20 17:33:21 +0200 |
commit | b583b035822bc0d1694a73edfcaa1aaef1387fe8 (patch) | |
tree | b00468e35d2a5fd31053cb2d5069fbd95ab45599 /pimd/pim_vxlan.h | |
parent | lib, zebra: changes to propagate vxlan mcast SG entries to pimd (diff) | |
download | frr-b583b035822bc0d1694a73edfcaa1aaef1387fe8.tar.xz frr-b583b035822bc0d1694a73edfcaa1aaef1387fe8.zip |
pimd: initial infrastructure to maintain VxLAN SG database
These entries will be used over the subsequent commits for
1. vxlan-tunnel-termination handling - setup MDT to rx VxLAN encapsulated
BUM traffic.
2. vxlan-tunnel-origination handling - register local-vtep-ip as a
multicast source.
Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_vxlan.h')
-rw-r--r-- | pimd/pim_vxlan.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pimd/pim_vxlan.h b/pimd/pim_vxlan.h new file mode 100644 index 000000000..5ad6c7d4d --- /dev/null +++ b/pimd/pim_vxlan.h @@ -0,0 +1,39 @@ +/* PIM support for VxLAN BUM flooding + * + * Copyright (C) 2019 Cumulus Networks, Inc. + * + * This file is part of FRR. + * + * FRR is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2, or (at your option) any + * later version. + * + * FRR is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + */ + +#ifndef PIM_VXLAN_H +#define PIM_VXLAN_H + +struct pim_vxlan_sg { + struct pim_instance *pim; + + /* key */ + struct prefix_sg sg; + char sg_str[PIM_SG_LEN]; +}; + +extern struct pim_vxlan_sg *pim_vxlan_sg_find(struct pim_instance *pim, + struct prefix_sg *sg); +extern struct pim_vxlan_sg *pim_vxlan_sg_add(struct pim_instance *pim, + struct prefix_sg *sg); +extern void pim_vxlan_sg_del(struct pim_instance *pim, struct prefix_sg *sg); + +#endif /* PIM_VXLAN_H */ |