summaryrefslogtreecommitdiff
path: root/emulators/dynamips/files/patch-hypervisor.c
blob: d3e5cbf09360e434bb13ad1b5b422208d222bf3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- 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");