Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/tcp_subr.c
Show First 20 Lines • Show All 3,451 Lines • ▼ Show 20 Lines | #define COPYTIMER(ttt) do { \ | ||||
COPYTIMER(tt_persist); | COPYTIMER(tt_persist); | ||||
COPYTIMER(tt_keep); | COPYTIMER(tt_keep); | ||||
COPYTIMER(tt_2msl); | COPYTIMER(tt_2msl); | ||||
#undef COPYTIMER | #undef COPYTIMER | ||||
xt->t_rcvtime = 1000 * (ticks - tp->t_rcvtime) / hz; | xt->t_rcvtime = 1000 * (ticks - tp->t_rcvtime) / hz; | ||||
bcopy(tp->t_fb->tfb_tcp_block_name, xt->xt_stack, | bcopy(tp->t_fb->tfb_tcp_block_name, xt->xt_stack, | ||||
TCP_FUNCTION_NAME_LEN_MAX); | TCP_FUNCTION_NAME_LEN_MAX); | ||||
bcopy(CC_ALGO(tp)->name, xt->xt_cc, | |||||
TCP_CA_NAME_MAX); | |||||
#ifdef TCP_BLACKBOX | #ifdef TCP_BLACKBOX | ||||
(void)tcp_log_get_id(tp, xt->xt_logid); | (void)tcp_log_get_id(tp, xt->xt_logid); | ||||
#endif | #endif | ||||
} | } | ||||
xt->xt_len = sizeof(struct xtcpcb); | xt->xt_len = sizeof(struct xtcpcb); | ||||
in_pcbtoxinpcb(inp, &xt->xt_inp); | in_pcbtoxinpcb(inp, &xt->xt_inp); | ||||
if (inp->inp_socket == NULL) | if (inp->inp_socket == NULL) | ||||
Show All 31 Lines |