All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Enumerations
sir_tcp_syncache.h File Reference
#include <cvmx.h>
#include <cvmx-pow.h>
#include <cvmx-spinlock.h>
#include "common/sir_common_includes.h"
#include "socket/sir_isocket.h"
Include dependency graph for sir_tcp_syncache.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TSackBlock
 
struct  TSackList
 
struct  TTimeStampBlock
 
struct  sir_tcp_parse
 
struct  sir_shadow_cache
 
struct  TSendAccelerate
 
struct  sir_tcp_tcb
 
class  CSiriusSYNCache
 

Macros

#define CVMX_FPA_SYNCACHE_POOL   CVMX_FPA_PACKET_POOL
 
#define SYNCACHE_TIMER_INTERVAL   200
 
#define MAXSACKBLKS   4
 
#define PENDINGCONNPERBUCKET   3
 
#define MINRTO   1000
 
#define MAXRTO   60000
 
#define DELAYEDACKTIME   100
 
#define MSLTIMEx2   60000
 
#define MAXLINGERTIME   30000
 
#define SYNCACHE_MAX_SETUP_TIME   30000
 
#define MSLTIME   30000
 
#define DEFAULTRECVTIMEOUT   100000
 
#define DEFAULTWINDOWSIZE   (64*1024)-1
 
#define DEFAULTMSS   536
 
#define MAXCWNDVALUE   1000000ul
 
#define SIR_TCP_OK   0
 
#define SIR_TCP_NOHEADERSPACE   1
 
#define SIR_TCP_NULLPOINTER   2
 
#define SIR_TCP_TOOMANYOPTIONS   3
 
#define SIR_TCP_NO_RESOURCES   4
 
#define SIR_TCP_EMPTY_RESOURCE   5
 
#define SIR_TCP_IP_ERROR   6
 
#define SIR_TCP_FIN   0x01
 
#define SIR_TCP_SYN   0x02
 
#define SIR_TCP_RST   0x04
 
#define SIR_TCP_PSH   0x08
 
#define SIR_TCP_ACK   0x10
 
#define SIR_TCP_URG   0x20
 
#define SIR_TCP_UAC   0x50
 
#define SIR_KEEPALIVE_IDLE   7200
 
#define SIR_KEEPALIVE_INTERV   75
 
#define SIR_KEEPALIVE_INIT   75
 
#define SIR_KEEPALIVE_CNT   8
 
#define SYNCACHE_POW2   16
 
#define SHADOWCACHE_POW2   12
 
#define TCP_CHANGE_STATE(new_state)
 

Enumerations

enum  ETcp_Session_State {
  TCP_STATE_CLOSED, TCP_STATE_LISTEN, TCP_STATE_SYN_REC, TCP_STATE_SYN_SENT,
  TCP_STATE_ESTABLISHED, TCP_STATE_FIN_WAIT1, TCP_STATE_FIN_WAIT2, TCP_STATE_CLOSING,
  TCP_STATE_CLOSE_WAIT, TCP_STATE_LAST_ACK, TCP_STATE_TIME_WAIT
}
 
enum  ETcp_User_Calls {
  TCP_USERCALL_OPEN, TCP_USERCALL_SEND, TCP_USERCALL_RECEIVE, TCP_USERCALL_CLOSE,
  TCP_USERCALL_ABORT, TCP_USERCALL_STATUS
}
 
enum  ENotifyType {
  NoEvent_Notify = 0x0, Accept_Notify = 0x1, Read_Notify = 0x2, Timer_Notify = 0x4,
  Close_Notify = 0x8, Reset_Rx_Notify = 0x10, Reset_Tx_Notify = 0x20, Conn_Error = 0x40,
  Conn_Established = 0x80, Conn_Can_Send = 0x100
}
 

Macro Definition Documentation

#define CVMX_FPA_SYNCACHE_POOL   CVMX_FPA_PACKET_POOL

Definition at line 20 of file sir_tcp_syncache.h.

#define DEFAULTMSS   536

Definition at line 45 of file sir_tcp_syncache.h.

#define DEFAULTRECVTIMEOUT   100000

Definition at line 42 of file sir_tcp_syncache.h.

#define DEFAULTWINDOWSIZE   (64*1024)-1

Definition at line 44 of file sir_tcp_syncache.h.

#define DELAYEDACKTIME   100

Definition at line 31 of file sir_tcp_syncache.h.

#define MAXCWNDVALUE   1000000ul

Definition at line 46 of file sir_tcp_syncache.h.

#define MAXLINGERTIME   30000

Definition at line 39 of file sir_tcp_syncache.h.

#define MAXRTO   60000

Definition at line 29 of file sir_tcp_syncache.h.

#define MAXSACKBLKS   4

