summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2019-02-12 17:25:21 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2019-03-07 12:46:31 +0100
commitc2d63650d962612cfa1b21302782d4cd12142c74 (patch)
tree13f97c3ecbf6a6588f579e9f7c2ab9cb5f3ce5ec
parent5a4af0d4ee6084fdfde0125c45181fa0e6f48a17 (diff)
downloadqemu-c2d63650d962612cfa1b21302782d4cd12142c74.zip
slirp: move sources to src/ subdirectory
Prepare for making slirp/ a standalone project. Remove some useless includes while at it. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20190212162524.31504-5-marcandre.lureau@redhat.com> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
-rw-r--r--net/slirp.c2
-rw-r--r--slirp/Makefile.objs60
-rw-r--r--slirp/src/arp_table.c (renamed from slirp/arp_table.c)0
-rw-r--r--slirp/src/bootp.c (renamed from slirp/bootp.c)0
-rw-r--r--slirp/src/bootp.h (renamed from slirp/bootp.h)0
-rw-r--r--slirp/src/cksum.c (renamed from slirp/cksum.c)0
-rw-r--r--slirp/src/debug.h (renamed from slirp/debug.h)0
-rw-r--r--slirp/src/dhcpv6.c (renamed from slirp/dhcpv6.c)0
-rw-r--r--slirp/src/dhcpv6.h (renamed from slirp/dhcpv6.h)0
-rw-r--r--slirp/src/dnssearch.c (renamed from slirp/dnssearch.c)0
-rw-r--r--slirp/src/if.c (renamed from slirp/if.c)0
-rw-r--r--slirp/src/if.h (renamed from slirp/if.h)0
-rw-r--r--slirp/src/ip.h (renamed from slirp/ip.h)0
-rw-r--r--slirp/src/ip6.h (renamed from slirp/ip6.h)0
-rw-r--r--slirp/src/ip6_icmp.c (renamed from slirp/ip6_icmp.c)0
-rw-r--r--slirp/src/ip6_icmp.h (renamed from slirp/ip6_icmp.h)0
-rw-r--r--slirp/src/ip6_input.c (renamed from slirp/ip6_input.c)0
-rw-r--r--slirp/src/ip6_output.c (renamed from slirp/ip6_output.c)0
-rw-r--r--slirp/src/ip_icmp.c (renamed from slirp/ip_icmp.c)0
-rw-r--r--slirp/src/ip_icmp.h (renamed from slirp/ip_icmp.h)0
-rw-r--r--slirp/src/ip_input.c (renamed from slirp/ip_input.c)0
-rw-r--r--slirp/src/ip_output.c (renamed from slirp/ip_output.c)0
-rw-r--r--slirp/src/libslirp.h (renamed from slirp/libslirp.h)0
-rw-r--r--slirp/src/main.h (renamed from slirp/main.h)0
-rw-r--r--slirp/src/mbuf.c (renamed from slirp/mbuf.c)0
-rw-r--r--slirp/src/mbuf.h (renamed from slirp/mbuf.h)0
-rw-r--r--slirp/src/misc.c (renamed from slirp/misc.c)0
-rw-r--r--slirp/src/misc.h (renamed from slirp/misc.h)0
-rw-r--r--slirp/src/ncsi-pkt.h (renamed from slirp/ncsi-pkt.h)0
-rw-r--r--slirp/src/ncsi.c (renamed from slirp/ncsi.c)0
-rw-r--r--slirp/src/ndp_table.c (renamed from slirp/ndp_table.c)0
-rw-r--r--slirp/src/qtailq.h (renamed from slirp/qtailq.h)0
-rw-r--r--slirp/src/sbuf.c (renamed from slirp/sbuf.c)0
-rw-r--r--slirp/src/sbuf.h (renamed from slirp/sbuf.h)0
-rw-r--r--slirp/src/slirp.c (renamed from slirp/slirp.c)0
-rw-r--r--slirp/src/slirp.h (renamed from slirp/slirp.h)0
-rw-r--r--slirp/src/socket.c (renamed from slirp/socket.c)0
-rw-r--r--slirp/src/socket.h (renamed from slirp/socket.h)0
-rw-r--r--slirp/src/state.c (renamed from slirp/state.c)0
-rw-r--r--slirp/src/state.h (renamed from slirp/state.h)0
-rw-r--r--slirp/src/stream.c (renamed from slirp/stream.c)0
-rw-r--r--slirp/src/stream.h (renamed from slirp/stream.h)0
-rw-r--r--slirp/src/tcp.h (renamed from slirp/tcp.h)0
-rw-r--r--slirp/src/tcp_input.c (renamed from slirp/tcp_input.c)0
-rw-r--r--slirp/src/tcp_output.c (renamed from slirp/tcp_output.c)0
-rw-r--r--slirp/src/tcp_subr.c (renamed from slirp/tcp_subr.c)0
-rw-r--r--slirp/src/tcp_timer.c (renamed from slirp/tcp_timer.c)0
-rw-r--r--slirp/src/tcp_timer.h (renamed from slirp/tcp_timer.h)0
-rw-r--r--slirp/src/tcp_var.h (renamed from slirp/tcp_var.h)0
-rw-r--r--slirp/src/tcpip.h (renamed from slirp/tcpip.h)0
-rw-r--r--slirp/src/tftp.c (renamed from slirp/tftp.c)0
-rw-r--r--slirp/src/tftp.h (renamed from slirp/tftp.h)0
-rw-r--r--slirp/src/udp.c (renamed from slirp/udp.c)0
-rw-r--r--slirp/src/udp.h (renamed from slirp/udp.h)0
-rw-r--r--slirp/src/udp6.c (renamed from slirp/udp6.c)0
-rw-r--r--slirp/src/util.c (renamed from slirp/util.c)0
-rw-r--r--slirp/src/util.h (renamed from slirp/util.h)0
-rw-r--r--slirp/src/vmstate.c (renamed from slirp/vmstate.c)0
-rw-r--r--slirp/src/vmstate.h (renamed from slirp/vmstate.h)0
-rw-r--r--util/main-loop.c2
-rw-r--r--vl.c3
61 files changed, 31 insertions, 36 deletions
diff --git a/net/slirp.c b/net/slirp.c
index 059b2d9b08..d2f2138bc5 100644
--- a/net/slirp.c
+++ b/net/slirp.c
@@ -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"
diff --git a/slirp/Makefile.objs b/slirp/Makefile.objs
index e91daf0e91..0250229dfa 100644
--- a/slirp/Makefile.objs
+++ b/slirp/Makefile.objs
@@ -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\"
diff --git a/slirp/arp_table.c b/slirp/src/arp_table.c
index 58eafdcfd8..58eafdcfd8 100644
--- a/slirp/arp_table.c
+++ b/slirp/src/arp_table.c
diff --git a/slirp/bootp.c b/slirp/src/bootp.c
index d396849a05..d396849a05 100644
--- a/slirp/bootp.c
+++ b/slirp/src/bootp.c
diff --git a/slirp/bootp.h b/slirp/src/bootp.h
index 4043489835..4043489835 100644
--- a/slirp/bootp.h
+++ b/slirp/src/bootp.h
diff --git a/slirp/cksum.c b/slirp/src/cksum.c
index 25bfa67348..25bfa67348 100644
--- a/slirp/cksum.c
+++ b/slirp/src/cksum.c
diff --git a/slirp/debug.h b/slirp/src/debug.h
index 44d922df37..44d922df37 100644
--- a/slirp/debug.h
+++ b/slirp/src/debug.h
diff --git a/slirp/dhcpv6.c b/slirp/src/dhcpv6.c
index e655c7d5b1..e655c7d5b1 100644
--- a/slirp/dhcpv6.c
+++ b/slirp/src/dhcpv6.c
diff --git a/slirp/dhcpv6.h b/slirp/src/dhcpv6.h
index 3373f6cb89..3373f6cb89 100644
--- a/slirp/dhcpv6.h
+++ b/slirp/src/dhcpv6.h
diff --git a/slirp/dnssearch.c b/slirp/src/dnssearch.c
index c459cece8d..c459cece8d 100644
--- a/slirp/dnssearch.c
+++ b/slirp/src/dnssearch.c
diff --git a/slirp/if.c b/slirp/src/if.c
index 1830cc396c..1830cc396c 100644
--- a/slirp/if.c
+++ b/slirp/src/if.c
diff --git a/slirp/if.h b/slirp/src/if.h
index 69569c10df..69569c10df 100644
--- a/slirp/if.h
+++ b/slirp/src/if.h
diff --git a/slirp/ip.h b/slirp/src/ip.h
index 73a4d2a3d2..73a4d2a3d2 100644
--- a/slirp/ip.h
+++ b/slirp/src/ip.h
diff --git a/slirp/ip6.h b/slirp/src/ip6.h
index 1b3364f960..1b3364f960 100644
--- a/slirp/ip6.h
+++ b/slirp/src/ip6.h
diff --git a/slirp/ip6_icmp.c b/slirp/src/ip6_icmp.c
index c1e3d30470..c1e3d30470 100644
--- a/slirp/ip6_icmp.c
+++ b/slirp/src/ip6_icmp.c
diff --git a/slirp/ip6_icmp.h b/slirp/src/ip6_icmp.h
index e8ed753db5..e8ed753db5 100644
--- a/slirp/ip6_icmp.h
+++ b/slirp/src/ip6_icmp.h
diff --git a/slirp/ip6_input.c b/slirp/src/ip6_input.c
index 1b8c003c66..1b8c003c66 100644
--- a/slirp/ip6_input.c
+++ b/slirp/src/ip6_input.c
diff --git a/slirp/ip6_output.c b/slirp/src/ip6_output.c
index 19d1ae7748..19d1ae7748 100644
--- a/slirp/ip6_output.c
+++ b/slirp/src/ip6_output.c
diff --git a/slirp/ip_icmp.c b/slirp/src/ip_icmp.c
index 120108f582..120108f582 100644
--- a/slirp/ip_icmp.c
+++ b/slirp/src/ip_icmp.c
diff --git a/slirp/ip_icmp.h b/slirp/src/ip_icmp.h
index a4e5b8b265..a4e5b8b265 100644
--- a/slirp/ip_icmp.h
+++ b/slirp/src/ip_icmp.h
diff --git a/slirp/ip_input.c b/slirp/src/ip_input.c
index e0b94b0e42..e0b94b0e42 100644
--- a/slirp/ip_input.c
+++ b/slirp/src/ip_input.c
diff --git a/slirp/ip_output.c b/slirp/src/ip_output.c
index f6ec141df5..f6ec141df5 100644
--- a/slirp/ip_output.c
+++ b/slirp/src/ip_output.c
diff --git a/slirp/libslirp.h b/slirp/src/libslirp.h
index 2d13950065..2d13950065 100644
--- a/slirp/libslirp.h
+++ b/slirp/src/libslirp.h
diff --git a/slirp/main.h b/slirp/src/main.h
index f11d4572b7..f11d4572b7 100644
--- a/slirp/main.h
+++ b/slirp/src/main.h
diff --git a/slirp/mbuf.c b/slirp/src/mbuf.c
index 521c02c967..521c02c967 100644
--- a/slirp/mbuf.c
+++ b/slirp/src/mbuf.c
diff --git a/slirp/mbuf.h b/slirp/src/mbuf.h
index e2d443418a..e2d443418a 100644
--- a/slirp/mbuf.h
+++ b/slirp/src/mbuf.h
diff --git a/slirp/misc.c b/slirp/src/misc.c
index 937a418d4e..937a418d4e 100644
--- a/slirp/misc.c
+++ b/slirp/src/misc.c
diff --git a/slirp/misc.h b/slirp/src/misc.h
index c2ceadb591..c2ceadb591 100644
--- a/slirp/misc.h
+++ b/slirp/src/misc.h
diff --git a/slirp/ncsi-pkt.h b/slirp/src/ncsi-pkt.h
index ea07d1cd0f..ea07d1cd0f 100644
--- a/slirp/ncsi-pkt.h
+++ b/slirp/src/ncsi-pkt.h
diff --git a/slirp/ncsi.c b/slirp/src/ncsi.c
index 359f52c284..359f52c284 100644
--- a/slirp/ncsi.c
+++ b/slirp/src/ncsi.c
diff --git a/slirp/ndp_table.c b/slirp/src/ndp_table.c
index 34ea4fdf1f..34ea4fdf1f 100644
--- a/slirp/ndp_table.c
+++ b/slirp/src/ndp_table.c
diff --git a/slirp/qtailq.h b/slirp/src/qtailq.h
index a89b0c439a..a89b0c439a 100644
--- a/slirp/qtailq.h
+++ b/slirp/src/qtailq.h
diff --git a/slirp/sbuf.c b/slirp/src/sbuf.c
index 51a9f0cc7d..51a9f0cc7d 100644
--- a/slirp/sbuf.c
+++ b/slirp/src/sbuf.c
diff --git a/slirp/sbuf.h b/slirp/src/sbuf.h
index 1cb9a42834..1cb9a42834 100644
--- a/slirp/sbuf.h
+++ b/slirp/src/sbuf.h
diff --git a/slirp/slirp.c b/slirp/src/slirp.c
index 18af670a0a..18af670a0a 100644
--- a/slirp/slirp.c
+++ b/slirp/src/slirp.c
diff --git a/slirp/slirp.h b/slirp/src/slirp.h
index 8068ba1d1e..8068ba1d1e 100644
--- a/slirp/slirp.h
+++ b/slirp/src/slirp.h
diff --git a/slirp/socket.c b/slirp/src/socket.c
index f2428a3ae8..f2428a3ae8 100644
--- a/slirp/socket.c
+++ b/slirp/src/socket.c
diff --git a/slirp/socket.h b/slirp/src/socket.h
index e4d12cd591..e4d12cd591 100644
--- a/slirp/socket.h
+++ b/slirp/src/socket.h
diff --git a/slirp/state.c b/slirp/src/state.c
index f5dd80cdc8..f5dd80cdc8 100644
--- a/slirp/state.c
+++ b/slirp/src/state.c
diff --git a/slirp/state.h b/slirp/src/state.h
index e69de29bb2..e69de29bb2 100644
--- a/slirp/state.h
+++ b/slirp/src/state.h
diff --git a/slirp/stream.c b/slirp/src/stream.c
index d114dde334..d114dde334 100644
--- a/slirp/stream.c
+++ b/slirp/src/stream.c
diff --git a/slirp/stream.h b/slirp/src/stream.h
index 985334c043..985334c043 100644
--- a/slirp/stream.h
+++ b/slirp/src/stream.h
diff --git a/slirp/tcp.h b/slirp/src/tcp.h
index 47aaea6c5b..47aaea6c5b 100644
--- a/slirp/tcp.h
+++ b/slirp/src/tcp.h
diff --git a/slirp/tcp_input.c b/slirp/src/tcp_input.c
index b10477fc57..b10477fc57 100644
--- a/slirp/tcp_input.c
+++ b/slirp/src/tcp_input.c
diff --git a/slirp/tcp_output.c b/slirp/src/tcp_output.c
index e9674df121..e9674df121 100644
--- a/slirp/tcp_output.c
+++ b/slirp/src/tcp_output.c
diff --git a/slirp/tcp_subr.c b/slirp/src/tcp_subr.c
index 1db59caa89..1db59caa89 100644
--- a/slirp/tcp_subr.c
+++ b/slirp/src/tcp_subr.c
diff --git a/slirp/tcp_timer.c b/slirp/src/tcp_timer.c
index 7be54570af..7be54570af 100644
--- a/slirp/tcp_timer.c
+++ b/slirp/src/tcp_timer.c
diff --git a/slirp/tcp_timer.h b/slirp/src/tcp_timer.h
index b25b3911d7..b25b3911d7 100644
--- a/slirp/tcp_timer.h
+++ b/slirp/src/tcp_timer.h
diff --git a/slirp/tcp_var.h b/slirp/src/tcp_var.h
index 27ef1a51cb..27ef1a51cb 100644
--- a/slirp/tcp_var.h
+++ b/slirp/src/tcp_var.h
diff --git a/slirp/tcpip.h b/slirp/src/tcpip.h
index 07dbf2c432..07dbf2c432 100644
--- a/slirp/tcpip.h
+++ b/slirp/src/tcpip.h
diff --git a/slirp/tftp.c b/slirp/src/tftp.c
index 2d8f978786..2d8f978786 100644
--- a/slirp/tftp.c
+++ b/slirp/src/tftp.c
diff --git a/slirp/tftp.h b/slirp/src/tftp.h
index a4c4a64e64..a4c4a64e64 100644
--- a/slirp/tftp.h
+++ b/slirp/src/tftp.h
diff --git a/slirp/udp.c b/slirp/src/udp.c
index fa9f4a08bd..fa9f4a08bd 100644
--- a/slirp/udp.c
+++ b/slirp/src/udp.c
diff --git a/slirp/udp.h b/slirp/src/udp.h
index 3d29504caa..3d29504caa 100644
--- a/slirp/udp.h
+++ b/slirp/src/udp.h
diff --git a/slirp/udp6.c b/slirp/src/udp6.c
index be5cba1f54..be5cba1f54 100644
--- a/slirp/udp6.c
+++ b/slirp/src/udp6.c
diff --git a/slirp/util.c b/slirp/src/util.c
index 5ec2fa87ab..5ec2fa87ab 100644
--- a/slirp/util.c
+++ b/slirp/src/util.c
diff --git a/slirp/util.h b/slirp/src/util.h
index e94ee4e7f1..e94ee4e7f1 100644
--- a/slirp/util.h
+++ b/slirp/src/util.h
diff --git a/slirp/vmstate.c b/slirp/src/vmstate.c
index 4d08b47c61..4d08b47c61 100644
--- a/slirp/vmstate.c
+++ b/slirp/src/vmstate.c
diff --git a/slirp/vmstate.h b/slirp/src/vmstate.h
index cfa7b8c825..cfa7b8c825 100644
--- a/slirp/vmstate.h
+++ b/slirp/src/vmstate.h
diff --git a/util/main-loop.c b/util/main-loop.c
index d4a521caeb..e1e349ca5c 100644
--- a/util/main-loop.c
+++ b/util/main-loop.c
@@ -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"
diff --git a/vl.c b/vl.c
index 4c5cc0d8ad..4a350de5cd 100644
--- a/vl.c
+++ b/vl.c
@@ -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"