Victor Julien
929ce0bb9b
Add a counter to NFQ for modified packets.
15 years ago
Victor Julien
1dca88fe69
Do the actual checksum recalculation and packet replacement on modifing a packet in the stream engine.
15 years ago
Victor Julien
acc38c9ebf
Make sure we don't try to 'verdict' the fake PKT_PSEUDO_STREAM_END packets.
15 years ago
Eric Leblond
89558ab9a4
RFC: modify error treatment in PacketCopyData
...
Hello Victor
This patch modifies error treatment following our discussion on IRC.
It tries to follow the error treatment guideline I've been able to
read in the different files.
I will merge this patch in the original commit if the error treatment
seems ok for you.
BR,
Eric
15 years ago
Eric Leblond
156b202597
Fix decode part of source-nfq
15 years ago
Eric Leblond
dd038c1906
Modify files to avoid direct pckt payload access
...
This patch implements the needed modification of payload access
in a Packet structure to support the abstraction introduced by
the extended data system.
15 years ago
Eric Leblond
f73c60b4ff
nfq: set some options on netlink socket
...
This patch modify nfq system to set some options on the netlink socket.
This should improve performances by handling more correctly capacity
overrun.
15 years ago
Victor Julien
4cacb1e970
Disable adding to unregistered mbit/s counter.
15 years ago
Victor Julien
6519a86ec7
Move packet pool to ringbuffer, update packet pool api and ringbuffer api. Remove memset usage from PACKET_RECYCLE, add proper cleanup macros.
16 years ago
Victor Julien
dce323b1f4
Fix SCondWait -> SCCondWait typo.
16 years ago
Pablo Rincon
8cc525c939
UDP support at AppLayer message handling
16 years ago
Victor Julien
4e7df60b2f
Make pcap file mode read multiple packets per 'read'. Update threading model to deal with this.
16 years ago
William Metcalf
2eef905c07
GPL and Copyright header updates.
16 years ago
William Metcalf
b629b7c5c1
only show cli opts via help that we have support for
16 years ago
Gerardo Iglesias Galvan
9f4fae5b1a
Fix inconsistent use of dynamic memory allocation
16 years ago
Victor Julien
bb685751d9
Fix NFQ receive/verdict race condition in cases where the packetpool is empty.
16 years ago
Victor Julien
647b1c0eba
Fix NFQ compilation.
16 years ago
William Metcalf
ce01927515
Import of GPLv2 Header 050410
16 years ago
Victor Julien
070ed778b8
Libcap-ng support by Gurvinder Singh and myself. Basic support for per thread caps is added, but not activated as it doesn't seem to work yet. Work around for incompatibility between libnet 1.1 and libcap-ng added.
16 years ago
Victor Julien
591c898f6a
NFQ inline changes
...
- split NFQRecvPkt into a Linux and Windows version for readability
- Add many function header comments
- convert tabs to spaces in Windows code.
16 years ago
Jan Jezek
366671a8ce
Added inline mode support on Windows
16 years ago
Victor Julien
eeb98c6900
Move SCSetThreadName to proper functions.
16 years ago
Gerardo Iglesias Galvan
9f35a24a1f
Set threads name. Fix bug #83
16 years ago
Pablo Rincon
25a3a5c6d8
Adding mem wrapper to debug runtime alloc()/free() functions. Fixing some memory leaks.
16 years ago
Victor Julien
16b6f536a0
Fixup Linux compilation after applying win32 patches.
16 years ago
Gurvinder Singh
5293681860
b86
16 years ago
Victor Julien
2cb2989ad8
Apply configurable max pending packets to nfq and ipfw
16 years ago
Pablo Rincon
ad2c136e8f
Renaming errors (naming conventions)
16 years ago
Gurvinder Singh
cf5266094d
bug 66 patch
16 years ago
Victor Julien
df4c642c70
Fix weird compile error
16 years ago
Pablo Rincon
51dc773eec
Changing the veredict actions to flags to allow simultaneous veredict
16 years ago
Eric Leblond
51be576a30
nfq: modify queue length computation logic
...
This patch modifies max queue length computation logic. The max queue
length was set to MAX_PENDING which is the total number of packet
processed simultaneously in suricata.
This value is correct but this will not permit to take all burst
effects into account (read sudden quantity of packet that arrives
faster than suricata is enable to parse). Furthermore there is a
delaying system when suricata gets overloaded which make necessary
to have packet storable into kernel for some time.
To improve this situation the patch increases the maximum queue
length to NFQ_BURST_FACTOR (4) time the MAX_PENDING packet and
it also increase the nfnetlink buffer size to be able to store
all packets waiting for suricata in the netlink receive buffer.
16 years ago
Eric Leblond
72d48f6658
nfq: add sanity checking
...
This patch adds sanity checking to payload handling. It set length
of packet to zero if an error occurs.
16 years ago
Eric Leblond
56cccdfa62
nfq: use switch instead of 'else if'
...
This patch convert a 'else if' serie to a switch to increase
the readability of the decision related code.
Please enter the commit message for your changes. Lines starting
16 years ago
Victor Julien
13e10ccd86
Enable bytes per sec and mbit per sec for nfq as well
16 years ago
Victor Julien
ecf86f9c23
Rename to Suricata.
16 years ago
Victor Julien
aa653157bf
Convert stats printing in nfq to logging api.
16 years ago
Victor Julien
e5301effe6
Make nfq module use logging api.
16 years ago
Pablo Rincon
e26833be3f
Changing mutex/spinlocks/conditions naming types
16 years ago
Pablo Rincon
769022f4be
Adding support for Mac OS X, FreeBSD, centrailizing mutex/spins/conditions in a macro API, and some unittests
16 years ago
Anoop Saldanha
8beef4a9fc
stats upgrade. Added interval counters to the decoder module
16 years ago
Anoop Saldanha
ceb7e495ae
refactoring perf stats code
16 years ago
Gurvinder Singh
e7952b1331
some changes in threading constants
16 years ago
Gurvinder Singh
40b8afdd56
support for thread exit constants
16 years ago
Victor Julien
f0d556b9e3
Suppress nfq debug output.
16 years ago
Victor Julien
a4fe971897
Fix datalink retrieval for pcap file mode and nfq mode for use in unified2.
16 years ago
Victor Julien
0d0ffb9963
Reorganize header inclusions.
16 years ago
William Metcalf
07bb501aca
compile fix for source-nfq.c
16 years ago
Victor Julien
a39108843e
Small tm module API rename to reflect that Init/Deinit/ExitPrintStats are per thread calls.
16 years ago
Victor Julien
e7f8a02484
Improve GRE counting. Actually use the GRE decoder. Register the GRE counter.
16 years ago