diff options
author | Kacheong Poon <Kacheong.Poon@Sun.COM> | 2009-12-10 20:51:16 -0800 |
---|---|---|
committer | Kacheong Poon <Kacheong.Poon@Sun.COM> | 2009-12-10 20:51:16 -0800 |
commit | 93fcb0b9b3e0792a42d10584632c1c566f89d64a (patch) | |
tree | facbe4e864b03573a09532206ff56aaf2d20618c /usr/src/uts/common/inet/tcp_stack.h | |
parent | e0ab0eca1a1f461b67482b50176e92440d1a08b4 (diff) | |
download | illumos-gate-93fcb0b9b3e0792a42d10584632c1c566f89d64a.tar.gz |
6759500 [CVE-2008-4609] FICORA #193744 TCP vulnerabilities
6905405 interactive performance on rlogin / telnet connections to localhost extremly bad
Diffstat (limited to 'usr/src/uts/common/inet/tcp_stack.h')
-rw-r--r-- | usr/src/uts/common/inet/tcp_stack.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/usr/src/uts/common/inet/tcp_stack.h b/usr/src/uts/common/inet/tcp_stack.h index a254da4b43..34d5e087fa 100644 --- a/usr/src/uts/common/inet/tcp_stack.h +++ b/usr/src/uts/common/inet/tcp_stack.h @@ -103,6 +103,10 @@ typedef struct tcp_stat { kstat_named_t tcp_lso_disabled; kstat_named_t tcp_lso_times; kstat_named_t tcp_lso_pkt_out; + kstat_named_t tcp_listen_cnt_drop; + kstat_named_t tcp_listen_mem_drop; + kstat_named_t tcp_zwin_ack_syn; + kstat_named_t tcp_rst_unsent; } tcp_stat_t; #define TCP_STAT(tcps, x) ((tcps)->tcps_statistics.x.value.ui64++) @@ -179,16 +183,25 @@ struct tcp_stack { * TCP to sent out tcp_rst_sent_rate (ndd param) number of RSTs in * each 1 second interval. This is to protect TCP against DoS attack. */ - clock_t tcps_last_rst_intrvl; + int64_t tcps_last_rst_intrvl; uint32_t tcps_rst_cnt; - /* The number of RST not sent because of the rate limit. */ - uint32_t tcps_rst_unsent; + ldi_ident_t tcps_ldi_ident; /* Used to synchronize access when reclaiming memory */ mblk_t *tcps_ixa_cleanup_mp; kmutex_t tcps_ixa_cleanup_lock; kcondvar_t tcps_ixa_cleanup_cv; + + /* Variables for handling kmem reclaim call back. */ + kmutex_t tcps_reclaim_lock; + boolean_t tcps_reclaim; + timeout_id_t tcps_reclaim_tid; + uint32_t tcps_reclaim_period; + + /* Listener connection limit configuration. */ + kmutex_t tcps_listener_conf_lock; + list_t tcps_listener_conf; }; typedef struct tcp_stack tcp_stack_t; |