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

Function tcp_lro_flush_inactive

freebsd/netinet/tcp_lro.c:360–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360void
361tcp_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
380static int

Callers

nothing calls this directly

Calls 3

getmicrouptimeFunction · 0.85
tcp_lro_active_removeFunction · 0.85
timevalsubFunction · 0.50

Tested by

no test coverage detected