Re: [Qemu-devel] [PATCH RFC 4/4] net/slirp: add ipv6-hostfwd option for user netdev type

2018-10-30 Thread Maxim Samoylov
On 26.10.2018 09:14, Thomas Huth wrote: On 2018-10-26 01:03, Maxim Samoylov wrote: This allows forwarding TCP6 and UDP6 connections down to netdev=user connected guests. Signed-off-by: Maxim Samoylov --- hmp-commands.hx | 31 include/net/slirp.h | 2 + net/slirp.c

Re: [Qemu-devel] [PATCH RFC 1/4] slirp: add helper for tcp6 socket creation

2018-10-30 Thread Maxim Samoylov
sizeof(in6addr_loopback))) { memcpy(>so_faddr6, >vhost_addr6, sizeof(slirp->vhost_addr6)); } } modulo all typos etc. I may have done. Maxim Samoylov, le ven. 26 oct. 2018 03:03:40 +0300, a ecrit: +qemu_setsockopt(s, SOL_SOCKET, SO_OOBINLI

[Qemu-devel] [PATCH RFC 2/4] slirp: add helper for udp6 socket creation

2018-10-25 Thread Maxim Samoylov
Signed-off-by: Maxim Samoylov --- slirp/udp.c | 48 slirp/udp.h | 2 ++ 2 files changed, 50 insertions(+) diff --git a/slirp/udp.c b/slirp/udp.c index e5bf065..ab24935 100644 --- a/slirp/udp.c +++ b/slirp/udp.c @@ -366,3 +366,51 @@ udp_listen

[Qemu-devel] [PATCH RFC 1/4] slirp: add helper for tcp6 socket creation

2018-10-25 Thread Maxim Samoylov
Signed-off-by: Maxim Samoylov --- slirp/socket.c | 73 ++ slirp/socket.h | 2 ++ 2 files changed, 75 insertions(+) diff --git a/slirp/socket.c b/slirp/socket.c index 322383a..e16e6c1 100644 --- a/slirp/socket.c +++ b/slirp/socket.c

[Qemu-devel] [PATCH RFC 0/4] slirp: support hostfwd for ipv6 addresses

2018-10-25 Thread Maxim Samoylov
into square brackets, e.g.: ipv6-hostfwd=tcp::7255-[fec0::5054:ff:fe12:3456]:80 The guest ipv6 address intended to be specified explicitly, because there is no dhcpv6 server in slirp. Maxim Samoylov (4): slirp: add helper for tcp6 socket creation slirp: add helper for udp6 socket creation slirp

[Qemu-devel] [PATCH RFC 4/4] net/slirp: add ipv6-hostfwd option for user netdev type

2018-10-25 Thread Maxim Samoylov
This allows forwarding TCP6 and UDP6 connections down to netdev=user connected guests. Signed-off-by: Maxim Samoylov --- hmp-commands.hx | 31 include/net/slirp.h | 2 + net/slirp.c | 214 qapi/net.json | 3

[Qemu-devel] [PATCH RFC 3/4] slirp: add helpers for ipv6 hostfwd manipulation

2018-10-25 Thread Maxim Samoylov
Signed-off-by: Maxim Samoylov --- slirp/libslirp.h | 6 ++ slirp/slirp.c| 43 +++ 2 files changed, 49 insertions(+) diff --git a/slirp/libslirp.h b/slirp/libslirp.h index 42e42e9..3710650 100644 --- a/slirp/libslirp.h +++ b/slirp/libslirp.h