suricata
util-host-info.c File Reference
#include "suricata-common.h"
#include "util-host-info.h"
#include "util-byte.h"
#include "util-debug.h"
#include <sys/utsname.h>
Include dependency graph for util-host-info.c:

Go to the source code of this file.

Macros

#define VERSION_REGEX   "^([0-9]+)\\.([0-9]+)"
 

Functions

int SCKernelVersionIsAtLeast (int major, int minor)
 

Detailed Description

Author
Eric Leblond eric@.nosp@m.regi.nosp@m.t.org

Get information on running host

Definition in file util-host-info.c.

Macro Definition Documentation

◆ VERSION_REGEX

#define VERSION_REGEX   "^([0-9]+)\\.([0-9]+)"

Definition at line 36 of file util-host-info.c.

Function Documentation

◆ SCKernelVersionIsAtLeast()

int SCKernelVersionIsAtLeast ( int  major,
int  minor 
)

Definition at line 37 of file util-host-info.c.

References SCLogDebug, SCLogError, StringParseInt32(), and VERSION_REGEX.

Here is the call graph for this function: