2 * Copyright (c) 2015 Cisco and/or its affiliates.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at:
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
15 #ifndef __included_vnet_mcast_h__
16 #define __included_vnet_mcast_h__
18 #include <vnet/vnet.h>
19 #include <vlib/buffer.h>
20 #include <vlib/buffer_funcs.h>
23 /* Arrange for both prep and recycle nodes to have identical
24 next indices for a given output interface */
25 u32 prep_and_recycle_node_next_index;
27 /* Show command, etc. */
29 } mcast_group_member_t;
32 /* vector of group members */
33 mcast_group_member_t * members;
37 /* pool of multicast (interface) groups */
38 mcast_group_t * groups;
40 /* multicast "free" list, aka recycle list */
41 u32 mcast_recycle_list_index;
44 vlib_main_t * vlib_main;
45 vnet_main_t * vnet_main;
48 mcast_main_t mcast_main;
50 #endif /* __included_vnet_mcast_h__ */