mirror of
https://github.com/qemu/qemu.git
synced 2024-12-21 19:23:33 +08:00
slirp: replace net/eth.h inclusion with own defines
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
This commit is contained in:
parent
e44203db9d
commit
c1c5c0ff9e
@ -7,7 +7,6 @@
|
||||
#define SLIRP_IP6_H
|
||||
|
||||
#include <glib.h>
|
||||
#include "net/eth.h"
|
||||
|
||||
#define ALLNODES_MULTICAST { .s6_addr = \
|
||||
{ 0xff, 0x02, 0x00, 0x00,\
|
||||
|
@ -48,7 +48,6 @@ typedef char *caddr_t;
|
||||
#include "util.h"
|
||||
|
||||
#include "qemu/queue.h"
|
||||
#include "net/eth.h"
|
||||
|
||||
#include "libslirp.h"
|
||||
#include "ip.h"
|
||||
|
10
slirp/util.h
10
slirp/util.h
@ -50,6 +50,16 @@
|
||||
|
||||
#define SCALE_MS 1000000
|
||||
|
||||
#define ETH_ALEN 6
|
||||
#define ETH_HLEN 14
|
||||
#define ETH_P_IP (0x0800) /* Internet Protocol packet */
|
||||
#define ETH_P_ARP (0x0806) /* Address Resolution packet */
|
||||
#define ETH_P_IPV6 (0x86dd)
|
||||
#define ETH_P_VLAN (0x8100)
|
||||
#define ETH_P_DVLAN (0x88a8)
|
||||
#define ETH_P_NCSI (0x88f8)
|
||||
#define ETH_P_UNKNOWN (0xffff)
|
||||
|
||||
#ifdef _WIN32
|
||||
int slirp_closesocket(int fd);
|
||||
int slirp_ioctlsocket(int fd, int req, void *val);
|
||||
|
Loading…
Reference in New Issue
Block a user