1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/emulators/dynamips/files/patch-hypervisor.c
Max Khon 3e9eaed62a Update to 0.2.7.
PR:		113808
Submitted by:	Pavel I Volkov
2007-07-03 15:29:23 +00:00

21 lines
661 B
C

--- hypervisor.c.orig Wed Mar 21 11:11:12 2007
+++ hypervisor.c Wed Mar 21 11:29:55 2007
@@ -535,7 +535,7 @@
}
/* Hypervisor TCP server */
-int hypervisor_tcp_server(int tcp_port)
+int hypervisor_tcp_server(char* ip_address,int tcp_port)
{
int fd_array[HYPERVISOR_MAX_FD];
struct sockaddr_storage remote_addr;
@@ -565,7 +565,7 @@
if (!tcp_port)
tcp_port = HYPERVISOR_TCP_PORT;
- fd_count = ip_listen(tcp_port,SOCK_STREAM,HYPERVISOR_MAX_FD,fd_array);
+ fd_count = ip_listen(ip_address,tcp_port,SOCK_STREAM,HYPERVISOR_MAX_FD,fd_array);
if (fd_count <= 0) {
fprintf(stderr,"Hypervisor: unable to create TCP sockets.\n");