| 358 | } |
| 359 | |
| 360 | void |
| 361 | tcp_lro_flush_inactive(struct lro_ctrl *lc, const struct timeval *timeout) |
| 362 | { |
| 363 | struct lro_entry *le, *le_tmp; |
| 364 | struct timeval tv; |
| 365 | |
| 366 | if (LIST_EMPTY(&lc->lro_active)) |
| 367 | return; |
| 368 | |
| 369 | getmicrouptime(&tv); |
| 370 | timevalsub(&tv, timeout); |
| 371 | LIST_FOREACH_SAFE(le, &lc->lro_active, next, le_tmp) { |
| 372 | if (timevalcmp(&tv, &le->mtime, >=)) { |
| 373 | tcp_lro_active_remove(le); |
| 374 | tcp_lro_flush(lc, le); |
| 375 | } |
| 376 | } |
| 377 | } |
| 378 | |
| 379 | #ifdef INET6 |
| 380 | static int |
nothing calls this directly
no test coverage detected