version 1.1.1.1, 2018/04/24 17:42:33
|
version 1.1.1.2, 2018/04/24 18:32:51
|
Line 23
|
Line 23
|
*/ |
*/ |
|
|
#include "net/tap.h" |
#include "net/tap.h" |
|
#include "sysemu.h" |
|
|
#include <sys/stat.h> |
#include <sys/stat.h> |
#include <sys/ethernet.h> |
#include <sys/ethernet.h> |
Line 185 int tap_open(char *ifname, int ifname_si
|
Line 186 int tap_open(char *ifname, int ifname_si
|
*vnet_hdr = 0; |
*vnet_hdr = 0; |
|
|
if (vnet_hdr_required && !*vnet_hdr) { |
if (vnet_hdr_required && !*vnet_hdr) { |
qemu_error("vnet_hdr=1 requested, but no kernel " |
error_report("vnet_hdr=1 requested, but no kernel " |
"support for IFF_VNET_HDR available"); |
"support for IFF_VNET_HDR available"); |
close(fd); |
close(fd); |
return -1; |
return -1; |
} |
} |