Do per-TCPCB initialization. */
| 1173 | |
| 1174 | /* Do per-TCPCB initialization. */ |
| 1175 | void |
| 1176 | tcp_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 */ |
| 1196 | static void |
no test coverage detected