MCPcopy Create free account
hub / github.com/F-Stack/f-stack / tcp_log_tcpcbinit

Function tcp_log_tcpcbinit

freebsd/netinet/tcp_log_buf.c:1175–1193  ·  view source on GitHub ↗

Do per-TCPCB initialization. */

Source from the content-addressed store, hash-verified

1173
1174/* Do per-TCPCB initialization. */
1175void
1176tcp_log_tcpcbinit(struct tcpcb *tp)
1177{
1178
1179 /* A new TCPCB should start out zero-initialized. */
1180 STAILQ_INIT(&tp->t_logs);
1181
1182 /*
1183 * If we are doing auto-capturing, figure out whether we will capture
1184 * this session.
1185 */
1186 tp->t_loglimit = tcp_log_session_limit;
1187 if ((tcp_log_auto_all == true) &&
1188 tcp_log_auto_mode &&
1189 tcp_log_selectauto()) {
1190 tp->t_logstate = tcp_log_auto_mode;
1191 tp->t_flags2 |= TF2_LOG_AUTO;
1192 }
1193}
1194
1195/* Remove entries */
1196static void

Callers 1

tcp_newtcpcbFunction · 0.85

Calls 1

tcp_log_selectautoFunction · 0.85

Tested by

no test coverage detected