[Slirp] [Git][slirp/libslirp][master] Document endianness of slirp_add_hostfwd parameters

Samuel Thibault (@sthibaul) gitlab at gitlab.freedesktop.org
Sun Oct 22 20:53:33 UTC 2023



Samuel Thibault pushed to branch master at slirp / libslirp


Commits:
8399d506 by Samuel Thibault at 2023-10-22T22:53:23+02:00
Document endianness of slirp_add_hostfwd parameters

Fixes #70

- - - - -


1 changed file:

- src/libslirp.h


Changes:

=====================================
src/libslirp.h
=====================================
@@ -249,7 +249,10 @@ SLIRP_EXPORT
 void slirp_handle_timer(Slirp *slirp, SlirpTimerId id, void *cb_opaque);
 
 /* These set up / remove port forwarding between a host port in the real world
- * and the guest network. */
+ * and the guest network.
+ * Note: guest_addr must be in network order, while guest_port must be in host
+ * order.
+ */
 SLIRP_EXPORT
 int slirp_add_hostfwd(Slirp *slirp, int is_udp, struct in_addr host_addr,
                       int host_port, struct in_addr guest_addr, int guest_port);



View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/commit/8399d506304927014c55cb11d088f48b39e2579e

-- 
View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/commit/8399d506304927014c55cb11d088f48b39e2579e
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/20231022/d87d9e4d/attachment.htm>


More information about the Slirp mailing list