[bwm-tools-devel] COMMIT - r56 - trunk/bwmd
Brought to you by:
nkukard
From: SVN C. <sv...@li...> - 2005-01-21 06:49:18
|
Author: nkukard Date: 2005-01-21 08:49:07 +0200 (Fri, 21 Jan 2005) New Revision: 56 Modified: trunk/bwmd/ipq.c Log: * Small code cleanup Modified: trunk/bwmd/ipq.c =================================================================== --- trunk/bwmd/ipq.c 2005-01-21 06:46:58 UTC (rev 55) +++ trunk/bwmd/ipq.c 2005-01-21 06:49:07 UTC (rev 56) @@ -32,10 +32,7 @@ #include "libipq.h" -#define QUEUE_HEAD 1 -#define QUEUE_TAIL 2 - // Destroy the ipq handle static void destroyIPQHandle(struct ipq_handle *h) { @@ -95,8 +92,6 @@ int status; int result; int drop = 0; - // Default to inserting at queue tail - unsigned char queuePos = QUEUE_TAIL; // Our find functions @@ -301,13 +296,7 @@ // Check if we must pass the packet if (!drop) { - // Lock, queue... adjust stats - if (queuePos == QUEUE_TAIL) - foundQueue->packets = g_list_append(foundQueue->packets,packet); - else if (queuePos == QUEUE_HEAD) - { - // FIXME - APPEND TO LAST QUEUE - } + foundQueue->packets = g_list_append(foundQueue->packets,packet); foundQueue->curSize += PKT_SIZE(packet); P_FLOW(foundQueue,curQueueSize) += PKT_SIZE(packet); |