Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_fsm.h
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | |||||
/* states > TCPS_CLOSE_WAIT are those where user has closed */ | /* states > TCPS_CLOSE_WAIT are those where user has closed */ | ||||
#define TCPS_FIN_WAIT_1 6 /* have closed, sent fin */ | #define TCPS_FIN_WAIT_1 6 /* have closed, sent fin */ | ||||
#define TCPS_CLOSING 7 /* closed xchd FIN; await FIN ACK */ | #define TCPS_CLOSING 7 /* closed xchd FIN; await FIN ACK */ | ||||
#define TCPS_LAST_ACK 8 /* had fin and close; await FIN ACK */ | #define TCPS_LAST_ACK 8 /* had fin and close; await FIN ACK */ | ||||
/* states > TCPS_CLOSE_WAIT && < TCPS_FIN_WAIT_2 await ACK of FIN */ | /* states > TCPS_CLOSE_WAIT && < TCPS_FIN_WAIT_2 await ACK of FIN */ | ||||
#define TCPS_FIN_WAIT_2 9 /* have closed, fin is acked */ | #define TCPS_FIN_WAIT_2 9 /* have closed, fin is acked */ | ||||
#define TCPS_TIME_WAIT 10 /* in 2*msl quiet wait after close */ | #define TCPS_TIME_WAIT 10 /* in 2*msl quiet wait after close */ | ||||
/* for KAME src sync over BSD*'s */ | |||||
#define TCP6_NSTATES TCP_NSTATES | |||||
#define TCP6S_CLOSED TCPS_CLOSED | |||||
#define TCP6S_LISTEN TCPS_LISTEN | |||||
#define TCP6S_SYN_SENT TCPS_SYN_SENT | |||||
#define TCP6S_SYN_RECEIVED TCPS_SYN_RECEIVED | |||||
#define TCP6S_ESTABLISHED TCPS_ESTABLISHED | |||||
#define TCP6S_CLOSE_WAIT TCPS_CLOSE_WAIT | |||||
#define TCP6S_FIN_WAIT_1 TCPS_FIN_WAIT_1 | |||||
#define TCP6S_CLOSING TCPS_CLOSING | |||||
#define TCP6S_LAST_ACK TCPS_LAST_ACK | |||||
#define TCP6S_FIN_WAIT_2 TCPS_FIN_WAIT_2 | |||||
#define TCP6S_TIME_WAIT TCPS_TIME_WAIT | |||||
#define TCPS_HAVERCVDSYN(s) ((s) >= TCPS_SYN_RECEIVED) | #define TCPS_HAVERCVDSYN(s) ((s) >= TCPS_SYN_RECEIVED) | ||||
#define TCPS_HAVEESTABLISHED(s) ((s) >= TCPS_ESTABLISHED) | #define TCPS_HAVEESTABLISHED(s) ((s) >= TCPS_ESTABLISHED) | ||||
#define TCPS_HAVERCVDFIN(s) \ | #define TCPS_HAVERCVDFIN(s) \ | ||||
((s) == TCPS_CLOSE_WAIT || ((s) >= TCPS_CLOSING && (s) != TCPS_FIN_WAIT_2)) | ((s) == TCPS_CLOSE_WAIT || ((s) >= TCPS_CLOSING && (s) != TCPS_FIN_WAIT_2)) | ||||
#ifdef TCPOUTFLAGS | #ifdef TCPOUTFLAGS | ||||
/* | /* | ||||
* Flags used when sending segments in tcp_output. Basic flags (TH_RST, | * Flags used when sending segments in tcp_output. Basic flags (TH_RST, | ||||
Show All 32 Lines |