Re: [Qemu-devel] [PATCH 22/27] slirp: improve send_packet() callback

2019-01-26 Thread Samuel Thibault
Marc-André Lureau, le jeu. 17 janv. 2019 15:43:54 +0400, a ecrit: > Use a more descriptive name for the callback. > > Reuse the SlirpWriteCb type. Wrap it to check that all data has been written. > > Return a ssize_t for potential error handling and data-loss reporting. > Signed-off-by: Marc-And

[Qemu-devel] [PATCH 22/27] slirp: improve send_packet() callback

2019-01-17 Thread Marc-André Lureau
Use a more descriptive name for the callback. Reuse the SlirpWriteCb type. Wrap it to check that all data has been written. Return a ssize_t for potential error handling and data-loss reporting. Signed-off-by: Marc-André Lureau --- include/net/net.h | 2 +- slirp/libslirp.h | 11 +++