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


version 1.3 version 1.4
Line 5
 
Line 5
   
 #include <string.h>  #include <string.h>
 #include <netinet/in.h> /* for htons & co. */  #include <netinet/in.h> /* for htons & co. */
   #include <netinet/ip.h> /* for IPTOS */
 #include <unistd.h>  #include <unistd.h>
 #include <netdb.h>  #include <netdb.h>
 #include <stdlib.h>  #include <stdlib.h>
Line 191
 
Line 192
  mysock=-1;   mysock=-1;
  FAIL("bind() to UDP port %d failed: %m",port);   FAIL("bind() to UDP port %d failed: %m",port);
  }   }
   #ifdef IPTOS_LOWDELAY
    int tos = IPTOS_LOWDELAY;
    if (setsockopt(mysock,IPPROTO_IP,IP_TOS,&tos,sizeof(tos))) {
    msg("setsockopt(IPTOS_LOWDELAY) failed: %m");
    }
   #endif
   
  return 0;   return 0;
 }  }

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