Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp.h
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | |||||
#define TH_FIN 0x01 | #define TH_FIN 0x01 | ||||
#define TH_SYN 0x02 | #define TH_SYN 0x02 | ||||
#define TH_RST 0x04 | #define TH_RST 0x04 | ||||
#define TH_PUSH 0x08 | #define TH_PUSH 0x08 | ||||
#define TH_ACK 0x10 | #define TH_ACK 0x10 | ||||
#define TH_URG 0x20 | #define TH_URG 0x20 | ||||
#define TH_ECE 0x40 | #define TH_ECE 0x40 | ||||
#define TH_CWR 0x80 | #define TH_CWR 0x80 | ||||
#define TH_AE 0x100 /* maps into th_x2 */ | |||||
#define TH_FLAGS (TH_FIN|TH_SYN|TH_RST|TH_PUSH|TH_ACK|TH_URG|TH_ECE|TH_CWR) | #define TH_FLAGS (TH_FIN|TH_SYN|TH_RST|TH_PUSH|TH_ACK|TH_URG|TH_ECE|TH_CWR) | ||||
#define PRINT_TH_FLAGS "\20\1FIN\2SYN\3RST\4PUSH\5ACK\6URG\7ECE\10CWR" | #define PRINT_TH_FLAGS "\20\1FIN\2SYN\3RST\4PUSH\5ACK\6URG\7ECE\10CWR\11AE" | ||||
u_short th_win; /* window */ | u_short th_win; /* window */ | ||||
u_short th_sum; /* checksum */ | u_short th_sum; /* checksum */ | ||||
u_short th_urp; /* urgent pointer */ | u_short th_urp; /* urgent pointer */ | ||||
}; | }; | ||||
#define TCPOPT_EOL 0 | #define TCPOPT_EOL 0 | ||||
#define TCPOLEN_EOL 1 | #define TCPOLEN_EOL 1 | ||||
▲ Show 20 Lines • Show All 284 Lines • Show Last 20 Lines |