Victor Julien
d3f19a3851
Fix memcmp checks that prevent reading past buffer boundary.
15 years ago
Victor Julien
4a2d4eef5a
Properly reset IPv6 extension headers structure.
15 years ago
Victor Julien
962462e470
Fix SSE memcmp functions reading beyond the buffer. Add tests to bench them.
15 years ago
Victor Julien
ece8e5444b
Minor profiling fix: don't close stdout.
15 years ago
William
d74fe520e5
Experimental support for PCRE-sljit enable via --enable-pcre-sljit
15 years ago
William
85643fe780
Convert to logging perf stats to file by default. Add a few columns to output avg ticks per match, avg ticks non match, allow sorting on based on them.
15 years ago
Victor Julien
36917c7d66
Fix not using new htp callback when using the bundled htp. Add indication to --build-info. Fix valgrind warning in test and further improve test.
15 years ago
Victor Julien
a3e2b35536
Add configure check for new htp 0.2.5 uri normalize hook.
15 years ago
Victor Julien
15ce850387
Add support for new libhtp htp_config_register_request_uri_normalize callback.
15 years ago
Anoop Saldanha
6e0d98d9c4
fix valgrind issue for SMB test. Small restructuring. probing_parsers global variable now part of AlpProtoDetectCtx
15 years ago
Anoop Saldanha
7f8fb0f00d
fix bounds checking in smb probing parser
15 years ago
Victor Julien
149ee6b648
Disable to_client http detection. Libhtp expects to_server data first.
15 years ago
Victor Julien
8999de2f93
Add proper RST handling to all TCP states.
15 years ago
Victor Julien
9a58a02559
Wrap HTP code that is only used in debug mode in debug ifdefs.
15 years ago
Victor Julien
a5d9c86dd3
Shrink Flow structure with 20 bytes (on 32 bit) and reorder it. Clean up init, recycle, destroy macro's.
15 years ago
Anoop Saldanha
61635f302c
indentation changes in app-layer-smb.c
15 years ago
Anoop Saldanha
a40fdc794e
Added probing parser for nbss/smb on port 139
15 years ago
Anoop Saldanha
b7b7bbec37
code indentation changes in app-layer-smb.c
15 years ago
Anoop Saldanha
7c31a2327e
Add support for port based probing parsers for alproto detection
15 years ago
Anoop Saldanha
fe6e41e3ef
Removed FLOW_AL_NO_APPLAYER_INSPECTION. Moved it as FLOW_NO_APPLAYER_INSPECTION in Flow->flags. Turned Flow->flags into uint32_t and removed Flow->alflags
15 years ago
Anoop Saldanha
0c94d910e4
Removed FLOW_AL_STREAM_TOSERVER and FLOW_AL_STREAM_TOCLIENT. Use STREAM_TOSERVER and STREAM_TOCLIENT instead
15 years ago
Anoop Saldanha
ac5584a863
Removed FLOW_AL_PROTO_DETECT_DONE. Replaced it with FLOW_ALPROTO_DETECT_DONE, stored it in Flow->flags
15 years ago
Anoop Saldanha
49e2b580cb
Removed FLOW_AL_PROTO_UNKNOWN. We don't need this flag
15 years ago
Anoop Saldanha
38fe2b9070
Removed FLOW_AL_STREAM_START, EOF and GAP flags. We don't need these. Just use STREAM_* flags
15 years ago
Anoop Saldanha
000ce98cd1
push all proto detection code into their respective app parser register functions for every alproto
15 years ago
Anoop Saldanha
aab4a43145
Add C and E flags to flags keyword. We still support 1 and 2 for backward compatibility
15 years ago
Anoop Saldanha
78bf2579aa
move pseudo packet creation outside defragreassemble loop
15 years ago
Victor Julien
f303f3f523
Fix a logic error in the SACK list cleanup causing a memleak and invalid memory access at the same time.
15 years ago
Victor Julien
1578ef1e3e
Make sure that the stream engine fully reassembles both sides of the session upon receiving a valid RST.
15 years ago
Victor Julien
83c3f15812
Minor fixes in defrag engine, shrink DefragTracker_ structure.
15 years ago
Jason Ish
0385f72669
Use separate frag decoder events for IPv4 and IPv6.
15 years ago
Jason Ish
de1c40c44f
Set decoder event on fragment overlaps.
15 years ago
Jason Ish
7f5e120d60
Cleanup assignment of the default defrag policy.
15 years ago
Jason Ish
6da9c64a28
Set decoder event when re-assembled fragments would exceed max IP packet size.
15 years ago
Victor Julien
96c2f2c877
Fix 2 stream reassembly unittests
15 years ago
Victor Julien
14ad853b94
Process a stream end pseudo packet when going from TIME_WAIT to CLOSED.
15 years ago
Victor Julien
3b40b02a1b
Stream reassembly fixes.
15 years ago
Victor Julien
c88630639e
Fix setting libhtp personality.
15 years ago
Victor Julien
6aa551c558
Small optimizations to IPV4 and TCP header parsing.
15 years ago
Victor Julien
d0374ced38
Implement SACK in the stream engine.
15 years ago
Victor Julien
6fc075d4ae
Add TCP packet SACK option decoding.
15 years ago
Victor Julien
dbe291bc50
Allow for 0 (unlimited) HTTP request_body_limit, fix option parsing.
15 years ago
Victor Julien
136f55efc7
Fix a memory leak in flow recycle code causing the detection engine state not to be fully freed (recycled) but reference to memory removed anyway.
15 years ago
Victor Julien
38a7d1777f
Bump version to 1.1beta2
15 years ago
Victor Julien
a0799f0ff9
Wait longer at shutdown before concluding it's taking too long. Hopefully enables our slow QA boxes to complete in time.
15 years ago
Anoop Saldanha
d245f15f14
disable mpm pattern's retest skipping in detection engine for uri, hcbd, hmd, hrhd, hhd, hmd, hcd
15 years ago
Victor Julien
681f8329a6
Make error on <- direction operation use more explicit.
15 years ago
Victor Julien
cd75201dc7
Fix pfring commandline handling.
15 years ago
Victor Julien
778b92ef40
Make sure to only alloc a new pseudo packet once during ip defrag.
15 years ago
Victor Julien
5f2a0653b4
If engine shutdown (processing in-engine packets) times out, exit Suricata with EXIT_FAILURE.
15 years ago
Victor Julien
9ca0658a6e
Clear pcap_cnt variable on packet recycle.
15 years ago
Victor Julien
03ea563e93
Don't set ip{4,6} header on reassembled ip packet until we know for sure what buffer the packet is stored in.
15 years ago
Victor Julien
f5674eff74
Fix a copy issue in PacketCopyDataOffset.
15 years ago
Victor Julien
8978266a91
If shutdown doesn't complete processing all packets that are already in the engine within 30 seconds, force quit.
15 years ago
Victor Julien
5d2f633c48
Properly initialize pfring runmode before using it. Fix malformed conf api calls.
15 years ago
Anoop Saldanha
966119b6aa
support for http_raw_uri keyword + mpm engine
15 years ago
Victor Julien
169104a803
Slightly clean up --list-runmodes output.
15 years ago
Anoop Saldanha
e4d890e186
modify runmode api to accept conf runmode paramter as a char string, instead of an interger id
15 years ago
Anoop Saldanha
fb4ffc9aef
fixed runmode name changes that was missed in the previous changes to the runmode api
15 years ago
Anoop Saldanha
229f7281ea
list runmodes. Allow specification of runmode id from cof file. Also allow for command line override
15 years ago
Anoop Saldanha
05686e70a5
fix coding indentation + neaten runmode code
15 years ago
Anoop Saldanha
d7c707e656
modify runmodes to take all arguments from the conf API
15 years ago
Anoop Saldanha
a165d45da9
naming changes for runmodes
15 years ago
Anoop Saldanha
6fceeda8c5
move erf dag runmode into its own file runmode-erf-dag.[ch]
15 years ago
Anoop Saldanha
f51cf34210
move erf file runmode into its own file runmode-erf-file.[ch]
15 years ago
Anoop Saldanha
86eabbc2f5
move ipfw runmode into its own file runmode-ipfw.[ch]
15 years ago
Anoop Saldanha
036015d6b9
move nfq runmode into its own file runmode-nfq.[ch]
15 years ago
Anoop Saldanha
9affa39b29
move pfring runmode into its own file runmode-pfring.[ch]
15 years ago
Anoop Saldanha
e7ac1d7c4c
move pcap file runmode into its own file runmode-pcap-file.[ch]
15 years ago
Anoop Saldanha
f6af567ce0
move pcap live runmode into its own file runmode-pcap.[ch]
15 years ago
Victor Julien
892a8a4985
Make stream inline use the chunk size settings.
15 years ago
Victor Julien
2dc057d1b1
Set datalink on stream pseudo packets to prevent unified2 from writing a malformed record.
15 years ago
Victor Julien
5dcaaebf21
Enable logging of stream chunk in IPV6/TCP. Make sure IPV6 events have a ethernet header to work around Barnyard2 not liking DLT_RAW+IPV6.
15 years ago
Victor Julien
93815a1585
Support logging of reassembled stream data in IPv4 unified2.
15 years ago
Victor Julien
6cb9bbd1e3
Make sure TAG alerts don't work with an uninitialized alert_msg pointer.
15 years ago
Victor Julien
4f5aad1476
Enforce configurable minimum chunk size in raw stream reassembly. Minor stream cleanups, unittest updates.
15 years ago
Victor Julien
5d2a341096
Disable unused code, fix compiler warning.
15 years ago
Victor Julien
936b34ddf6
Remove minimum init chunk length code, set a default limit of 2560 to the minimum chunk size, allow toclient raw reassembly to start even if toserver hasn't started yet.
15 years ago
Victor Julien
864c8718e1
Store matching stream msg (ptr) in packets alert structure so it's available to the output plugins.
15 years ago
Victor Julien
8faacb727d
Account for seg list not always being empty when stream closes.
15 years ago
Victor Julien
ecfa2d0176
Only remove segments from segment list if they are completely before ra_base_seq.
15 years ago
Victor Julien
5bdf16380d
Make sure we actually remove no longer required segments.
15 years ago
Victor Julien
7f45a4fd58
Fix missing segment flag, fix 2 unittests broken after previous stream changes.
15 years ago
Victor Julien
4a7f6079d5
Change segment removal in stream engine to not discard segments right away. Now they are only removed if they are fully before ra_base_seq.
15 years ago
Victor Julien
6d766f91ef
Fix compiler warnings in defrag unittests.
15 years ago
Anoop Saldanha
5c880b04c9
fix ipv4 defrag + fix recursion level in defrag pseudo packet
15 years ago
Victor Julien
8654469133
Fixing libpcap 0.x.x specific code, take 2.
15 years ago
Victor Julien
140eb4fde8
Fix decode-event keyword parsing. Fix code that indicates a signature is decode-event only. Add 'pkthdr' protocol as an alias for any/ip to be used by decode-event signatures.
15 years ago
Victor Julien
c72e5f0ebb
Fix compilation of pcap reopen code for older libpcap code.
15 years ago
Victor Julien
076d77cd80
Add strncpy and strncat to banned function list as we have better replacements: strlcpy and strlcat.
15 years ago
Victor Julien
0814e41e50
Ignore tunnel/defrag packets in log-pcap module.
15 years ago
Victor Julien
7ef00aaf19
Fix defrag4 setting the packet length on the wrong packet.
15 years ago
Victor Julien
acda69865a
Fix potential segv in pcap logging deinit code.
15 years ago
Victor Julien
bc7e21aee6
Add special sguil mode to log-pcap to support logging into date based directory structure and rotate when the day passes. Also do not log packets beyond stream reassembly depth and encrypted traffic.
15 years ago
Victor Julien
77505f8873
Allow pcap-log to log outside of default-log-dir by passing a absolute path as filename.
15 years ago
Victor Julien
92ea1f68d4
Exit on thread restart limit reached.
15 years ago
Eric Leblond
8f4229b429
Use snprintf instead of sprintf.
15 years ago
Eric Leblond
9be1f1a31c
Use GET_PKT macros.
15 years ago
Eric Leblond
fb36c0af12
pcap: do not leave if interface goes down
...
This patch changes suricata behaviour to support interface like
ppp. Prior to this patch, a suricata listening to an interface
was leaving when the interface goes down. This patch modifies
the behaviour to automatically reconnect. Suricata retries to
open the interface every 0,5s until it succeeds.
15 years ago
Eric Leblond
56bf931959
pfring: use macro for direct access
...
Existing code was correct but it was using a direct access to
pkt field. This patch uses the newly defined macro to have a
clean access on the pkt data.
15 years ago
Eric Leblond
4495efcb62
Add macro for direct access
...
In some case, this is needed to have a direct access to the pkt
field. This patch adds macro for this usage.
15 years ago
Victor Julien
5da8bd7c1e
Fix unified2 overwriting tag alerts.
15 years ago
Victor Julien
cee615315f
Fix [drop] not being printed for IPv6 fast.log alerts.
15 years ago
Victor Julien
e19f6ebaf4
Various fixes for issues reported by clang.
15 years ago
Victor Julien
38e7d944c5
Fix icmpv4 unittest on big endian, extract embedded sport and dport even if a full tcph doesn't fit.
15 years ago
Victor Julien
92536c4952
Fix address test on big-endian.
15 years ago
Victor Julien
e0afe96920
Fix broken ICMPv4 unittests on big endian, fix broken ID macro on ICMPv6.
15 years ago
Victor Julien
f5a2017f3c
Fix counter unittest on big endian.
15 years ago
Victor Julien
6817824c92
Fix bloomfilter issue on big endian.
15 years ago
Victor Julien
e197f50727
Fix IP-Only unittests failing on Big Endian.
15 years ago
Victor Julien
b8cf50678f
Fix many address unittests using explicit byte order and thus failing on big-endian systems.
15 years ago
Victor Julien
c865ee2217
Fix compilation for nfq_set_mark code when NFQ is not enabled.
15 years ago
Eric Leblond
ee6552f25e
nfq_set_mark: handle feature in NFQ.
...
This patch implements the nfq_set_mark related modification of verdict
handling.
15 years ago
Eric Leblond
9beebf621a
Add support for 'nfq_set_mark' keyword
...
This patch introduces 'nfq_set_mark' which is new rules option. If a packet
matches a rule using nfq_set_mark in NFQ mode, it is marked with the mark/mask
specified in the option during the verdict.
It is thus possible to trigger different behaviour on the packet inside
Linux/Netfilter.
15 years ago
Victor Julien
f90a5cfffd
Misc pcap logging cleanups.
15 years ago
William Metcalf
023a0f94a2
first stab at pcap logging no rotating buff etc
15 years ago
Anoop Saldanha
1f7e4bada1
add tls.no_reassemble use for sslv2 which we missed previously. Also some cleanup
15 years ago
Victor Julien
71d0eabdec
Add a few extra safety checks in new SSL code.
15 years ago
Anoop Saldanha
c105a739e9
support for ssl_state keyword added
15 years ago
Anoop Saldanha
013d3aea1c
update ssl parser test. Some minor indentation changes
15 years ago
Anoop Saldanha
7a2046328c
some naming changes in ssl parser and ssl related keywords
15 years ago
Anoop Saldanha
4c570777c4
delete files app-layer-tls.[ch]
15 years ago
Anoop Saldanha
b639718787
replace the contents of app-layer-ssl.[ch] with the contents from app-layer-tls.[ch]
15 years ago
Anoop Saldanha
cacf0a9017
disabled sslv23 proto detection which we enabled previously. Although this is right, need to test a couple of things
15 years ago
Anoop Saldanha
4e8de99dcd
tls/ssl parser modifications/fixes. We now have just one file doing all the ssl parsing stuff, i.e. app-layer-tls.[ch], instead of app-layer-ssl.[ch] and app-layer-tls.[ch]
15 years ago
Anoop Saldanha
8b17275451
dcerpc parser todo update
15 years ago
Anoop Saldanha
8c6d4531ee
sslv23 support with ssl2 record format with version set to 3.0
15 years ago
Victor Julien
07a85427dd
Add --build-info command line option to output some basic build settings.
15 years ago
Victor Julien
174db08567
Force reassembly of unack'd data on receiving a valid RST packet.
15 years ago
Victor Julien
b9429ecec1
Fix invalid RST considered valid due to wrong returns codes. Only validate ACK from a RST packet if an ACK value was set.
15 years ago
Victor Julien
cb67d61ab5
Fix broken setup of end of stream pseudo packet.
15 years ago
Victor Julien
99fca03810
Move unittest code into UNITTESTS ifdefs in the HTP parser. Fixes a compiler warning.
15 years ago
Victor Julien
0dc6333d22
Fix compiler warnings about unused IPv6 Address code.
15 years ago
Victor Julien
b9fd978253
Fix compiler warnings in two unittests.
15 years ago
Victor Julien
a3be22cd5a
Fix compiler warning in isdataat keyword setup code.
15 years ago
Victor Julien
bbe071252b
Make sure PID is logged as well in alert-syslog output.
15 years ago
Victor Julien
da423a59d5
Allow users of the alert-syslog to set the identity.
15 years ago
Victor Julien
07776c113b
Fix valgrind error on pfring_recv, rename threads from RecvPfring to RxPfring so the name still looks right for 100+ threads. Add --pfring commandline option that just enables pfring, then takes interface from config.
15 years ago
Victor Julien
3aeb86d836
Fix header_len in GRE decoder getting out of control in some cases.
15 years ago
Victor Julien
1c9e48ae98
Fix compilation error on non-pfring systems.
15 years ago
Victor Julien
91f28afef4
Add option to PF_RING to have multiple reader threads. Improve general performance of the PF_RING module.
15 years ago
Victor Julien
edeec290f6
Fix missing rename for request-body-limit to request_body_limit.
15 years ago
Eric Leblond
3b3a8ffb94
detect-gid: suppress unused type
...
The DetectGidData type is not used in the code. This patch removes
the type definition from code.
15 years ago
Eric Leblond
ad44f1cfc1
fix possible typo in strtoul error handling.
15 years ago
Eric Leblond
04f2afa81b
nfq: fix exit function
...
Exit function was trying to close the nfq handler even if it was
null. This was causing a crash.
15 years ago
Eric Leblond
277a384af7
Use already defined macro instead of integer
...
Code was using a integer instead of the already defined macro.
15 years ago
Pablo Rincon
ce3b76a102
Fix compilation on Mac OS X (it was missing IPPROTO_SCTP definition)
15 years ago
Victor Julien
153f9298e7
Fix priority handling during the signature parsing stage. Fixes #275 .
15 years ago
Gurvinder Singh
27f67c97de
log error on duplicate sig and also for dup sig with newer revision
15 years ago
Victor Julien
8a390971e7
Print [drop] as well for syslog output.
15 years ago
Victor Julien
0377ae0817
Reduce SCTP_HEADER_LEN to reflect actual pkt header size.
15 years ago
Eric Leblond
005dc599a6
detect.c: Fix usage of integer standing for protocol
...
This patch fixes direct usage of integer to code protocol value.
15 years ago
Eric Leblond
2c80f18dc9
detect: Add sctp detection and parsing.
...
This patch adds the support of SCTP in signature subsystem.
15 years ago
Eric Leblond
674b0bfae7
flow: Add basic SCTP support
...
This patch adds a basic flow support to SCTP. SCTP specificities
like the verification tag are not taken into account.
15 years ago
Eric Leblond
01e955bc27
Add SCTP to packet validation
...
Validation util was missing a test on sctph which can not be null
for SCTP packets.
15 years ago
Eric Leblond
a823160384
detect: Add support for sctp option in rule
...
'sctp' can now be used as a keyword in signature. It is at the same
level as the 'tcp' or 'udp' keywords.
15 years ago
Eric Leblond
482991ad6d
decode: add support for SCTP protocol
...
This patch adds a new counter for SCTP and defines some
macros needed for SCTP support.
15 years ago
Eric Leblond
8be92fdd99
SCTP support: add parsing of sctp
...
This patch adds support of SCTP in all part of the code in charge
of decoding packets.
15 years ago
Eric Leblond
e1d966eaf6
Makefile: add sctp files to build
...
This patch simply adds decode-sctp files to the compilation.
15 years ago
Eric Leblond
b69fd02284
decode sctp: basic SCTP decoding.
...
This files are basically a dummy conversion of UDP one. It
provides basic decoding (source port and destination port).
There is no chunk hanldling which means that suricata regexp
will match on all packet content except initial header and not
only on userspace data.
15 years ago
Eric Leblond
17af1ca123
decode-event: Add SCTP event
...
Almost empty now, because the only definition is packet
too small.
15 years ago
Victor Julien
987ce57a02
Wrap a number of BUG_ON's in the detection engine in DEBUG ifdefs as the conditions they check for are not serious enough to abort the engine.
15 years ago
Victor Julien
a3303fcf9d
Rename request-body-limit to request_body_limit to remain consistant with other options. Keep old notation around for compatibility.
15 years ago
Victor Julien
0d6d0ae371
Increase logline max length.
15 years ago
Victor Julien
6047a9b562
Improve byte to numeric value error reporting and testing.
15 years ago
Victor Julien
b233105cc2
Fix a issue in stream reassembly causing the segment list getting into a inconsistent state.
15 years ago
Eric Leblond
4e9231266a
Compilation fix for OpenBSD and win32.
...
This patch fixes compilation on OpenBSD platform. It is running
fine on a pcap file. The patch should also fix compilation on
WIN32 platform but this is not tested.
15 years ago
Victor Julien
a8db8b334b
Remove debug stream testing code from non-debug builds.
15 years ago
Victor Julien
477bc1d050
Set DROP flag on a packet in addition to the REJECT flags. This makes sure we not only send a reject, but also drop the offending packet. Closes #248 .
15 years ago
Pablo Rincon
fb5fb3ab3f
IPOnly module fix for building stage. Radix Tree fix inserting diferent netmask user datas
15 years ago
Pablo Rincon
35c168ab03
Fix CPU_* macros for Mac OS X
15 years ago
Eric Leblond
0cf05856d0
Fix Packet usage.
...
This patch suppresses remaining direct access to pkt and pktlen in the
Packet structure.
15 years ago
Victor Julien
cec7ece697
Don't print drop log on pseudo packet.
15 years ago
Victor Julien
1ace091bd4
Minor drop log cleanups.
15 years ago
Gurvinder Singh
7d0781b349
added support to log dropped packet as netfilter logs while in inline mode
15 years ago
Victor Julien
1681705e62
Don't print errors/warnings based on malformed traffic.
15 years ago
Anoop Saldanha
9845718138
fix detect-ssl-version.c unittests to accomodate new changes
15 years ago
Anoop Saldanha
95f9f2c28d
minor indentation changes
15 years ago
Gurvinder Singh
8f8b1212af
support for ssl_version keyword
15 years ago
Eric Leblond
a8417377e7
Don't use direct pkt access
...
pkt field in Packet needs to be accessed via macro. This
patch supress some direct access.
15 years ago
Victor Julien
addab7b5ee
Don't test the several packet detection checks against pseudo packets as the matches would not be meaningful anyway. Prevents a segv in the csum detection.
15 years ago
Victor Julien
a2465ffc1c
Fix FreeBSD's compilation of the new affinity code.
15 years ago
Victor Julien
b963890de1
Reenable SSE3 memcmp and switch AC memcmp to use the SCMemcmp wrapper.
15 years ago
Victor Julien
6f58ef13c4
Improve error cleanup in output function. Thanks to iswalker.
15 years ago
Eric Leblond
183af9ada5
Replace malloc by SCMalloc in util-mpm-ac
15 years ago
Eric Leblond
c732351077
Replace free and malloc by SC functions.
15 years ago
Victor Julien
35b938a8db
Don't pass config to unittests run in make check.
15 years ago
Eric Leblond
0044bb221b
Add suricata unittests to 'make check'
...
This patch adds a run of suricata's unittests to 'make check'
15 years ago
Eric Leblond
66a15e2d6d
Fix some Packet initialisation.
...
This patch fixes Packet initialisation. In some place the pkt field
was not set after a memset used to zero the structure and this could
lead to some problems.
15 years ago
Anoop Saldanha
8e95884333
Use normal memcmp in ac. Improves perf
15 years ago
Martin Beyer
66d496c255
Added case sensitive unit test to util-mpm-ac
15 years ago
Anoop Saldanha
79b9eba0f0
fix case sensitive bug in ac
15 years ago
Victor Julien
1c7b7a01a6
Add option to set the syslog level for the alerts. Minor cleanups.
15 years ago
Gurvinder Singh
e5edc6e8e3
add the support to log the fast.log alerts type to syslog
15 years ago
Victor Julien
d424ac7c61
Fix nfq lockup due to improper handling of PKT_PSEUDO_STREAM_END packets.
15 years ago
Victor Julien
c9f9e3f9a4
Add configure check for signed or unsigned nfq_get_payload, adapt code.
15 years ago
Eric Leblond
aedb61b7d2
affinity: lock get next cpu function
...
The function getting next CPU to use need to be locked as init of
the threads are done concurrently.
15 years ago
Eric Leblond
0b5e5b8772
affinity: change config format and misc fixes
...
This patch fixes some problem with affinity work and modify the
configuration file format.
For example, the detect cup set can be formatted as follow:
- detect_cpu_set:
cpu: [ "all" ]
mode: "exclusive" # run detect threads in these cpus
prio:
low: [ 0 ] # threads on CPU 0 have low prio
medium: [ "1-2" ] # threads on CPU 1 and 2 have medium prio
high: [ 3 ] # threads on CPU 3 have high prio
default: "medium" #default priority is "medium"
15 years ago
Eric Leblond
c74116949c
source-nfq: improve nfq option system
...
This patch modifies the NFQ option system to avoid implicit
choice. 'nfq.mode' is now a string which can take a value
in the 'accept', 'repeat' and 'route' set.
Signed-off-by: Eric Leblond <eric@regit.org>
15 years ago
Eric Leblond
94596ff282
source-nfq: add queue redirect support
...
This patch adds the support of queue redirect. If 'next_queue'
variable is set, the verdict sent to kernel is modified to contain
the indication of a queue number (equal to 'next_queue') which will
receive the packet after the verdict. This feature can be used to
chain easily tools using NFQUEUE.
Signed-off-by: Eric Leblond <eric@regit.org>
15 years ago