Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


*** empty log message ***
Jack Lange [Mon, 8 Sep 2008 20:19:36 +0000 (20:19 +0000)]
palacios/src/geekos/socket.c

index 3797cae..1014d37 100644 (file)
@@ -110,19 +110,19 @@ void timer_int_Handler(struct Interrupt_State * state){
 }
 
 // a series of utilities to handle conncetion states
-static void connected(int sockfd){
+static void connected(int sockfd) {
 
 }
 
-static void closed(int sockfd){
+static void closed(int sockfd) {
 
 }
 
-static void acked(int sockfd){
+static void acked(int sockfd) {
 
 }
 
-static void newdata(int sockfd){
+static void newdata(int sockfd) {
 
 }
 
@@ -202,13 +202,16 @@ socket_appcall(void)
 
 
 int Packet_Received(struct NE2K_Packet_Info * info, uchar_t * pkt) {
-  int i;
+  //int i;
   
   uip_len = info->size; 
 
-  for (i = 0; i < info->size; i++) {
-    uip_buf[i] = *(pkt+i);
-  }
+  //  for (i = 0; i < info->size; i++) {
+  //  uip_buf[i] = *(pkt + i);
+  //}
+
+  memcpy(uip_buf, pkt, uip_len);
+
 
   Free(pkt);