power: fix frequency list buffer validation
[dpdk.git] / examples / ip_pipeline / tap.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2010-2018 Intel Corporation
3  */
4
5 #ifndef _INCLUDE_TAP_H_
6 #define _INCLUDE_TAP_H_
7
8 #include <sys/queue.h>
9
10 #include "common.h"
11
12 struct tap {
13         TAILQ_ENTRY(tap) node;
14         char name[NAME_SIZE];
15         int fd;
16 };
17
18 TAILQ_HEAD(tap_list, tap);
19
20 int
21 tap_init(void);
22
23 struct tap *
24 tap_find(const char *name);
25
26 struct tap *
27 tap_create(const char *name);
28
29 #endif /* _INCLUDE_TAP_H_ */