suricata
IPV4Hdr_ Struct Reference

#include <decode-ipv4.h>

Data Fields

uint8_t ip_verhl
 
uint8_t ip_tos
 
uint16_t ip_len
 
uint16_t ip_id
 
uint16_t ip_off
 
uint8_t ip_ttl
 
uint8_t ip_proto
 
uint16_t ip_csum
 
union {
   struct {
      struct in_addr   ip_src
 
      struct in_addr   ip_dst
 
   }   ip4_un1
 
   uint16_t   ip_addrs [4]
 
ip4_hdrun1
 

Detailed Description

Definition at line 70 of file decode-ipv4.h.

Field Documentation

union { ... } IPV4Hdr_::ip4_hdrun1
struct { ... } IPV4Hdr_::ip4_un1
uint16_t IPV4Hdr_::ip_addrs[4]

Definition at line 85 of file decode-ipv4.h.

uint16_t IPV4Hdr_::ip_csum

checksum

Definition at line 79 of file decode-ipv4.h.

Referenced by DefragTrackerFreeFrags(), DetectCsumRegister(), and ReCalculateChecksum().

struct in_addr IPV4Hdr_::ip_dst

destination address

Definition at line 83 of file decode-ipv4.h.

uint16_t IPV4Hdr_::ip_id

id

Definition at line 75 of file decode-ipv4.h.

Referenced by DetectIdFree(), and StreamTcpPseudoPacketCreateStreamEndPacket().

uint16_t IPV4Hdr_::ip_len

length

Definition at line 74 of file decode-ipv4.h.

Referenced by DefragTrackerFreeFrags(), and StreamTcpPseudoPacketCreateStreamEndPacket().

uint16_t IPV4Hdr_::ip_off
uint8_t IPV4Hdr_::ip_proto

protocol (tcp, udp, etc)

Definition at line 78 of file decode-ipv4.h.

Referenced by StreamTcpPseudoPacketCreateStreamEndPacket().

struct in_addr IPV4Hdr_::ip_src

source address

Definition at line 82 of file decode-ipv4.h.

uint8_t IPV4Hdr_::ip_tos

type of service

Definition at line 73 of file decode-ipv4.h.

Referenced by StreamTcpPseudoPacketCreateStreamEndPacket().

uint8_t IPV4Hdr_::ip_ttl

time to live

Definition at line 77 of file decode-ipv4.h.

Referenced by StreamTcpPseudoPacketCreateStreamEndPacket().

uint8_t IPV4Hdr_::ip_verhl

version & header length

Definition at line 72 of file decode-ipv4.h.

Referenced by StreamTcpPseudoPacketCreateStreamEndPacket().


The documentation for this struct was generated from the following file: