Lines Matching defs:tcp

47 #include <inet/tcp.h>
99 * Was this tcp created via socket() interface?
101 #define TCP_IS_SOCKET(tcp) ((tcp)->tcp_issocket)
104 * Is this tcp not attached to any upper client?
106 #define TCP_IS_DETACHED(tcp) ((tcp)->tcp_detached)
121 #define TCP_TIMER(tcp, f, tim) \
122 tcp_timeout(tcp->tcp_connp, f, tim)
123 #define TCP_TIMER_CANCEL(tcp, id) \
124 tcp_timeout_cancel(tcp->tcp_connp, id)
129 #define TCP_TIMER_RESTART(tcp, intvl) { \
130 if ((tcp)->tcp_timer_tid != 0) \
131 (void) TCP_TIMER_CANCEL((tcp), (tcp)->tcp_timer_tid); \
132 (tcp)->tcp_timer_tid = TCP_TIMER((tcp), tcp_timer, (intvl)); \
238 #define TCP_SET_INIT_CWND(tcp, mss, def_max_init_cwnd) \
240 if ((tcp)->tcp_init_cwnd == 0) { \
242 (tcp)->tcp_cwnd = MIN(4 * (mss), \
245 (tcp)->tcp_cwnd = MIN(TCP_MAX_INIT_CWND * (mss),\
249 (tcp)->tcp_cwnd = (tcp)->tcp_init_cwnd * (mss); \
251 tcp->tcp_cwnd_cnt = 0; \
261 #define TCP_SET_ECT(tcp, iph) \
262 if ((tcp)->tcp_connp->conn_ipversion == IPV4_VERSION) { \
274 #define TCP_SET_RTO(tcp, rto) \
275 if ((rto) < (tcp)->tcp_rto_min) \
276 (tcp)->tcp_rto = (tcp)->tcp_rto_min; \
277 else if ((rto) > (tcp)->tcp_rto_max) \
278 (tcp)->tcp_rto = (tcp)->tcp_rto_max; \
280 (tcp)->tcp_rto = (rto);
290 tcp_t *tcp;
327 #define TCP_UNSENT_BYTES(tcp) \
328 ((tcp)->tcp_squeue_bytes + (tcp)->tcp_unsent)
380 #define TCP_DECR_LISTEN_CNT(tcp) \
382 ASSERT((tcp)->tcp_listen_cnt->tlc_cnt > 0); \
383 if (atomic_dec_32_nv(&(tcp)->tcp_listen_cnt->tlc_cnt) == 0) \
384 kmem_free((tcp)->tcp_listen_cnt, sizeof (tcp_listen_cnt_t)); \
385 (tcp)->tcp_listen_cnt = NULL; \
400 * seconds. Defined in tcp.c.
562 * Functions in tcp.c.