FD.io VPP  v21.10.1-2-g0a485f517
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_ssm_range_walk
void igmp_ssm_range_walk(igmp_ssm_range_walk_t fn, void *ctx)
Definition: igmp_ssm_range.c:104
igmp_group_prefix_get_type
igmp_group_prefix_type_t igmp_group_prefix_get_type(const ip46_address_t *gaddr)
Definition: igmp_ssm_range.c:87
igmp_ssm_range_walk_t
walk_rc_t(* igmp_ssm_range_walk_t)(const fib_prefix_t *pfx, igmp_group_prefix_type_t type, void *ctx)
Definition: igmp_ssm_range.h:44
igmp.h
igmp_group_prefix_type_t
enum igmp_group_prefix_type_t_ igmp_group_prefix_type_t
igmp_group_prefix_type_t_
igmp_group_prefix_type_t_
Definition: igmp_ssm_range.h:30
gaddr
vl_api_ip4_address_t gaddr
Definition: igmp.api:70
ctx
long ctx[MAX_CONNS]
Definition: main.c:144
foreach_igmp_group_prefix_type
#define foreach_igmp_group_prefix_type
Make sure this remains in-sync with the .api enum definition.
Definition: igmp_ssm_range.h:26
igmp_group_prefix_set
void igmp_group_prefix_set(const fib_prefix_t *pfx, igmp_group_prefix_type_t type)
Definition: igmp_ssm_range.c:50
walk_rc_t
enum walk_rc_t_ walk_rc_t
Walk return code.
fib_prefix_t_
Aggregate type for a prefix.
Definition: fib_types.h:202
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123