#define BUFFSIZE 65536
#define AC_QUEUES 4
+/* Turn on/off debugging */
+#define DEBUG 0
+
const int prio_to_ac[8] = {2,3,3,2,1,1,0,0};
const unsigned int ac_to_tos[4] = {224,160,96,64};
int ac_sockfd[AC_QUEUES];
return NULL;
}
+#if DEBUG
printf("%d",ac);
fflush(stdout);
-
+#endif
while (sendto(ac_sockfd[ac], buff, mlen,0 ,(struct sockaddr*)&rem_addr, \
sizeof(rem_addr)) < 0){
if (errno == EINTR) continue;