#include "decode.h"
#include "common_defs.h"
#include <string.h>
Go to the source code of this file.
Typedefs | |
typedef Packet | FLOWPACKET |
Functions | |
static int INLINE | IsIPv4Packet (FLOWPACKET *p) |
static int INLINE | IsTcpPacket (FLOWPACKET *p) |
static u_int8_t INLINE | GetTcpFlags (FLOWPACKET *p) |
static u_int16_t INLINE | GetIPv4SrcPort (FLOWPACKET *p) |
static u_int16_t INLINE | GetIPv4DstPort (FLOWPACKET *p) |
static u_int8_t INLINE | GetIPv4Proto (FLOWPACKET *p) |
static u_int32_t INLINE | GetIPv4SrcIp (FLOWPACKET *p) |
static u_int32_t INLINE | GetIPv4DstIp (FLOWPACKET *p) |
static int INLINE | GetIPv4Len (FLOWPACKET *p) |
Definition in file flow_packet.h.
|
Definition at line 21 of file flow_packet.h. |
|
Returns the DIP portion of a packet. This function assumes that there this packet is has been properly identified to contain an IPv4 Header. This performs memcpy's incase the IPH is not aligned in snort.
Definition at line 174 of file flow_packet.h. References FLOWASSERT, _IPHdr::ip_dst, and _Packet::iph. Referenced by flowkey_make(), and flowps_mkpacket(). |
|
Returns the Destination Port portion of a packet in host byte order. This function assumes that there this packet is has been properly identified to contain an IPv4 Header.
Definition at line 108 of file flow_packet.h. References _Packet::dp, and FLOWASSERT. Referenced by flowkey_make(). |
|
Get the IP length of a packet.
Definition at line 192 of file flow_packet.h. References _Packet::dsize, FLOWASSERT, _IPHdr::ip_len, and _Packet::iph. Referenced by flowstat_callback(). |
|
Returns the IP Protocol portion of a packet. This function assumes that there this packet is has been properly identified to contain an IPv4 Header.
Definition at line 129 of file flow_packet.h. References FLOWASSERT, _IPHdr::ip_proto, and _Packet::iph. Referenced by flowkey_make(). |
|
Returns the SIP portion of a packet. This function assumes that there this packet is has been properly identified to contain an IPv4 Header. This performs memcpy's incase the IPH is not aligned in snort.
Definition at line 151 of file flow_packet.h. References FLOWASSERT, _IPHdr::ip_src, and _Packet::iph. Referenced by flowkey_make(). |
|
Returns the Source Port portion of a packet in host byte order. This function assumes that there this packet is has been properly identified to contain an IPv4 Header.
Definition at line 86 of file flow_packet.h. References FLOWASSERT, and _Packet::sp. Referenced by flowkey_make(). |
|
Determine if this is an Tcp packet
Definition at line 64 of file flow_packet.h. References FLOWASSERT, _Packet::tcph, and _TCPHdr::th_flags. Referenced by flowps_newflow_callback(). |
|
Determine if this is an IPV4 packet
Definition at line 30 of file flow_packet.h. References FLOWASSERT, and _Packet::iph. Referenced by flow_classifier(), and flowkey_make(). |
|
Determine if this is an Tcp packet
Definition at line 47 of file flow_packet.h. References FLOWASSERT, and _Packet::tcph. Referenced by flowps_newflow_callback(). |