FD.io VPP
v21.01.1
Vector Packet Processing
oddbuf.h
Go to the documentation of this file.
1
2
/*
3
* oddbuf.h - awkward chained buffer geometry test tool
4
*
5
* Copyright (c) 2019 by Cisco and/or its affiliates.
6
* Licensed under the Apache License, Version 2.0 (the "License");
7
* you may not use this file except in compliance with the License.
8
* You may obtain a copy of the License at:
9
*
10
* http://www.apache.org/licenses/LICENSE-2.0
11
*
12
* Unless required by applicable law or agreed to in writing, software
13
* distributed under the License is distributed on an "AS IS" BASIS,
14
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
* See the License for the specific language governing permissions and
16
* limitations under the License.
17
*/
18
#ifndef __included_oddbuf_h__
19
#define __included_oddbuf_h__
20
21
#include <
vnet/vnet.h
>
22
#include <
vnet/ip/ip.h
>
23
#include <
vnet/ethernet/ethernet.h
>
24
25
#include <
vppinfra/hash.h
>
26
#include <
vppinfra/error.h
>
27
28
typedef
struct
29
{
30
/* API message ID base */
31
u16
msg_id_base
;
32
33
/* on/off switch for the periodic function */
34
u8
periodic_timer_enabled
;
35
36
/* config parameters */
37
int
n_to_copy
;
38
int
second_chunk_offset
;
39
int
first_chunk_offset
;
40
41
/* convenience */
42
vlib_main_t
*
vlib_main
;
43
vnet_main_t
*
vnet_main
;
44
ethernet_main_t
*
ethernet_main
;
45
}
oddbuf_main_t
;
46
47
extern
oddbuf_main_t
oddbuf_main
;
48
49
extern
vlib_node_registration_t
oddbuf_node
;
50
51
#endif
/* __included_oddbuf_h__ */
52
53
/*
54
* fd.io coding-style-patch-verification: ON
55
*
56
* Local Variables:
57
* eval: (c-set-style "gnu")
58
* End:
59
*/
oddbuf_main_t::msg_id_base
u16 msg_id_base
Definition:
oddbuf.h:31
oddbuf_node
vlib_node_registration_t oddbuf_node
(constructor) VLIB_REGISTER_NODE (oddbuf_node)
Definition:
node.c:44
oddbuf_main_t::vlib_main
vlib_main_t * vlib_main
Definition:
oddbuf.h:42
ethernet_main_t_
Definition:
ethernet.h:289
ip.h
u8
unsigned char u8
Definition:
types.h:56
hash.h
oddbuf_main_t::vnet_main
vnet_main_t * vnet_main
Definition:
oddbuf.h:43
oddbuf_main_t::ethernet_main
ethernet_main_t * ethernet_main
Definition:
oddbuf.h:44
ethernet.h
u16
unsigned short u16
Definition:
types.h:57
oddbuf_main_t::periodic_timer_enabled
u8 periodic_timer_enabled
Definition:
oddbuf.h:34
oddbuf_main_t::second_chunk_offset
int second_chunk_offset
Definition:
oddbuf.h:38
vnet.h
oddbuf_main_t::first_chunk_offset
int first_chunk_offset
Definition:
oddbuf.h:39
vnet_main_t
Definition:
vnet.h:60
oddbuf_main
oddbuf_main_t oddbuf_main
Definition:
oddbuf.c:34
vlib_node_registration_t
struct _vlib_node_registration vlib_node_registration_t
vlib_main_t
Definition:
main.h:119
oddbuf_main_t
Definition:
oddbuf.h:28
error.h
oddbuf_main_t::n_to_copy
int n_to_copy
Definition:
oddbuf.h:37
src
plugins
oddbuf
oddbuf.h
Generated on Wed Jul 14 2021 16:04:34 for FD.io VPP by
1.8.13