tcpflow  1.6.1
About: tcpflow is a TCP/IP packet demultiplexer that captures data transmitted as part of TCP connections (flows), and stores the data in a way that is convenient for protocol analysis and debugging.
  Fossies Dox: tcpflow-1.6.1.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

extract.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define EXTRACT_16BITS(p)    ((u_int16_t)ntohs(*(const u_int16_t *)(p)))
 
#define EXTRACT_32BITS(p)    ((u_int32_t)ntohl(*(const u_int32_t *)(p)))
 
#define EXTRACT_64BITS(p)
 
#define EXTRACT_24BITS(p)
 
#define EXTRACT_LE_8BITS(p)   (*(p))
 
#define EXTRACT_LE_16BITS(p)
 
#define EXTRACT_LE_32BITS(p)
 
#define EXTRACT_LE_64BITS(p)
 

Macro Definition Documentation

◆ EXTRACT_16BITS

#define EXTRACT_16BITS (   p)     ((u_int16_t)ntohs(*(const u_int16_t *)(p)))

Definition at line 95 of file extract.h.

◆ EXTRACT_24BITS

#define EXTRACT_24BITS (   p)
Value:
((u_int32_t)((u_int32_t)*((const u_int8_t *)(p) + 0) << 16 | \
(u_int32_t)*((const u_int8_t *)(p) + 1) << 8 | \
(u_int32_t)*((const u_int8_t *)(p) + 2)))

Definition at line 104 of file extract.h.

◆ EXTRACT_32BITS

#define EXTRACT_32BITS (   p)     ((u_int32_t)ntohl(*(const u_int32_t *)(p)))

Definition at line 97 of file extract.h.

◆ EXTRACT_64BITS

#define EXTRACT_64BITS (   p)
Value:
((u_int64_t)(((u_int64_t)ntohl(*((const u_int32_t *)(p) + 0))) << 32 | \
((u_int64_t)ntohl(*((const u_int32_t *)(p) + 1))) << 0))

Definition at line 99 of file extract.h.

◆ EXTRACT_LE_16BITS

#define EXTRACT_LE_16BITS (   p)
Value:
((u_int16_t)((u_int16_t)*((const u_int8_t *)(p) + 1) << 8 | \
(u_int16_t)*((const u_int8_t *)(p) + 0)))

Definition at line 114 of file extract.h.

◆ EXTRACT_LE_32BITS

#define EXTRACT_LE_32BITS (   p)
Value:
((u_int32_t)((u_int32_t)*((const u_int8_t *)(p) + 3) << 24 | \
(u_int32_t)*((const u_int8_t *)(p) + 2) << 16 | \
(u_int32_t)*((const u_int8_t *)(p) + 1) << 8 | \
(u_int32_t)*((const u_int8_t *)(p) + 0)))

Definition at line 117 of file extract.h.

◆ EXTRACT_LE_64BITS

#define EXTRACT_LE_64BITS (   p)
Value:
((u_int64_t)((u_int64_t)*((const u_int8_t *)(p) + 7) << 56 | \
(u_int64_t)*((const u_int8_t *)(p) + 6) << 48 | \
(u_int64_t)*((const u_int8_t *)(p) + 5) << 40 | \
(u_int64_t)*((const u_int8_t *)(p) + 4) << 32 | \
(u_int64_t)*((const u_int8_t *)(p) + 3) << 24 | \
(u_int64_t)*((const u_int8_t *)(p) + 2) << 16 | \
(u_int64_t)*((const u_int8_t *)(p) + 1) << 8 | \
(u_int64_t)*((const u_int8_t *)(p) + 0)))

Definition at line 122 of file extract.h.

◆ EXTRACT_LE_8BITS

#define EXTRACT_LE_8BITS (   p)    (*(p))

Definition at line 113 of file extract.h.