libmooshika
Data Structures | Macros | Typedefs
rmitm.h File Reference
#include <sys/types.h>
#include <netinet/in.h>
#include <netinet/in_systm.h>

Go to the source code of this file.

Data Structures

struct  ipv6_hdr
 
struct  tcp_hdr
 
struct  pkt_hdr
 

Macros

#define TH_DO_MASK   0xf0
 
#define TH_FLAGS_MASK   0x3f
 
#define THF_FIN   0x1
 
#define THF_SYN   0x2
 
#define THF_RST   0x4
 
#define THF_PSH   0x8
 
#define THF_ACK   0x10
 
#define THF_URG   0x20
 
#define PACKET_HDR_LEN   sizeof(struct pkt_hdr)
 
#define CHECKSUM_CARRY(x)
 

Typedefs

typedef struct tcp_hdr tcp_hdr_t
 

Macro Definition Documentation

#define CHECKSUM_CARRY (   x)
Value:
do { \
x = ((x & 0xffff) + (x >> 16)); \
if (x > 0xffff) \
x -= 0xffff; \
} while (0)
#define PACKET_HDR_LEN   sizeof(struct pkt_hdr)

Referenced by main().

#define TH_DO_MASK   0xf0
#define TH_FLAGS_MASK   0x3f
#define THF_ACK   0x10
#define THF_FIN   0x1
#define THF_PSH   0x8
#define THF_RST   0x4
#define THF_SYN   0x2
#define THF_URG   0x20

Typedef Documentation

typedef struct tcp_hdr tcp_hdr_t