[Slirp] [Git][slirp/libslirp][master] SlirpCb: explicit that it is fine for a guest to drop frames
Samuel Thibault (@sthibaul)
gitlab at gitlab.freedesktop.org
Sun May 9 18:19:01 UTC 2021
Samuel Thibault pushed to branch master at slirp / libslirp
Commits:
c221087f by Samuel Thibault at 2021-05-09T20:18:45+02:00
SlirpCb: explicit that it is fine for a guest to drop frames
- - - - -
1 changed file:
- src/libslirp.h
Changes:
=====================================
src/libslirp.h
=====================================
@@ -47,11 +47,11 @@ typedef int (*SlirpGetREventsCb)(int idx, void *opaque);
*/
typedef struct SlirpCb {
/*
- * Send an ethernet frame to the guest network. The opaque
- * parameter is the one given to slirp_init(). The function
- * doesn't need to send all the data and may return <len (no
- * buffering is done on libslirp side, so the data will be dropped
- * in this case). <0 reports an IO error.
+ * Send an ethernet frame to the guest network. The opaque parameter is the
+ * one given to slirp_init(). If the guest is not ready to receive a frame,
+ * the function can just drop the data. TCP will then handle retransmissions
+ * at a lower pace.
+ * <0 reports an IO error.
*/
SlirpWriteCb send_packet;
/* Print a message for an error due to guest misbehavior. */
View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/commit/c221087f91aa75bcc0a5c1b286d8a9eb652d24f3
--
View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/commit/c221087f91aa75bcc0a5c1b286d8a9eb652d24f3
You're receiving this email because of your account on gitlab.freedesktop.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/slirp/attachments/20210509/3bb12ada/attachment.htm>
More information about the Slirp
mailing list