FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
igmp_proxy.h
Go to the documentation of this file.
1 /*
2  *------------------------------------------------------------------
3  * Copyright (c) 2018 Cisco and/or its affiliates.
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at:
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *------------------------------------------------------------------
16  */
17 
18 #ifndef _IGMP_PROXY_H_
19 #define _IGMP_PROXY_H_
20 
21 #include <igmp/igmp_types.h>
22 #include <igmp/igmp_config.h>
23 
24 typedef struct
25 {
26  /* VRF index */
28 
29  /* upstream interface */
31 
32  /* downstream interfaces */
35 
36 /**
37  * @brief IGMP proxy device add/del
38  * @param vrf_id - VRF id
39  * @param sw_if_index - upstream interface
40  * @param add - add/del
41  *
42  * Add/del IGMP proxy device. Interface must be IGMP enabled in HOST mode.
43  */
45 
46 /**
47  * @brief IGMP proxy device add/del interface
48  * @param vrf_id - VRF id
49  * @param sw_if_index - downstream interface
50  * @param add - add/del
51  *
52  * Add/del IGMP enabled interface in ROUTER mode to proxy device.
53  */
55 
56 void igmp_proxy_device_merge_config (igmp_config_t *config, u8 block);
57 
59 
61 
62 #endif /* IGMP_PROXY_H */
igmp_proxy_device_t::upstream_if
u32 upstream_if
Definition: igmp_proxy.h:30
igmp_src_t_
IGMP source The representation of a specified source address with in multicast group.
Definition: igmp_src.h:41
igmp_proxy_device_t::downstream_ifs
u32 * downstream_ifs
Definition: igmp_proxy.h:33
igmp_proxy_device_add_del_interface
int igmp_proxy_device_add_del_interface(u32 vrf_id, u32 sw_if_index, u8 add)
IGMP proxy device add/del interface.
Definition: igmp_proxy.c:141
igmp_config_t_
IGMP interface configuration.
Definition: igmp_config.h:47
igmp_proxy_device_merge_config
void igmp_proxy_device_merge_config(igmp_config_t *config, u8 block)
Definition: igmp_proxy.c:358
igmp_group_t_
IGMP group A multicast group address for which reception has been requested.
Definition: igmp_group.h:56
igmp_types.h
igmp_proxy_device_t
Definition: igmp_proxy.h:24
src
vl_api_address_t src
Definition: gre.api:54
igmp_proxy_device_t::vrf_id
u32 vrf_id
Definition: igmp_proxy.h:27
igmp_proxy_device_mfib_path_add_del
void igmp_proxy_device_mfib_path_add_del(igmp_group_t *group, u8 add)
Definition: igmp_proxy.c:27
u32
unsigned int u32
Definition: types.h:88
igmp_config.h
u8
unsigned char u8
Definition: types.h:56
vrf_id
u32 vrf_id
Definition: nat44_ed.api:1053
igmp_proxy_device_add_del
int igmp_proxy_device_add_del(u32 vrf_id, u32 sw_if_index, u8 add)
IGMP proxy device add/del.
Definition: igmp_proxy.c:80
sw_if_index
vl_api_interface_index_t sw_if_index
Definition: wireguard.api:34
igmp_proxy_device_block_src
void igmp_proxy_device_block_src(igmp_config_t *config, igmp_group_t *group, igmp_src_t *src)
Definition: igmp_proxy.c:195