[Slirp] VDE convergence to liblisrp

Michael Tokarev mjt at tls.msk.ru
Mon Dec 30 18:19:45 UTC 2019


30.12.2019 21:04, Renzo Davoli wrote:
> Dear developers and maintainers of libslirp.
> First of all thank you for the project.
> 
> I am the main developer of VDE including the former libslirp proposal(1) and a slirp plugin for vde 
> based on it(2).
> 
> Both these projects are now deprecated as I have reimplemented these features based on your library.
> 
> More precisely I have implemented:
> * libvdeslirp(3): a library that makes extremely simple to write Linux tools using (your) libslirp.
>   libvdeslirp:
> 	- provides a simple way to set up a default configuration (that fits 90% of common usages)
>   - starts a thread for the stack management, taking care of the pollfd array, timers (those
>     used for ipv6's router advertisements)
>   - in short it is almost a drop-in replacements for tools using tuntap. Just use vdeslirp_init to
>     open the stream, vdeslirp_send/vdeslirp_recv to send (virtual) ethernet packets, vdeslirp_fd
>     provides a file descriptor for poll/select and vdeslirp_close teminates the service.
>     (the library can manage several slirp instances concurrently if needed).

Can't this be implemented within slirp itself, to avoid making wrappers?
Something like slirp_start_easy() :)
I think this makes at least some sense..

/mjt



More information about the Slirp mailing list