FD.io VPP  v20.01-48-g3e0dafb74
Vector Packet Processing
igmp_ssm_range.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_SSM_RANGE_H__
19 #define __IGMP_SSM_RANGE_H__
20 
21 #include <igmp/igmp.h>
22 
23 /**
24  * Make sure this remains in-sync with the .api enum definition
25  */
26 #define foreach_igmp_group_prefix_type \
27  _ (0x0, ASM) \
28  _ (0x1, SSM)
29 
31 {
32 #define _(n,f) IGMP_GROUP_PREFIX_TYPE_##f = n,
34 #undef _
36 
38  ip46_address_t *
39  gaddr);
40 
41 extern void igmp_group_prefix_set (const fib_prefix_t * pfx,
43 
46  void *ctx);
47 
48 extern void igmp_ssm_range_walk (igmp_ssm_range_walk_t fn, void *ctx);
49 
50 #endif
51 
52 /*
53  * fd.io coding-style-patch-verification: ON
54  *
55  * Local Variables:
56  * eval: (c-set-style "gnu")
57  * End:
58  */
igmp_group_prefix_type_t_
#define foreach_igmp_group_prefix_type
Make sure this remains in-sync with the .api enum definition.
enum walk_rc_t_ walk_rc_t
Walk return code.
void igmp_ssm_range_walk(igmp_ssm_range_walk_t fn, void *ctx)
Aggregate type for a prefix.
Definition: fib_types.h:203
vl_api_fib_path_type_t type
Definition: fib_types.api:123
long ctx[MAX_CONNS]
Definition: main.c:144
igmp_group_prefix_type_t igmp_group_prefix_get_type(const ip46_address_t *gaddr)
vl_api_ip4_address_t gaddr
Definition: igmp.api:70
void igmp_group_prefix_set(const fib_prefix_t *pfx, igmp_group_prefix_type_t type)
enum igmp_group_prefix_type_t_ igmp_group_prefix_type_t
walk_rc_t(* igmp_ssm_range_walk_t)(const fib_prefix_t *pfx, igmp_group_prefix_type_t type, void *ctx)