FD.io VPP
v16.06
Vector Packet Processing
Main Page
Related Pages
Data Structures
Source
Files
Symbols
mcast.h
Go to the documentation of this file.
1
/*
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:
6
*
7
* http://www.apache.org/licenses/LICENSE-2.0
8
*
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.
14
*/
15
#ifndef __included_vnet_mcast_h__
16
#define __included_vnet_mcast_h__
17
18
#include <
vnet/vnet.h
>
19
#include <
vlib/buffer.h
>
20
#include <
vlib/buffer_funcs.h
>
21
22
typedef
struct
{
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
;
26
27
/* Show command, etc. */
28
u32
tx_sw_if_index
;
29
}
mcast_group_member_t
;
30
31
typedef
struct
{
32
/* vector of group members */
33
mcast_group_member_t
*
members
;
34
}
mcast_group_t
;
35
36
typedef
struct
{
37
/* pool of multicast (interface) groups */
38
mcast_group_t
*
groups
;
39
40
/* multicast "free" list, aka recycle list */
41
u32
mcast_recycle_list_index
;
42
43
/* convenience */
44
vlib_main_t
*
vlib_main
;
45
vnet_main_t
*
vnet_main
;
46
}
mcast_main_t
;
47
48
mcast_main_t
mcast_main
;
49
50
#endif
/* __included_vnet_mcast_h__ */
mcast_main_t::groups
mcast_group_t * groups
Definition:
mcast.h:38
mcast_main_t::mcast_recycle_list_index
u32 mcast_recycle_list_index
Definition:
mcast.h:41
mcast_group_t::members
mcast_group_member_t * members
Definition:
mcast.h:33
buffer_funcs.h
vlib buffer access methods.
mcast_main
mcast_main_t mcast_main
Definition:
mcast.h:48
vnet.h
mcast_group_member_t::prep_and_recycle_node_next_index
u32 prep_and_recycle_node_next_index
Definition:
mcast.h:25
vnet_main_t
Definition:
vnet.h:58
u32
unsigned int u32
Definition:
types.h:88
mcast_group_member_t
Definition:
mcast.h:22
mcast_group_member_t::tx_sw_if_index
u32 tx_sw_if_index
Definition:
mcast.h:28
mcast_main_t::vnet_main
vnet_main_t * vnet_main
Definition:
mcast.h:45
mcast_group_t
Definition:
mcast.h:31
vlib_main_t
Definition:
main.h:59
mcast_main_t
Definition:
mcast.h:36
mcast_main_t::vlib_main
vlib_main_t * vlib_main
Definition:
mcast.h:44
buffer.h
vlib buffer structure definition and a few select access methods.
vnet
vnet
mcast
mcast.h
Generated on Thu Sep 1 2016 09:11:44 for FD.io VPP by
1.8.11