suricata
|
#include "suricata-common.h"
#include "decode.h"
#include "decode-ipv4.h"
#include "decode-tcp.h"
#include "decode-sctp.h"
#include "decode-udp.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-device.h"
Go to the source code of this file.
Functions | |
int | RejectSendLibnet11IPv4TCP (ThreadVars *tv, Packet *p, void *data, enum RejectDirection dir) |
int | RejectSendLibnet11IPv4ICMP (ThreadVars *tv, Packet *p, void *data, enum RejectDirection dir) |
int | RejectSendLibnet11IPv6TCP (ThreadVars *tv, Packet *p, void *data, enum RejectDirection dir) |
int | RejectSendLibnet11IPv6ICMP (ThreadVars *tv, Packet *p, void *data, enum RejectDirection dir) |
void | FreeCachedCtx (void) |
RespondRejectLibnet11 used to send out libnet based TCP resets and ICMP unreachables.
calculate TTL base on average from stream tracking
come up with a way for users to specify icmp unreachable type
Possibly default to port unreachable for UDP traffic this seems to be the default in flexresp and iptables
implement ipv6 resets
implement pre-alloc resets for speed
Definition in file respond-reject-libnet11.c.
void FreeCachedCtx | ( | void | ) |
Definition at line 608 of file respond-reject-libnet11.c.
References SCLogDebug.
int RejectSendLibnet11IPv4ICMP | ( | ThreadVars * | tv, |
Packet * | p, | ||
void * | data, | ||
enum RejectDirection | dir | ||
) |
Definition at line 584 of file respond-reject-libnet11.c.
References SC_ERR_LIBNET_NOT_ENABLED, and SCLogError.
Referenced by RejectSendIPv4ICMP().
int RejectSendLibnet11IPv4TCP | ( | ThreadVars * | tv, |
Packet * | p, | ||
void * | data, | ||
enum RejectDirection | dir | ||
) |
Definition at line 576 of file respond-reject-libnet11.c.
References SC_ERR_LIBNET_NOT_ENABLED, and SCLogError.
Referenced by RejectSendIPv4TCP().
int RejectSendLibnet11IPv6ICMP | ( | ThreadVars * | tv, |
Packet * | p, | ||
void * | data, | ||
enum RejectDirection | dir | ||
) |
Definition at line 600 of file respond-reject-libnet11.c.
References SC_ERR_LIBNET_NOT_ENABLED, and SCLogError.
Referenced by RejectSendIPv6ICMP().
int RejectSendLibnet11IPv6TCP | ( | ThreadVars * | tv, |
Packet * | p, | ||
void * | data, | ||
enum RejectDirection | dir | ||
) |
Definition at line 592 of file respond-reject-libnet11.c.
References SC_ERR_LIBNET_NOT_ENABLED, and SCLogError.
Referenced by RejectSendIPv6TCP().