X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fgeekos%2Fsocket.c;fp=palacios%2Fsrc%2Fgeekos%2Fsocket.c;h=4c4d44be7a94581272170d345988981d56fb8b81;hb=7a1c54e7fb92e936bb8f5923ceda6f633ebf6077;hp=63c3aef9885431a10ef513ab426d60cc0386db93;hpb=2db9473a09d3bf99f10bf0c89ecdb003e8746779;p=palacios.git diff --git a/palacios/src/geekos/socket.c b/palacios/src/geekos/socket.c index 63c3aef..4c4d44b 100644 --- a/palacios/src/geekos/socket.c +++ b/palacios/src/geekos/socket.c @@ -129,30 +129,30 @@ static void newdata(int sockfd){ // not finished yet static void senddata(int sockfd){ - /*uchar_t *bufptr; - int len = 0; - addr_t pkt; - - struct sockets *sock = get_socket_from_fd(sockfd); - - pkt = dequeue(sock->send_queue); - if (pkt == 0) // no packet for send + uchar_t *bufptr; + int len = 0; + addr_t pkt; + + struct sockets *sock = get_socket_from_fd(sockfd); + + pkt = dequeue(sock->send_queue); + if (pkt == 0) // no packet for send return; - - bufptr = uip_appdata; - - if(len < uip_mss()) { + + bufptr = uip_appdata; + + if(len < uip_mss()) { // memcpy(bufptr, data, len); - } else { + } else { - }*/ + } //uip_send(uip_appdata,len); } //get the socket id by the local tcp port -static int get_socket_from_port(ushort_t lport) { +static int get_socket_from_port(ushort_t lport) { int i; for (i = 0; i < MAX_SOCKS; i++){