Commit 83121df8 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

* Small code cleanup

parent 6e97ec8a
......@@ -32,9 +32,6 @@
#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 @@ static int queuePacket(struct runnerData_t *runnerData, unsigned long int nfmark
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 @@ static int queuePacket(struct runnerData_t *runnerData, unsigned long int nfmark
// 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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment