suricata
util-host-info.c File Reference
#include "suricata-common.h"
#include "util-host-info.h"
#include "util-byte.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]+)"
 
#define MAX_SUBSTRINGS   3 * 6
 

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

◆ MAX_SUBSTRINGS

#define MAX_SUBSTRINGS   3 * 6

◆ VERSION_REGEX

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

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

Function Documentation

◆ SCKernelVersionIsAtLeast()

int SCKernelVersionIsAtLeast ( int  major,
int  minor 
)

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

References MAX_SUBSTRINGS.