Difference for arch/linux/arch_ip.cpp from version 1.4 to 1.5


version 1.4 version 1.5
Line 16
 
Line 16
 #include "ipx_drv.h"  #include "ipx_drv.h"
 #include "types.h"  #include "types.h"
 #include "mono.h"  #include "mono.h"
   #include "netstats.h"
 //#include "multi.h"  //#include "multi.h"
 }  }
   
Line 89
 
Line 90
  addr.dump();   addr.dump();
  puts(").");   puts(").");
 #endif  #endif
    net_stats_sent(len);
  return sendto(mysock,buf,len,0,(struct sockaddr *)&toaddr,sizeof(toaddr));   return sendto(mysock,buf,len,0,(struct sockaddr *)&toaddr,sizeof(toaddr));
 }  }
   
Line 198
 
Line 200
  msg("setsockopt(IPTOS_LOWDELAY) failed: %m");   msg("setsockopt(IPTOS_LOWDELAY) failed: %m");
  }   }
 #endif  #endif
    net_stats_init(28); // IP + UDP header overhead = 28 bytes.
   
  return 0;   return 0;
 }  }
Line 221
 
Line 224
  return -1;   return -1;
   
  if (fromaddr.sin_family!=AF_INET) return -1;   if (fromaddr.sin_family!=AF_INET) return -1;
   
    net_stats_recv(size);
   
 #ifdef UDPDEBUG  #ifdef UDPDEBUG
  printf(MSGHDR "recvfrom((%d-2=%d),",size,size-2);   printf(MSGHDR "recvfrom((%d-2=%d),",size,size-2);

Legend:
line(s) removed in v.1.4 
line(s) changed
 line(s) added in v.1.5