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:
8 * http://www.apache.org/licenses/LICENSE-2.0
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 *------------------------------------------------------------------
18 #ifndef __IGMP_TYPES_H__
19 #define __IGMP_TYPES_H__
21 #include <vnet/ip/ip.h>
23 /** \brief IGMP source - where to the request for state arrive from
24 * host - from an API/CLI command to add the state
25 * network - from a received report
26 * Each source could be mode from both modes, so these are flags.
28 #define foreach_igmp_mode \
32 typedef enum igmp_mode_t_
34 #define _(n,f) IGMP_MODE_##f = n,
39 typedef enum igmp_msg_type_t_
47 * Used to index groups within an interface config and sources within a list
49 typedef ip46_address_t igmp_key_t;
52 * @brief IGMP filter mode
53 * Exclude all source address except this one
54 * Include only this source address
56 #define foreach_igmp_filter_mode \
60 typedef enum igmp_filter_mode_t_
62 #define _(n,f) IGMP_FILTER_MODE_##f = n,
63 foreach_igmp_filter_mode
67 #define IGMP_N_FILTER_MODES 2
70 * fd.io coding-style-patch-verification: ON
73 * eval: (c-set-style "gnu")