FD.io VPP
v17.01.1-3-gc6833f8
Vector Packet Processing
Main Page
Related Pages
Data Structures
Source
Files
Symbols
span.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2016 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
16
#ifndef __span_h__
17
#define __span_h__
18
19
#include <
vnet/vnet.h
>
20
#include <
vnet/ip/ip.h
>
21
22
typedef
struct
23
{
24
clib_bitmap_t
*
rx_mirror_ports
;
25
clib_bitmap_t
*
tx_mirror_ports
;
26
u32
num_rx_mirror_ports
;
27
u32
num_tx_mirror_ports
;
28
}
span_interface_t
;
29
30
typedef
struct
31
{
32
/* per-interface vector of span instances */
33
span_interface_t
*
interfaces
;
34
35
/* biggest sw_if_index used so far */
36
u32
max_sw_if_index
;
37
38
/* convenience */
39
vlib_main_t
*
vlib_main
;
40
vnet_main_t
*
vnet_main
;
41
}
span_main_t
;
42
43
span_main_t
span_main
;
44
45
typedef
struct
46
{
47
u32
src_sw_if_index
;
/* mirrored interface index */
48
u32
mirror_sw_if_index
;
/* output interface index */
49
}
span_trace_t
;
50
51
#endif
/* __span_h__ */
52
53
int
54
span_add_delete_entry
(
vlib_main_t
* vm,
u32
src_sw_if_index,
55
u32
dst_sw_if_index,
u8
is_add);
56
/*
57
* fd.io coding-style-patch-verification: ON
58
*
59
* Local Variables:
60
* eval: (c-set-style "gnu")
61
* End:
62
*/
span_main_t::vlib_main
vlib_main_t * vlib_main
Definition:
span.h:39
span_trace_t::mirror_sw_if_index
u32 mirror_sw_if_index
Definition:
span.h:48
ip.h
span_main_t
Definition:
span.h:30
span_main_t::interfaces
span_interface_t * interfaces
Definition:
span.h:33
span_main_t::vnet_main
vnet_main_t * vnet_main
Definition:
span.h:40
span_main
span_main_t span_main
Definition:
span.h:43
vnet.h
span_interface_t::tx_mirror_ports
clib_bitmap_t * tx_mirror_ports
Definition:
span.h:25
span_add_delete_entry
int span_add_delete_entry(vlib_main_t *vm, u32 src_sw_if_index, u32 dst_sw_if_index, u8 is_add)
Definition:
span.c:23
vnet_main_t
Definition:
vnet.h:52
u32
unsigned int u32
Definition:
types.h:88
span_interface_t::num_rx_mirror_ports
u32 num_rx_mirror_ports
Definition:
span.h:26
span_trace_t::src_sw_if_index
u32 src_sw_if_index
Definition:
span.h:47
span_interface_t
Definition:
span.h:22
u8
unsigned char u8
Definition:
types.h:56
span_interface_t::num_tx_mirror_ports
u32 num_tx_mirror_ports
Definition:
span.h:27
vlib_main_t
Definition:
main.h:59
span_interface_t::rx_mirror_ports
clib_bitmap_t * rx_mirror_ports
Definition:
span.h:24
clib_bitmap_t
uword clib_bitmap_t
Definition:
bitmap.h:50
span_trace_t
Definition:
span.h:45
span_main_t::max_sw_if_index
u32 max_sw_if_index
Definition:
span.h:36
vnet
vnet
span
span.h
Generated on Mon May 15 2017 22:02:21 for FD.io VPP by
1.8.11