Definition at line 22 of file sir_tcp_syncache.h.

#define MINRTO   1000

Definition at line 27 of file sir_tcp_syncache.h.

#define MSLTIME   30000

Definition at line 41 of file sir_tcp_syncache.h.

#define MSLTIMEx2   60000

Definition at line 32 of file sir_tcp_syncache.h.

#define PENDINGCONNPERBUCKET   3

Definition at line 23 of file sir_tcp_syncache.h.

#define SHADOWCACHE_POW2   12

Definition at line 73 of file sir_tcp_syncache.h.

#define SIR_KEEPALIVE_CNT   8

Definition at line 70 of file sir_tcp_syncache.h.

#define SIR_KEEPALIVE_IDLE   7200

Definition at line 67 of file sir_tcp_syncache.h.

#define SIR_KEEPALIVE_INIT   75

Definition at line 69 of file sir_tcp_syncache.h.

#define SIR_KEEPALIVE_INTERV   75

Definition at line 68 of file sir_tcp_syncache.h.

#define SIR_TCP_ACK   0x10

Definition at line 62 of file sir_tcp_syncache.h.

#define SIR_TCP_EMPTY_RESOURCE   5

Definition at line 54 of file sir_tcp_syncache.h.

#define SIR_TCP_FIN   0x01

Definition at line 58 of file sir_tcp_syncache.h.

#define SIR_TCP_IP_ERROR   6

Definition at line 55 of file sir_tcp_syncache.h.

#define SIR_TCP_NO_RESOURCES   4

Definition at line 53 of file sir_tcp_syncache.h.

#define SIR_TCP_NOHEADERSPACE   1

Definition at line 50 of file sir_tcp_syncache.h.

#define SIR_TCP_NULLPOINTER   2

Definition at line 51 of file sir_tcp_syncache.h.

#define SIR_TCP_OK   0

Definition at line 49 of file sir_tcp_syncache.h.

#define SIR_TCP_PSH   0x08

Definition at line 61 of file sir_tcp_syncache.h.

#define SIR_TCP_RST   0x04

Definition at line 60 of file sir_tcp_syncache.h.

#define SIR_TCP_SYN   0x02

Definition at line 59 of file sir_tcp_syncache.h.

#define SIR_TCP_TOOMANYOPTIONS   3

Definition at line 52 of file sir_tcp_syncache.h.

#define SIR_TCP_UAC   0x50

Definition at line 64 of file sir_tcp_syncache.h.

#define SIR_TCP_URG   0x20

Definition at line 63 of file sir_tcp_syncache.h.

#define SYNCACHE_MAX_SETUP_TIME   30000

Definition at line 40 of file sir_tcp_syncache.h.

#define SYNCACHE_POW2   16

Definition at line 72 of file sir_tcp_syncache.h.

#define SYNCACHE_TIMER_INTERVAL   200

Definition at line 21 of file sir_tcp_syncache.h.

#define TCP_CHANGE_STATE (   new_state)
Value:
({ \
ptTCB->ePrevSynCacheState = eSessionState; \
ptTCB->eSynCacheState = new_state; \
SIR_COMMON_DEBUG_MSG(SIR_INFO_LEVEL_1, "Changing from state %d to state %d on %s:%d\n", (int)eSessionState, (int)(new_state),__FUNCTION__, __LINE__); \
})
#define SIR_COMMON_DEBUG_MSG(lvl, format, args...)
Definition: sir_common.h:68

Definition at line 76 of file sir_tcp_syncache.h.

Enumeration Type Documentation

Enumerator
NoEvent_Notify 
Accept_Notify 
Read_Notify 
Timer_Notify 
Close_Notify 
Reset_Rx_Notify 
Reset_Tx_Notify 
Conn_Error 
Conn_Established 
Conn_Can_Send 

Definition at line 109 of file sir_tcp_syncache.h.

Enumerator
TCP_STATE_CLOSED 
TCP_STATE_LISTEN 
TCP_STATE_SYN_REC 
TCP_STATE_SYN_SENT 
TCP_STATE_ESTABLISHED 
TCP_STATE_FIN_WAIT1 
TCP_STATE_FIN_WAIT2 
TCP_STATE_CLOSING 
TCP_STATE_CLOSE_WAIT 
TCP_STATE_LAST_ACK 
TCP_STATE_TIME_WAIT 

Definition at line 84 of file sir_tcp_syncache.h.

Enumerator
TCP_USERCALL_OPEN 
TCP_USERCALL_SEND 
TCP_USERCALL_RECEIVE 
TCP_USERCALL_CLOSE 
TCP_USERCALL_ABORT 
TCP_USERCALL_STATUS 

Definition at line 99 of file sir_tcp_syncache.h.