Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_subr.c
Show First 20 Lines • Show All 3,962 Lines • ▼ Show 20 Lines | 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); | 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); | ||||
/* | |||||
* TCP doesn't use inp_ppcb pointer, we embed inpcb into tcpcb. | |||||
* Fixup the pointer that in_pcbtoxinpcb() has set. When printing | |||||
* TCP netstat(1) used to use this pointer, so this fixup needs to | |||||
* stay for stable/14. | |||||
*/ | |||||
xt->xt_inp.inp_ppcb = (uintptr_t)tp; | |||||
} | } | ||||
void | void | ||||
tcp_log_end_status(struct tcpcb *tp, uint8_t status) | tcp_log_end_status(struct tcpcb *tp, uint8_t status) | ||||
{ | { | ||||
uint32_t bit, i; | uint32_t bit, i; | ||||
if ((tp == NULL) || | if ((tp == NULL) || | ||||
▲ Show 20 Lines • Show All 655 Lines • Show Last 20 Lines |