blob: a90bfbce0ad6453b691b26e00cef00c2595e87ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/* Copyright (c) 2015, Ilya Maximets <i.maximets@samsung.com>
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef ODP_PACKET_TAP_H_
#define ODP_PACKET_TAP_H_
#include <odp/api/pool.h>
typedef struct {
int fd; /**< file descriptor for tap interface*/
int skfd; /**< socket descriptor */
uint32_t mtu; /**< cached mtu */
unsigned char if_mac[ETH_ALEN]; /**< MAC address of pktio side (not a
MAC address of kernel interface)*/
odp_pool_t pool; /**< pool to alloc packets from */
} pkt_tap_t;
#endif
|