From 8399d506304927014c55cb11d088f48b39e2579e Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 22 Oct 2023 22:53:20 +0200 Subject: Document endianness of slirp_add_hostfwd parameters Fixes #70 --- src/libslirp.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libslirp.h b/src/libslirp.h index 09500b9..3caa6f1 100644 --- a/src/libslirp.h +++ b/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); -- cgit v1.1