suricata
respond-reject.c File Reference
#include "suricata-common.h"
#include "decode.h"
#include "packet-queue.h"
#include "threads.h"
#include "threadvars.h"
#include "tm-queuehandlers.h"
#include "tm-threads.h"
#include "action-globals.h"
#include "respond-reject.h"
#include "respond-reject-libnet11.h"
#include "util-debug.h"
#include "util-privs.h"
Include dependency graph for respond-reject.c:

Go to the source code of this file.

Functions

int RejectSendIPv4TCP (ThreadVars *, Packet *, void *)
 
int RejectSendIPv4ICMP (ThreadVars *, Packet *, void *)
 
int RejectSendIPv6TCP (ThreadVars *, Packet *, void *)
 
int RejectSendIPv6ICMP (ThreadVars *, Packet *, void *)
 
void TmModuleRespondRejectRegister (void)
 

Detailed Description

Author
William Metcalf willi.nosp@m.am.m.nosp@m.etcal.nosp@m.f@gm.nosp@m.ail.c.nosp@m.om

RespondReject is a threaded wrapper for sending Rejects

Todo:
RespondRejectFunc returns 1 on error, 0 on ok... why? For now it should just return 0 always, error handling is a TODO in the threading model (VJ)

Definition in file respond-reject.c.

Function Documentation

◆ RejectSendIPv4ICMP()

int RejectSendIPv4ICMP ( ThreadVars tv,
Packet p,
void *  data 
)

◆ RejectSendIPv4TCP()

int RejectSendIPv4TCP ( ThreadVars tv,
Packet p,
void *  data 
)

Definition at line 94 of file respond-reject.c.

References ACTION_REJECT, ACTION_REJECT_BOTH, ACTION_REJECT_DST, PACKET_TEST_ACTION, REJECT_DIR_DST, REJECT_DIR_SRC, RejectSendLibnet11L3IPv4TCP(), SCEnter, and SCReturnInt.

Here is the call graph for this function:

◆ RejectSendIPv6ICMP()

int RejectSendIPv6ICMP ( ThreadVars tv,
Packet p,
void *  data 
)

◆ RejectSendIPv6TCP()

int RejectSendIPv6TCP ( ThreadVars tv,
Packet p,
void *  data 
)

◆ TmModuleRespondRejectRegister()

void TmModuleRespondRejectRegister ( void  )

Definition at line 50 of file respond-reject.c.

References TmModule_::Func, TmModule_::name, TmModule_::ThreadInit, tmm_modules, and TMM_RESPONDREJECT.

Referenced by RegisterAllModules().

Here is the caller graph for this function: