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

Function tcp_timer_active

freebsd/netinet/tcp_timer.c:943–971  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

941}
942
943int
944tcp_timer_active(struct tcpcb *tp, uint32_t timer_type)
945{
946 struct callout *t_callout;
947
948 switch (timer_type) {
949 case TT_DELACK:
950 t_callout = &tp->t_timers->tt_delack;
951 break;
952 case TT_REXMT:
953 t_callout = &tp->t_timers->tt_rexmt;
954 break;
955 case TT_PERSIST:
956 t_callout = &tp->t_timers->tt_persist;
957 break;
958 case TT_KEEP:
959 t_callout = &tp->t_timers->tt_keep;
960 break;
961 case TT_2MSL:
962 t_callout = &tp->t_timers->tt_2msl;
963 break;
964 default:
965 if (tp->t_fb->tfb_tcp_timer_active) {
966 return(tp->t_fb->tfb_tcp_timer_active(tp, timer_type));
967 }
968 panic("tp %p bad timer_type %#x", tp, timer_type);
969 }
970 return callout_active(t_callout);
971}
972
973/*
974 * Stop the timer from running, and apply a flag

Callers 7

tcp_timers_unsuspendFunction · 0.85
tcp_output.cFile · 0.85
tcp_setpersistFunction · 0.85
tcp_do_segmentFunction · 0.85
tcp_default_fb_initFunction · 0.85
rack_stop_all_timersFunction · 0.85
bbr_stop_all_timersFunction · 0.85

Calls 1

panicFunction · 0.50

Tested by

no test coverage detected