reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
ResipHep.hxx File Reference
#include <netinet/in.h>
#include <netinet/ip6.h>
#include "rutil/compat.hxx"

Go to the source code of this file.

Classes

struct  hep_hdr
 
struct  hep_timehdr
 
struct  hep_iphdr
 
struct  hep_ip6hdr
 

Macros

#define PACKED_STRUCT(__StructDeclaration__)   __StructDeclaration__
 

Typedefs

typedef struct hep_chunk hep_chunk_t
 
typedef struct hep_chunk_uint8 hep_chunk_uint8_t
 
typedef struct hep_chunk_uint16 hep_chunk_uint16_t
 
typedef struct hep_chunk_uint32 hep_chunk_uint32_t
 
typedef struct hep_chunk_str hep_chunk_str_t
 
typedef struct hep_chunk_ip4 hep_chunk_ip4_t
 
typedef struct hep_chunk_ip6 hep_chunk_ip6_t
 
typedef struct hep_ctrl hep_ctrl_t
 
typedef struct hep_chunk_payload hep_chunk_payload_t
 
typedef struct hep_generic hep_generic_t
 

Functions

 PACKED_STRUCT (struct hep_chunk{ u_int16_t vendor_id;u_int16_t type_id;u_int16_t length;})
 
 PACKED_STRUCT (struct hep_chunk_uint8 { hep_chunk_t chunk;u_int8_t data;})
 
 PACKED_STRUCT (struct hep_chunk_uint16 { hep_chunk_t chunk;u_int16_t data;})
 
 PACKED_STRUCT (struct hep_chunk_uint32 { hep_chunk_t chunk;u_int32_t data;})
 
 PACKED_STRUCT (struct hep_chunk_str { hep_chunk_t chunk;char *data;})
 
 PACKED_STRUCT (struct hep_chunk_ip4 { hep_chunk_t chunk;struct in_addr data;})
 
 PACKED_STRUCT (struct hep_chunk_ip6 { hep_chunk_t chunk;struct in6_addr data;})
 
 PACKED_STRUCT (struct hep_ctrl { char id[4];u_int16_t length;})
 
 PACKED_STRUCT (struct hep_chunk_payload { hep_chunk_t chunk;char *data;})
 
 PACKED_STRUCT (struct hep_generic { hep_ctrl_t header;hep_chunk_uint8_t ip_family;hep_chunk_uint8_t ip_proto;hep_chunk_uint16_t src_port;hep_chunk_uint16_t dst_port;hep_chunk_uint32_t time_sec;hep_chunk_uint32_t time_usec;hep_chunk_uint8_t proto_t;hep_chunk_uint32_t capt_id;})
 
uint64_t hepUnixTimestamp ()
 

Variables

const int udp_payload_offset = 14 + 20 + 8
 

Macro Definition Documentation

◆ PACKED_STRUCT

Definition at line 25 of file ResipHep.hxx.

Typedef Documentation

◆ hep_chunk_ip4_t

◆ hep_chunk_ip6_t

◆ hep_chunk_payload_t

◆ hep_chunk_str_t

◆ hep_chunk_t

Definition at line 36 of file ResipHep.hxx.

◆ hep_chunk_uint16_t

◆ hep_chunk_uint32_t

◆ hep_chunk_uint8_t

◆ hep_ctrl_t

Definition at line 87 of file ResipHep.hxx.

◆ hep_generic_t

Definition at line 110 of file ResipHep.hxx.

Function Documentation

◆ hepUnixTimestamp()

uint64_t hepUnixTimestamp ( )

Definition at line 18 of file ResipHep.cxx.

◆ PACKED_STRUCT() [1/10]

PACKED_STRUCT ( struct hep_chunk_ip4 { hep_chunk_t chunk;struct in_addr data;}  )

◆ PACKED_STRUCT() [2/10]

PACKED_STRUCT ( struct hep_chunk_ip6 { hep_chunk_t chunk;struct in6_addr data;}  )

◆ PACKED_STRUCT() [3/10]

PACKED_STRUCT ( struct hep_chunk_payload { hep_chunk_t chunk;char *data;}  )

◆ PACKED_STRUCT() [4/10]

PACKED_STRUCT ( struct hep_chunk_str { hep_chunk_t chunk;char *data;}  )

◆ PACKED_STRUCT() [5/10]

PACKED_STRUCT ( struct hep_chunk_uint16 { hep_chunk_t chunk;u_int16_t data;}  )

◆ PACKED_STRUCT() [6/10]

PACKED_STRUCT ( struct hep_chunk_uint32 { hep_chunk_t chunk;u_int32_t data;}  )

◆ PACKED_STRUCT() [7/10]

PACKED_STRUCT ( struct hep_chunk_uint8 { hep_chunk_t chunk;u_int8_t data;}  )

◆ PACKED_STRUCT() [8/10]

◆ PACKED_STRUCT() [9/10]

PACKED_STRUCT ( struct hep_ctrl { char id[4];u_int16_t length;}  )

◆ PACKED_STRUCT() [10/10]

Variable Documentation

◆ udp_payload_offset

const int udp_payload_offset = 14 + 20 + 8

Definition at line 113 of file ResipHep.hxx.