X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fgeekos%2Fsocket.c;h=63b3ce1f4482c384bdcb8c830ef362b40d2a6073;hb=abffcb058993b19404622ce45cdce3b03045df54;hp=0301b933e7b1335999c080b2731d1138e42b0aea;hpb=eb7dda8d4a92a2e8d0c8f867c65317d756ca6c11;p=palacios.git diff --git a/palacios/src/geekos/socket.c b/palacios/src/geekos/socket.c index 0301b93..63b3ce1 100644 --- a/palacios/src/geekos/socket.c +++ b/palacios/src/geekos/socket.c @@ -1,3 +1,7 @@ +/* (c) 2008, Jack Lange */ +/* (c) 2008, Lei Xia */ +/* (c) 2008, The V3VEE Project */ + #include #include #include @@ -26,7 +30,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 +153,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");