mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
slirp: Bind support for host forwarding rules
Extend the hostfwd rule format so that the user can specify on which host interface qemu should listen for incoming connections. If omitted, binding will takes place against all interfaces. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
f3546deb07
commit
3c6a05803c
11 changed files with 73 additions and 47 deletions
|
@ -22,10 +22,9 @@ void slirp_input(const uint8_t *pkt, int pkt_len);
|
|||
int slirp_can_output(void);
|
||||
void slirp_output(const uint8_t *pkt, int pkt_len);
|
||||
|
||||
int slirp_add_hostfwd(int is_udp, int host_port,
|
||||
int slirp_add_hostfwd(int is_udp, struct in_addr host_addr, int host_port,
|
||||
struct in_addr guest_addr, int guest_port);
|
||||
int slirp_remove_hostfwd(int is_udp, int host_port);
|
||||
|
||||
int slirp_remove_hostfwd(int is_udp, struct in_addr host_addr, int host_port);
|
||||
int slirp_add_exec(int do_pty, const void *args, struct in_addr guest_addr,
|
||||
int guest_port);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue