3 * oddbuf.h - awkward chained buffer geometry test tool
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:
10 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 #ifndef __included_oddbuf_h__
19 #define __included_oddbuf_h__
21 #include <vnet/vnet.h>
22 #include <vnet/ip/ip.h>
23 #include <vnet/ethernet/ethernet.h>
25 #include <vppinfra/hash.h>
26 #include <vppinfra/error.h>
30 /* API message ID base */
33 /* on/off switch for the periodic function */
34 u8 periodic_timer_enabled;
36 /* config parameters */
38 int second_chunk_offset;
39 int first_chunk_offset;
42 vlib_main_t *vlib_main;
43 vnet_main_t *vnet_main;
44 ethernet_main_t *ethernet_main;
47 extern oddbuf_main_t oddbuf_main;
49 extern vlib_node_registration_t oddbuf_node;
51 #endif /* __included_oddbuf_h__ */
54 * fd.io coding-style-patch-verification: ON
57 * eval: (c-set-style "gnu")