FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
igmp_api.h
Go to the documentation of this file.
1 /*
2  *------------------------------------------------------------------
3  * Copyright (c) 2017 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_API_H_
19 #define _IGMP_API_H_
20 
21 #include <vlib/vlib.h>
22 #include <vnet/ip/ip.h>
23 
24 /**
25  * @brief IGMP interface enable/disable
26  * Called by a router to enable/disable the reception of IGMP messages
27  * @param sw_if_index - Interface
28  * @param enable - enable/disable
29  * @param mode - Host (1) or router (0)
30  */
32 
33 /**
34  * @brief igmp listen (RFC3376 Section 2).
35  * @param vm - vlib main
36  * @param enable - 0 == remove (S,G), else add (S,G), aka. include/exclude
37  * @param sw_if_index - interface sw_if_index
38  * @param saddr - source address
39  * @param gaddr - group address
40  *
41  * Add/del (S,G) on an interface. If user configured,
42  * send a status change report from the interface.
43  * If a report was received on interface notify registered api clients.
44  */
45 int igmp_listen (vlib_main_t * vm, u8 enable, u32 sw_if_index,
46  const ip46_address_t * saddr, const ip46_address_t * gaddr);
47 
48 
49 #endif /* _IGMP_API_H_ */
50 
51 /*
52  * fd.io coding-style-patch-verification: ON
53  *
54  * Local Variables:
55  * eval: (c-set-style "gnu")
56  * End:
57  */
vlib_main_t * vm
Definition: in2out_ed.c:1582
unsigned char u8
Definition: types.h:56
unsigned int u32
Definition: types.h:88
int igmp_listen(vlib_main_t *vm, u8 enable, u32 sw_if_index, const ip46_address_t *saddr, const ip46_address_t *gaddr)
igmp listen (RFC3376 Section 2).
vl_api_tunnel_mode_t mode
Definition: gre.api:48
vl_api_ip4_address_t gaddr
Definition: igmp.api:70
int igmp_enable_disable(u32 sw_if_index, u8 enable, u8 mode)
IGMP interface enable/disable Called by a router to enable/disable the reception of IGMP messages...
vl_api_interface_index_t sw_if_index
Definition: wireguard.api:33