Home
last modified time | relevance | path

Searched refs:TCP_FIN (Results 1 – 6 of 6) sorted by relevance

/lib/liblwip/src/core/
Dtcp_in.c163 tcplen = p->tot_len + ((flags & (TCP_FIN | TCP_SYN)) ? 1 : 0); in tcp_input()
549 } else if (flags & TCP_FIN) { in tcp_timewait_input()
804 if (TCPH_FLAGS(cseg->tcphdr) & TCP_FIN) { in tcp_oos_insert_segment()
816 if (TCPH_FLAGS(next->tcphdr) & TCP_FIN) { in tcp_oos_insert_segment()
817 TCPH_SET_FLAG(cseg->tcphdr, TCP_FIN); in tcp_oos_insert_segment()
1022 if ((pcb->acked != 0) && ((TCPH_FLAGS(next->tcphdr) & TCP_FIN) != 0)) { in tcp_receive()
1072 if ((pcb->acked != 0) && ((TCPH_FLAGS(next->tcphdr) & TCP_FIN) != 0)) { in tcp_receive()
1227 if (TCPH_FLAGS(inseg.tcphdr) & TCP_FIN) { in tcp_receive()
1230 TCPH_FLAGS_SET(inseg.tcphdr, TCPH_FLAGS(inseg.tcphdr) &~ TCP_FIN); in tcp_receive()
1247 if (TCPH_FLAGS(inseg.tcphdr) & TCP_FIN) { in tcp_receive()
[all …]
Dtcp_out.c133 if ((TCPH_FLAGS(last_unsent->tcphdr) & (TCP_SYN | TCP_FIN | TCP_RST)) == 0) { in tcp_send_fin()
135 TCPH_SET_FLAG(last_unsent->tcphdr, TCP_FIN); in tcp_send_fin()
141 return tcp_enqueue_flags(pcb, TCP_FIN); in tcp_send_fin()
732 (flags & (TCP_SYN | TCP_FIN)) != 0); in tcp_enqueue_flags()
801 if ((flags & TCP_SYN) || (flags & TCP_FIN)) { in tcp_enqueue_flags()
806 if (flags & TCP_FIN) { in tcp_enqueue_flags()
1442 is_fin = ((TCPH_FLAGS(seg->tcphdr) & TCP_FIN) != 0) && (seg->len == 0); in tcp_zero_window_probe()
1455 TCPH_FLAGS_SET(tcphdr, TCP_ACK | TCP_FIN); in tcp_zero_window_probe()
Dtcp.c1666 if (flags & TCP_FIN) { in tcp_debug_print_flags()
/lib/liblwip/test/unit/tcp/
Dtest_tcp_oos.c175 p_8_9 = tcp_create_rx_segment(pcb, &data[8], 8, 8, 0, TCP_ACK|TCP_FIN); in START_TEST()
186 p_fin = tcp_create_rx_segment(pcb, NULL, 0,16, 0, TCP_ACK|TCP_FIN); in START_TEST()
333 pinseqFIN = tcp_create_rx_segment(pcb, &data[14], 2, 14, 0, TCP_ACK|TCP_FIN); in START_TEST()
758 p_normal_fin = tcp_create_rx_segment(pcb, NULL, 0, TCP_MSS, 0, TCP_ACK|TCP_FIN); in test_tcp_recv_ooseq_double_FINs()
761 p_2nd_fin_ooseq = tcp_create_rx_segment(pcb, NULL, 0, TCP_MSS+1+k, 0, TCP_ACK|TCP_FIN); in test_tcp_recv_ooseq_double_FINs()
/lib/liblwip/src/include/lwip/
Dtcp_impl.h102 #define TCP_FIN 0x01U macro
184 #define TCP_TCPLEN(seg) ((seg)->len + ((TCPH_FLAGS((seg)->tcphdr) & (TCP_FIN | TCP_SYN)) != 0))
/lib/liblwip/src/netif/ppp/
Dvj.c167 if ((TCPH_FLAGS(th) & (TCP_SYN|TCP_FIN|TCP_RST|TCP_ACK)) != TCP_ACK) { in vj_compress_tcp()