Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
bwmtools
bwmtools
Commits
83121df8
Commit
83121df8
authored
Jan 21, 2005
by
Nigel Kukard
Browse files
* Small code cleanup
parent
6e97ec8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
bwmd/ipq.c
View file @
83121df8
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment