X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fgeekos%2Fsocket.c;h=2dca02db1896531f0fd357c14645ad9002258d4e;hb=a0948840c3cfe0a15d4fe04d149ca45d70354b05;hp=0301b933e7b1335999c080b2731d1138e42b0aea;hpb=eb7dda8d4a92a2e8d0c8f867c65317d756ca6c11;p=palacios-OLD.git diff --git a/palacios/src/geekos/socket.c b/palacios/src/geekos/socket.c index 0301b93..2dca02d 100644 --- a/palacios/src/geekos/socket.c +++ b/palacios/src/geekos/socket.c @@ -26,7 +26,7 @@ void socket_appcall(void); static int Packet_Received(struct NE2K_Packet_Info* info, uchar_t *pkt); static void periodic_caller(int timer_id); -void init_network() { +void init_socket_layer() { int i = 0; bool iflag; @@ -149,7 +149,7 @@ int connect(const uchar_t ip_addr[4], ushort_t port) { PrintBoth("Connection start\n"); - Wait(&(sock->recv_wait_queue)); + Wait(&(sockets[sockfd].recv_wait_queue)); PrintBoth("Connected\n");