@@ -37,7 +37,7 @@
#include "monitor/monitor.h"
#include "qemu/error-report.h"
#include "qemu/sockets.h"
-#include "slirp/libslirp.h"
+#include "slirp/src/libslirp.h"
#include "chardev/char-fe.h"
#include "sysemu/sysemu.h"
#include "qemu/cutils.h"
@@ -1,36 +1,36 @@
slirp-obj-y = slirp.mo
slirp.mo-objs = \
- arp_table.o \
- bootp.o \
- cksum.o \
- dhcpv6.o \
- dnssearch.o \
- if.o \
- ip6_icmp.o \
- ip6_input.o \
- ip6_output.o \
- ip_icmp.o \
- ip_input.o \
- ip_output.o \
- mbuf.o \
- misc.o \
- ncsi.o \
- ndp_table.o \
- sbuf.o \
- slirp.o \
- socket.o \
- state.o \
- stream.o \
- tcp_input.o \
- tcp_output.o \
- tcp_subr.o \
- tcp_timer.o \
- tftp.o \
- udp.o \
- udp6.o \
- util.o \
- vmstate.o \
+ src/arp_table.o \
+ src/bootp.o \
+ src/cksum.o \
+ src/dhcpv6.o \
+ src/dnssearch.o \
+ src/if.o \
+ src/ip6_icmp.o \
+ src/ip6_input.o \
+ src/ip6_output.o \
+ src/ip_icmp.o \
+ src/ip_input.o \
+ src/ip_output.o \
+ src/mbuf.o \
+ src/misc.o \
+ src/ncsi.o \
+ src/ndp_table.o \
+ src/sbuf.o \
+ src/slirp.o \
+ src/socket.o \
+ src/state.o \
+ src/stream.o \
+ src/tcp_input.o \
+ src/tcp_output.o \
+ src/tcp_subr.o \
+ src/tcp_timer.o \
+ src/tftp.o \
+ src/udp.o \
+ src/udp6.o \
+ src/util.o \
+ src/vmstate.o \
$(NULL)
slirp.mo-cflags = -DG_LOG_DOMAIN=\"Slirp\"
similarity index 100%
rename from slirp/arp_table.c
rename to slirp/src/arp_table.c
similarity index 100%
rename from slirp/bootp.c
rename to slirp/src/bootp.c
similarity index 100%
rename from slirp/bootp.h
rename to slirp/src/bootp.h
similarity index 100%
rename from slirp/cksum.c
rename to slirp/src/cksum.c
similarity index 100%
rename from slirp/debug.h
rename to slirp/src/debug.h
similarity index 100%
rename from slirp/dhcpv6.c
rename to slirp/src/dhcpv6.c
similarity index 100%
rename from slirp/dhcpv6.h
rename to slirp/src/dhcpv6.h
similarity index 100%
rename from slirp/dnssearch.c
rename to slirp/src/dnssearch.c
similarity index 100%
rename from slirp/if.c
rename to slirp/src/if.c
similarity index 100%
rename from slirp/if.h
rename to slirp/src/if.h
similarity index 100%
rename from slirp/ip.h
rename to slirp/src/ip.h
similarity index 100%
rename from slirp/ip6.h
rename to slirp/src/ip6.h
similarity index 100%
rename from slirp/ip6_icmp.c
rename to slirp/src/ip6_icmp.c
similarity index 100%
rename from slirp/ip6_icmp.h
rename to slirp/src/ip6_icmp.h
similarity index 100%
rename from slirp/ip6_input.c
rename to slirp/src/ip6_input.c
similarity index 100%
rename from slirp/ip6_output.c
rename to slirp/src/ip6_output.c
similarity index 100%
rename from slirp/ip_icmp.c
rename to slirp/src/ip_icmp.c
similarity index 100%
rename from slirp/ip_icmp.h
rename to slirp/src/ip_icmp.h
similarity index 100%
rename from slirp/ip_input.c
rename to slirp/src/ip_input.c
similarity index 100%
rename from slirp/ip_output.c
rename to slirp/src/ip_output.c
similarity index 100%
rename from slirp/libslirp.h
rename to slirp/src/libslirp.h
similarity index 100%
rename from slirp/main.h
rename to slirp/src/main.h
similarity index 100%
rename from slirp/mbuf.c
rename to slirp/src/mbuf.c
similarity index 100%
rename from slirp/mbuf.h
rename to slirp/src/mbuf.h
similarity index 100%
rename from slirp/misc.c
rename to slirp/src/misc.c
similarity index 100%
rename from slirp/misc.h
rename to slirp/src/misc.h
similarity index 100%
rename from slirp/ncsi-pkt.h
rename to slirp/src/ncsi-pkt.h
similarity index 100%
rename from slirp/ncsi.c
rename to slirp/src/ncsi.c
similarity index 100%
rename from slirp/ndp_table.c
rename to slirp/src/ndp_table.c
similarity index 100%
rename from slirp/qtailq.h
rename to slirp/src/qtailq.h
similarity index 100%
rename from slirp/sbuf.c
rename to slirp/src/sbuf.c
similarity index 100%
rename from slirp/sbuf.h
rename to slirp/src/sbuf.h
similarity index 100%
rename from slirp/slirp.c
rename to slirp/src/slirp.c
similarity index 100%
rename from slirp/slirp.h
rename to slirp/src/slirp.h
similarity index 100%
rename from slirp/socket.c
rename to slirp/src/socket.c
similarity index 100%
rename from slirp/socket.h
rename to slirp/src/socket.h
similarity index 100%
rename from slirp/state.c
rename to slirp/src/state.c
similarity index 100%
rename from slirp/state.h
rename to slirp/src/state.h
similarity index 100%
rename from slirp/stream.c
rename to slirp/src/stream.c
similarity index 100%
rename from slirp/stream.h
rename to slirp/src/stream.h
similarity index 100%
rename from slirp/tcp.h
rename to slirp/src/tcp.h
similarity index 100%
rename from slirp/tcp_input.c
rename to slirp/src/tcp_input.c
similarity index 100%
rename from slirp/tcp_output.c
rename to slirp/src/tcp_output.c
similarity index 100%
rename from slirp/tcp_subr.c
rename to slirp/src/tcp_subr.c
similarity index 100%
rename from slirp/tcp_timer.c
rename to slirp/src/tcp_timer.c
similarity index 100%
rename from slirp/tcp_timer.h
rename to slirp/src/tcp_timer.h
similarity index 100%
rename from slirp/tcp_var.h
rename to slirp/src/tcp_var.h
similarity index 100%
rename from slirp/tcpip.h
rename to slirp/src/tcpip.h
similarity index 100%
rename from slirp/tftp.c
rename to slirp/src/tftp.c
similarity index 100%
rename from slirp/tftp.h
rename to slirp/src/tftp.h
similarity index 100%
rename from slirp/udp.c
rename to slirp/src/udp.c
similarity index 100%
rename from slirp/udp.h
rename to slirp/src/udp.h
similarity index 100%
rename from slirp/udp6.c
rename to slirp/src/udp6.c
similarity index 100%
rename from slirp/util.c
rename to slirp/src/util.c
similarity index 100%
rename from slirp/util.h
rename to slirp/src/util.h
similarity index 100%
rename from slirp/vmstate.c
rename to slirp/src/vmstate.c
similarity index 100%
rename from slirp/vmstate.h
rename to slirp/src/vmstate.h
@@ -26,11 +26,9 @@
#include "qapi/error.h"
#include "qemu/cutils.h"
#include "qemu/timer.h"
-#include "qemu/sockets.h" // struct in_addr needed for libslirp.h
#include "sysemu/qtest.h"
#include "sysemu/cpus.h"
#include "sysemu/replay.h"
-#include "slirp/libslirp.h"
#include "qemu/main-loop.h"
#include "block/aio.h"
#include "qemu/error-report.h"
@@ -106,9 +106,6 @@ int main(int argc, char **argv)
#include "disas/disas.h"
-
-#include "slirp/libslirp.h"
-
#include "trace-root.h"
#include "trace/control.h"
#include "qemu/queue.h"