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

Function bbr_log_flowend

freebsd/netinet/tcp_stacks/bbr.c:1998–2018  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1996}
1997
1998static void
1999bbr_log_flowend(struct tcp_bbr *bbr)
2000{
2001 if (bbr->rc_tp->t_logstate != TCP_LOG_STATE_OFF) {
2002 union tcp_log_stackspecific log;
2003 struct sockbuf *r, *s;
2004 struct timeval tv;
2005
2006 if (bbr->rc_inp->inp_socket) {
2007 r = &bbr->rc_inp->inp_socket->so_rcv;
2008 s = &bbr->rc_inp->inp_socket->so_snd;
2009 } else {
2010 r = s = NULL;
2011 }
2012 bbr_fill_in_logging_data(bbr, &log.u_bbr, tcp_get_usecs(&tv));
2013 TCP_LOG_EVENTP(bbr->rc_tp, NULL,
2014 r, s,
2015 TCP_LOG_FLOWEND, 0,
2016 0, &log, false, &tv);
2017 }
2018}
2019
2020static void
2021bbr_log_pkt_epoch(struct tcp_bbr *bbr, uint32_t cts, uint32_t line,

Callers 1

bbr_finiFunction · 0.85

Calls 2

bbr_fill_in_logging_dataFunction · 0.85
tcp_get_usecsFunction · 0.85

Tested by

no test coverage detected