#include "berkeleyapi.h"
#include "flag.h"
Go to the source code of this file.
Data Structures | |
struct | tcp_packet_info |
structure to hold essential information about a tcp packet More... | |
struct | port_alloc |
a structure to contain the port allocation method, and a flag indicating when it is set More... | |
struct | helper_info |
structure with all the helper connection informatino More... | |
struct | peer_info |
structure with all the peer connection information More... | |
struct | buddy_info |
structure with all the buddy connection information More... | |
Defines | |
#define | PORT_ADD(x, y) (htons(ntohs(x)+y)) |
a macro to so port arithmatic | |
#define | PORT_2HBO(x) (ntohs(x)) |
a macro to return the port in host byte order | |
#define | PORT_UNKNOWN 0 |
macro for unknown port value | |
#define | IP_UNKNOWN 0 |
macro for unknown ip value | |
#define | MAX_IP_STR_LEN 16 |
the maximum length an IP string can be (xxx.xxx.xxx.xxx+NULL) = 16 | |
#define | SOCKET_UNKNOWN -1 |
macro for an unknown socket value | |
#define | SEQ_NUM_ADD(x, y) (htonl(ntohl(x)+y)) |
macro to aid in sequence number math | |
#define | SEQ_NUM_2HBO(x) (ntohl(x)) |
a macro to return the sequence number in host byte order | |
#define | SEQ_NUM_UNKNOWN 0 |
macro for unknown sequence number | |
#define | WINDOW_2HBO(x) (ntohs(x)) |
a macro to return the window in host byte order | |
#define | WINDOW_UNKNOWN 0 |
macro for unknown window size | |
#define | WINDOW_DEFAULT 0x6815 |
macro for the default window size (used in spoofing) | |
Typedefs | |
typedef unsigned short | port_t |
typedef for port type (16 bit network byte order unsigned short) | |
typedef unsigned long | ip_t |
typedef for an ip type (32 bit network byte order unsigned long ) | |
typedef int | sock_t |
typedef for socket descriptor type | |
typedef unsigned long | seq_num_t |
sequence number type (32 bit network byte order unsigned long) | |
typedef unsigned short | window_t |
window type (16 bit network byte order unsigned short) | |
typedef tcp_packet_info | tcp_packet_info_t |
typedef for the tcp_packet_info structure type | |
typedef port_alloc | port_alloc_t |
typedef for the port alloc type | |
typedef helper_info | helper_info_t |
typedef for the helper_info struct | |
typedef peer_info | peer_info_t |
typedef for teh peer_info structure | |
typedef buddy_info | buddy_info_t |
typedef for the buddy_info structure | |
Variables | |
tcp_packet_info | packed |
structure to hold essential information about a tcp packet |
Definition in file def.h.