Xemu [doxygen]
hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
xemu
ethertap.h
Go to the documentation of this file.
1
/* Part of the Xemu project, please visit: https://github.com/lgblgblgb/xemu
2
Copyright (C)2018,2020-2021 LGB (Gábor Lénárt) <lgblgblgb@gmail.com>
3
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; either version 2 of the License, or
7
(at your option) any later version.
8
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
13
14
You should have received a copy of the GNU General Public License
15
along with this program; if not, write to the Free Software
16
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
17
18
#ifndef XEMU_COMMON_ETHERTAP_H_INCLUDED
19
#define XEMU_COMMON_ETHERTAP_H_INCLUDED
20
#ifdef HAVE_ETHERTAP
21
22
#include "
xemu/emutools_basicdefs.h
"
23
24
extern
int
xemu_tuntap_close (
void
);
25
extern
int
xemu_tuntap_alloc (
const
char
*dev_in,
char
*dev_out,
int
dev_out_size,
unsigned
int
flags
);
26
extern
int
xemu_tuntap_read (
void
*buffer,
int
min_size,
int
max_size );
27
extern
int
xemu_tuntap_write (
void
*buffer,
int
size
);
28
extern
int
xemu_tuntap_select (
int
flags
,
int
timeout_usecs );
29
30
31
// for xemu_tuntap_alloc():
32
33
#define XEMU_TUNTAP_IS_TAP 1
34
#define XEMU_TUNTAP_IS_TUN 2
35
#define XEMU_TUNTAP_NO_PI 0x100
36
#define XEMU_TUNTAP_NONBLOCKING_IO 0x200
37
38
// for xemu_tuntap_select:
39
40
#define XEMU_TUNTAP_SELECT_R 1
41
#define XEMU_TUNTAP_SELECT_W 2
42
43
#endif
44
#endif
flags
Uint8 flags
Definition:
z8k1.c:126
emutools_basicdefs.h
size
int size
Definition:
inject.c:37
Generated by
1.8.17