Suricata is a network Intrusion Detection System, Intrusion Prevention System and Network Security Monitoring engine developed by the OISF and the Suricata community.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Go to file
Victor Julien 72f6bc2aed luajit: add flowint support
Expose ScFlowintGet and ScFlowintSet functions to luajit. These set
flowints in real time, regardless of rule and/or script match.

Example:

function init (args)
    local needs = {}
    needs["http.request_headers"] = tostring(true)
    needs["flowint"] = {"cnt"}
    return needs
end

function match(args)
    a = ScFlowintGet(0);
    if a then
        ScFlowintSet(0, a + 1)
    else
        ScFlowintSet(0, 1)
    end

    a = ScFlowintGet(0);
    if a == 23 then
        return 1
    end

    return 0
end

return 0

Script's init call first registers "cnt" at id 0, then 0 is used to use
this var.
13 years ago
benches Initial add of the files. 17 years ago
contrib Add contrib dir and it's content to the dist. Bug 567 14 years ago
doc Update docs from wiki 14 years ago
libhtp Track transaction progress separately for each direction in libhtp. 13 years ago
m4 Prelude plugin: add detection in configure script 17 years ago
qa coccinelle: update pkt not set test 13 years ago
rules stream: handle extra different SYN/ACK 13 years ago
scripts suricatasc: fix make distcheck. 14 years ago
src luajit: add flowint support 13 years ago
.gitignore add configure summary to build-info output 14 years ago
COPYING Initial add of the files. 17 years ago
ChangeLog Update changelog for 1.4 14 years ago
LICENSE import of gplv2 LICENSE 17 years ago
Makefile.am unix-manager: add unix command socket and associated script 14 years ago
Makefile.cvs Initial add of the files. 17 years ago
acsite.m4 Added C99 defs/macros to acsite.m4 for CentOS 17 years ago
autogen.sh OpenBSD 5.2 build fixes, Unit test fix. 14 years ago
classification.config Import of classification.config 16 years ago
configure.ac Update configure.ac to detect Tile architecture. 13 years ago
doxygen.cfg doxygen: generate doc for acquisition modules 14 years ago
mkinstalldirs Update autojunk.sh + build update. 17 years ago
reference.config Add md5 to reference.config. 15 years ago
suricata.yaml.in nfq: add support for batch verdicts 13 years ago
threshold.config threshold: improve comments of shipped threshold.config, add links to wiki. 14 years ago