Lines Matching refs:state

354     state: State,  field
448 state: State::Closed, in new()
661 pub fn state(&self) -> State { in state() method
662 self.state in state()
669 self.state = State::Closed; in reset()
834 match self.state { in close()
872 match self.state { in is_listening()
888 match self.state { in is_open()
909 match self.state { in is_active()
928 match self.state { in may_send()
947 match self.state { in may_recv()
1151 fn set_state(&mut self, state: State) { in set_state()
1152 if self.state != state { in set_state()
1153 tcp_trace!("state={}=>{}", self.state, state); in set_state()
1156 self.state = state; in set_state()
1282 if self.state == State::Closed { in accepts()
1289 if self.state == State::Listen && repr.ack_number.is_some() { in accepts()
1318 let (sent_syn, sent_fin) = match self.state { in process()
1330 match (self.state, repr.control, repr.ack_number) { in process()
1432 match self.state { in process()
1469 if self.state == State::TimeWait { in process()
1519 match (self.state, control) { in process()
1887 if matches!(self.state, State::SynSent | State::SynReceived) && !data_in_flight { in seq_to_transmit()
1908 let want_fin = match self.state { in seq_to_transmit()
1950 match self.state { in window_to_update()
2015 } else if self.state == State::Closed { in dispatch()
2059 match self.state { in dispatch()
2075 if self.state == State::SynSent { in dispatch()
2124 match self.state { in dispatch()
2231 if self.state == State::Closed { in dispatch()
2248 } else if self.state == State::Closed { in poll_at()
2521 assert_eq!(s1.state, s2.state, "state");
2548 s.state = State::SynReceived; in socket_syn_received_with_buffer_sizes()
2563 s.state = State::SynSent; in socket_syn_sent_with_buffer_sizes()
2576 s.state = State::Established; in socket_established_with_buffer_sizes()
2590 s.state = State::FinWait1; in socket_fin_wait_1()
2596 s.state = State::FinWait2; in socket_fin_wait_2()
2604 s.state = State::Closing; in socket_closing()
2612 s.state = State::TimeWait; in socket_time_wait()
2625 s.state = State::CloseWait; in socket_close_wait()
2633 s.state = State::LastAck; in socket_last_ack()
2666 assert_eq!(s.state, State::Closed); in test_closed_reject()
2692 assert_eq!(s.state, State::Closed); in test_closed_close()
2700 s.state = State::Listen; in socket_listen()
2772 s.state = State::Listen; in test_listen_syn_win_scale_buffers()
2848 assert_eq!(s.state, State::Listen); in test_listen_syn_reject_ack()
2863 assert_eq!(s.state, State::Listen); in test_listen_rst()
2870 assert_eq!(s.state, State::Closed); in test_listen_close()
2898 assert_eq!(s.state, State::Established); in test_syn_received_ack()
2930 assert_eq!(s.state, State::SynReceived); in test_syn_received_ack_too_low()
2961 assert_eq!(s.state, State::SynReceived); in test_syn_received_ack_too_high()
2996 assert_eq!(s.state, State::CloseWait); in test_syn_received_fin()
3027 assert_eq!(s.state, State::Listen); in test_syn_received_rst()
3044 assert_eq!(s.state(), State::SynReceived); in test_syn_received_no_window_scaling()
3084 assert_eq!(s.state(), State::SynReceived); in test_syn_received_window_scaling()
3114 assert_eq!(s.state, State::FinWait1); in test_syn_received_close()
3247 assert_eq!(s.state, State::Established); in test_syn_sent_syn_ack()
3284 assert_eq!(s.state, State::SynSent); in test_syn_sent_syn_ack_not_incremented()
3299 assert_eq!(s.state, State::Closed); in test_syn_sent_rst()
3314 assert_eq!(s.state, State::SynSent); in test_syn_sent_rst_no_ack()
3329 assert_eq!(s.state, State::SynSent); in test_syn_sent_rst_bad_ack()
3359 assert_eq!(s.state, State::SynSent); in test_syn_sent_bad_ack()
3395 assert_eq!(s.state, State::SynSent); in test_syn_sent_bad_ack_seq_1()
3431 assert_eq!(s.state, State::SynSent); in test_syn_sent_bad_ack_seq_2()
3438 assert_eq!(s.state, State::Closed); in test_syn_sent_close()
3507 assert_eq!(s.state, State::Established); in test_syn_sent_syn_ack_no_window_scaling()
3540 assert_eq!(s.state, State::Established); in test_syn_sent_syn_ack_window_scaling()
3989 assert_eq!(s.state, State::CloseWait); in test_established_fin()
4011 assert_eq!(s.state, State::Established); in test_established_fin_after_missing()
4027 assert_eq!(s.state, State::Established); in test_established_fin_after_missing()
4043 assert_eq!(s.state, State::CloseWait); in test_established_send_fin()
4067 assert_eq!(s.state, State::Closed); in test_established_rst()
4082 assert_eq!(s.state, State::Closed); in test_established_rst_no_ack()
4089 assert_eq!(s.state, State::FinWait1); in test_established_close()
4097 assert_eq!(s.state, State::Closed); in test_established_abort()
4127 assert_eq!(s.state, State::Established); in test_established_rst_bad_seq()
4185 assert_eq!(s.state, State::FinWait2); in test_fin_wait_1_fin_ack()
4210 assert_eq!(s.state, State::Closing); in test_fin_wait_1_fin_fin()
4237 assert_eq!(s.state, State::FinWait1); in test_fin_wait_1_fin_with_data_queued()
4252 assert_eq!(s.state, State::FinWait1); in test_fin_wait_1_recv()
4264 assert_eq!(s.state, State::FinWait1); in test_fin_wait_1_close()
4280 assert_eq!(s.state, State::TimeWait); in test_fin_wait_2_fin()
4296 assert_eq!(s.state, State::FinWait2); in test_fin_wait_2_recv()
4316 assert_eq!(s.state, State::FinWait2); in test_fin_wait_2_close()
4339 assert_eq!(s.state, State::TimeWait); in test_closing_ack_fin()
4347 assert_eq!(s.state, State::Closing); in test_closing_close()
4377 assert_eq!(s.state, State::TimeWait); in test_time_wait_close()
4420 assert_eq!(s.state, State::TimeWait); in test_time_wait_timeout()
4422 assert_eq!(s.state, State::Closed); in test_time_wait_timeout()
4456 assert_eq!(s.state, State::LastAck); in test_close_wait_close()
4475 assert_eq!(s.state, State::LastAck); in test_last_ack_fin_ack()
4484 assert_eq!(s.state, State::Closed); in test_last_ack_fin_ack()
4499 assert_eq!(s.state, State::LastAck); in test_last_ack_ack_not_of_fin()
4510 assert_eq!(s.state, State::LastAck); in test_last_ack_ack_not_of_fin()
4521 assert_eq!(s.state, State::Closed); in test_last_ack_ack_not_of_fin()
4528 assert_eq!(s.state, State::LastAck); in test_last_ack_close()
4539 assert_eq!(s.state, State::Listen); in test_listen()
4554 assert_eq!(s.state(), State::SynReceived); in test_three_way_handshake()
4574 assert_eq!(s.state(), State::Established); in test_three_way_handshake()
4591 assert_eq!(s.state, State::CloseWait); in test_remote_close()
4601 assert_eq!(s.state, State::LastAck); in test_remote_close()
4619 assert_eq!(s.state, State::Closed); in test_remote_close()
4626 assert_eq!(s.state, State::FinWait1); in test_local_close()
4644 assert_eq!(s.state, State::FinWait2); in test_local_close()
4654 assert_eq!(s.state, State::TimeWait); in test_local_close()
4669 assert_eq!(s.state, State::FinWait1); in test_simultaneous_close()
4689 assert_eq!(s.state, State::Closing); in test_simultaneous_close()
4707 assert_eq!(s.state, State::TimeWait); in test_simultaneous_close()
4715 assert_eq!(s.state, State::FinWait1); in test_simultaneous_close_combined_fin_ack()
4734 assert_eq!(s.state, State::TimeWait); in test_simultaneous_close_combined_fin_ack()
4749 assert_eq!(s.state, State::FinWait1); in test_simultaneous_close_raced()
4761 assert_eq!(s.state, State::Closing); in test_simultaneous_close_raced()
4773 assert_eq!(s.state, State::Closing); in test_simultaneous_close_raced()
4783 assert_eq!(s.state, State::TimeWait); in test_simultaneous_close_raced()
4792 assert_eq!(s.state, State::FinWait1); in test_simultaneous_close_raced_with_data()
4804 assert_eq!(s.state, State::Closing); in test_simultaneous_close_raced_with_data()
4817 assert_eq!(s.state, State::Closing); in test_simultaneous_close_raced_with_data()
4827 assert_eq!(s.state, State::TimeWait); in test_simultaneous_close_raced_with_data()
4853 assert_eq!(s.state, State::FinWait1); in test_mutual_close_with_data_1()
4880 assert_eq!(s.state, State::FinWait1); in test_mutual_close_with_data_2()
4899 assert_eq!(s.state, State::FinWait2); in test_mutual_close_with_data_2()
4917 assert_eq!(s.state, State::TimeWait); in test_mutual_close_with_data_2()
5109 assert_eq!(s.state(), State::Established); in test_send_data_after_syn_ack_retransmit()
5723 assert_eq!(s.state, State::CloseWait); in test_close_wait_no_window_update()
5756 assert_eq!(s.state, State::TimeWait); in test_time_wait_no_window_update()
6046 assert_eq!(s.state, State::SynSent); in test_connect_timeout()
6058 assert_eq!(s.state, State::Closed); in test_connect_timeout()
6098 assert_eq!(s.state, State::Closed); in test_established_timeout()
6145 assert_eq!(s.state, State::Closed); in test_established_keep_alive_timeout()
6164 assert_eq!(s.state, State::Closed); in test_fin_wait_1_timeout()
6183 assert_eq!(s.state, State::Closed); in test_last_ack_timeout()
6461 assert_eq!(s.state, State::Closing); in test_rx_close_fin_in_fin_wait_1()
6483 assert_eq!(s.state, State::TimeWait); in test_rx_close_fin_in_fin_wait_2()