root / net / tap-haiku.c @ eac29d87
History | View | Annotate | Download (1.7 kB)
1 | 3ee66dfa | Andreas Färber | /*
|
---|---|---|---|
2 | 3ee66dfa | Andreas Färber | * QEMU System Emulator
|
3 | 3ee66dfa | Andreas Färber | *
|
4 | 3ee66dfa | Andreas Färber | * Copyright (c) 2003-2008 Fabrice Bellard
|
5 | 3ee66dfa | Andreas Färber | *
|
6 | 3ee66dfa | Andreas Färber | * Permission is hereby granted, free of charge, to any person obtaining a copy
|
7 | 3ee66dfa | Andreas Färber | * of this software and associated documentation files (the "Software"), to deal
|
8 | 3ee66dfa | Andreas Färber | * in the Software without restriction, including without limitation the rights
|
9 | 3ee66dfa | Andreas Färber | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10 | 3ee66dfa | Andreas Färber | * copies of the Software, and to permit persons to whom the Software is
|
11 | 3ee66dfa | Andreas Färber | * furnished to do so, subject to the following conditions:
|
12 | 3ee66dfa | Andreas Färber | *
|
13 | 3ee66dfa | Andreas Färber | * The above copyright notice and this permission notice shall be included in
|
14 | 3ee66dfa | Andreas Färber | * all copies or substantial portions of the Software.
|
15 | 3ee66dfa | Andreas Färber | *
|
16 | 3ee66dfa | Andreas Färber | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 | 3ee66dfa | Andreas Färber | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 | 3ee66dfa | Andreas Färber | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 | 3ee66dfa | Andreas Färber | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 | 3ee66dfa | Andreas Färber | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21 | 3ee66dfa | Andreas Färber | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
22 | 3ee66dfa | Andreas Färber | * THE SOFTWARE.
|
23 | 3ee66dfa | Andreas Färber | */
|
24 | 3ee66dfa | Andreas Färber | |
25 | 3ee66dfa | Andreas Färber | #include "net/tap.h" |
26 | 3ee66dfa | Andreas Färber | #include <stdio.h> |
27 | 3ee66dfa | Andreas Färber | |
28 | 3ee66dfa | Andreas Färber | int tap_open(char *ifname, int ifname_size, int *vnet_hdr, int vnet_hdr_required) |
29 | 3ee66dfa | Andreas Färber | { |
30 | 3ee66dfa | Andreas Färber | fprintf(stderr, "no tap on Haiku\n");
|
31 | 3ee66dfa | Andreas Färber | return -1; |
32 | 3ee66dfa | Andreas Färber | } |
33 | 3ee66dfa | Andreas Färber | |
34 | 08c573a8 | Laszlo Ersek | int tap_set_sndbuf(int fd, const NetdevTapOptions *tap) |
35 | 3ee66dfa | Andreas Färber | { |
36 | 3ee66dfa | Andreas Färber | return 0; |
37 | 3ee66dfa | Andreas Färber | } |
38 | 3ee66dfa | Andreas Färber | |
39 | 3ee66dfa | Andreas Färber | int tap_probe_vnet_hdr(int fd) |
40 | 3ee66dfa | Andreas Färber | { |
41 | 3ee66dfa | Andreas Färber | return 0; |
42 | 3ee66dfa | Andreas Färber | } |
43 | 3ee66dfa | Andreas Färber | |
44 | 3ee66dfa | Andreas Färber | int tap_probe_has_ufo(int fd) |
45 | 3ee66dfa | Andreas Färber | { |
46 | 3ee66dfa | Andreas Färber | return 0; |
47 | 3ee66dfa | Andreas Färber | } |
48 | 3ee66dfa | Andreas Färber | |
49 | 3ee66dfa | Andreas Färber | int tap_probe_vnet_hdr_len(int fd, int len) |
50 | 3ee66dfa | Andreas Färber | { |
51 | 3ee66dfa | Andreas Färber | return 0; |
52 | 3ee66dfa | Andreas Färber | } |
53 | 3ee66dfa | Andreas Färber | |
54 | 3ee66dfa | Andreas Färber | void tap_fd_set_vnet_hdr_len(int fd, int len) |
55 | 3ee66dfa | Andreas Färber | { |
56 | 3ee66dfa | Andreas Färber | } |
57 | 3ee66dfa | Andreas Färber | |
58 | 3ee66dfa | Andreas Färber | void tap_fd_set_offload(int fd, int csum, int tso4, |
59 | 3ee66dfa | Andreas Färber | int tso6, int ecn, int ufo) |
60 | 3ee66dfa | Andreas Färber | { |
61 | 3ee66dfa | Andreas Färber | } |