Home
last modified time | relevance | path

Searched refs:tcp_pcb (Results 1 – 17 of 17) sorted by relevance

/lib/liblwip/src/include/lwip/
Dtcp.h49 struct tcp_pcb;
60 typedef err_t (*tcp_accept_fn)(void *arg, struct tcp_pcb *newpcb, err_t err);
72 typedef err_t (*tcp_recv_fn)(void *arg, struct tcp_pcb *tpcb,
86 typedef err_t (*tcp_sent_fn)(void *arg, struct tcp_pcb *tpcb,
98 typedef err_t (*tcp_poll_fn)(void *arg, struct tcp_pcb *tpcb);
124 typedef err_t (*tcp_connected_fn)(void *arg, struct tcp_pcb *tpcb, err_t err);
168 struct tcp_pcb { struct
172 TCP_PCB_COMMON(struct tcp_pcb);
307 err_t lwip_tcp_event(void *arg, struct tcp_pcb *pcb,
316 struct tcp_pcb * tcp_new (void);
[all …]
Dtcp_impl.h66 struct tcp_pcb * tcp_alloc (u8_t prio);
67 void tcp_abandon (struct tcp_pcb *pcb, int reset);
68 err_t tcp_send_empty_ack(struct tcp_pcb *pcb);
69 void tcp_rexmit (struct tcp_pcb *pcb);
70 void tcp_rexmit_rto (struct tcp_pcb *pcb);
71 void tcp_rexmit_fast (struct tcp_pcb *pcb);
72 u32_t tcp_update_rcv_ann_wnd(struct tcp_pcb *pcb);
73 err_t tcp_process_refused_data(struct tcp_pcb *pcb);
306 extern struct tcp_pcb *tcp_input_pcb;
313 struct tcp_pcb *pcbs;
[all …]
Dapi.h124 struct tcp_pcb;
142 struct tcp_pcb *tcp;
Dmemp_std.h42 LWIP_MEMPOOL(TCP_PCB, MEMP_NUM_TCP_PCB, sizeof(struct tcp_pcb), "TCP_PCB")
/lib/liblwip/src/core/
Dtcp.c101 struct tcp_pcb *tcp_bound_pcbs;
106 struct tcp_pcb *tcp_active_pcbs;
108 struct tcp_pcb *tcp_tw_pcbs;
113 struct tcp_pcb ** const tcp_pcb_lists[] = {&tcp_listen_pcbs.pcbs, &tcp_bound_pcbs,
117 struct tcp_pcb *tcp_tmp_pcb;
170 tcp_close_shutdown(struct tcp_pcb *pcb, u8_t rst_on_unacked_data) in tcp_close_shutdown()
285 tcp_close(struct tcp_pcb *pcb) in tcp_close()
313 tcp_shutdown(struct tcp_pcb *pcb, int shut_rx, int shut_tx) in tcp_shutdown()
357 tcp_abandon(struct tcp_pcb *pcb, int reset) in tcp_abandon()
413 tcp_abort(struct tcp_pcb *pcb) in tcp_abort()
[all …]
Dtcp_out.c81 static void tcp_output_segment(struct tcp_seg *seg, struct tcp_pcb *pcb);
94 tcp_output_alloc_header(struct tcp_pcb *pcb, u16_t optlen, u16_t datalen, in tcp_output_alloc_header()
125 tcp_send_fin(struct tcp_pcb *pcb) in tcp_send_fin()
159 tcp_create_segment(struct tcp_pcb *pcb, struct pbuf *p, u8_t flags, u32_t seqno, u8_t optflags) in tcp_create_segment()
220 u16_t *oversize, struct tcp_pcb *pcb, u8_t apiflags, in tcp_pbuf_prealloc()
294 tcp_write_checks(struct tcp_pcb *pcb, u16_t len) in tcp_write_checks()
354 tcp_write(struct tcp_pcb *pcb, const void *arg, u16_t len, u8_t apiflags) in tcp_write()
722 tcp_enqueue_flags(struct tcp_pcb *pcb, u8_t flags) in tcp_enqueue_flags()
828 tcp_build_timestamp_option(struct tcp_pcb *pcb, u32_t *opts) in tcp_build_timestamp_option()
842 tcp_send_empty_ack(struct tcp_pcb *pcb) in tcp_send_empty_ack()
[all …]
Dtcp_in.c72 struct tcp_pcb *tcp_input_pcb;
75 static err_t tcp_process(struct tcp_pcb *pcb);
76 static void tcp_receive(struct tcp_pcb *pcb);
77 static void tcp_parseopt(struct tcp_pcb *pcb);
80 static err_t tcp_timewait_input(struct tcp_pcb *pcb);
94 struct tcp_pcb *pcb, *prev; in tcp_input()
97 struct tcp_pcb *lpcb_prev = NULL; in tcp_input()
235 prev = (struct tcp_pcb *)lpcb; in tcp_input()
442 struct tcp_pcb *npcb; in tcp_listen_input()
529 tcp_timewait_input(struct tcp_pcb *pcb) in tcp_timewait_input()
[all …]
Dnetif.c328 struct tcp_pcb *pcb; in netif_set_ipaddr()
345 struct tcp_pcb *next = pcb->next; in netif_set_ipaddr()
Dpbuf.c120 struct tcp_pcb* pcb; in pbuf_free_ooseq()
/lib/liblwip/test/unit/tcp/
Dtcp_helper.h35 struct pbuf* tcp_create_rx_segment(struct tcp_pcb* pcb, void* data, size_t data_len,
37 struct pbuf* tcp_create_rx_segment_wnd(struct tcp_pcb* pcb, void* data, size_t data_len,
39 void tcp_set_state(struct tcp_pcb* pcb, enum tcp_state state, ip_addr_t* local_ip,
42 err_t test_tcp_counters_recv(void* arg, struct tcp_pcb* pcb, struct pbuf* p, err_t err);
44 struct tcp_pcb* test_tcp_new_counters_pcb(struct test_tcp_counters* counters);
Dtcp_helper.c14 tcp_remove(struct tcp_pcb* pcb_list) in tcp_remove()
16 struct tcp_pcb *pcb = pcb_list; in tcp_remove()
17 struct tcp_pcb *pcb2; in tcp_remove()
118 tcp_create_rx_segment(struct tcp_pcb* pcb, void* data, size_t data_len, u32_t seqno_offset, in tcp_create_rx_segment()
130 struct pbuf* tcp_create_rx_segment_wnd(struct tcp_pcb* pcb, void* data, size_t data_len, in tcp_create_rx_segment_wnd()
139 tcp_set_state(struct tcp_pcb* pcb, enum tcp_state state, ip_addr_t* local_ip, in tcp_set_state()
197 test_tcp_counters_recv(void* arg, struct tcp_pcb* pcb, struct pbuf* p, err_t err) in test_tcp_counters_recv()
222 struct tcp_pcb*
225 struct tcp_pcb* pcb = tcp_new(); in test_tcp_new_counters_pcb()
Dtest_tcp_oos.c28 static int tcp_oos_count(struct tcp_pcb* pcb) in tcp_oos_count()
40 static int tcp_oos_pbuf_count(struct tcp_pcb* pcb) in tcp_oos_pbuf_count()
58 tcp_oos_seg_seqno(struct tcp_pcb* pcb, int seg_index) in tcp_oos_seg_seqno()
82 tcp_oos_seg_tcplen(struct tcp_pcb* pcb, int seg_index) in tcp_oos_seg_tcplen()
105 tcp_oos_tcplen(struct tcp_pcb* pcb) in tcp_oos_tcplen()
142 struct tcp_pcb* pcb; in START_TEST()
282 struct tcp_pcb* pcb; in START_TEST()
458 struct tcp_pcb* pcb; in START_TEST()
548 struct tcp_pcb* pcb; in START_TEST()
627 struct tcp_pcb* pcb; in START_TEST()
[all …]
Dtest_tcp.c58 struct tcp_pcb* pcb; in START_TEST()
77 struct tcp_pcb* pcb; in START_TEST()
128 struct tcp_pcb* pcb; in START_TEST()
315 struct tcp_pcb* pcb; in START_TEST()
413 struct tcp_pcb* pcb; in START_TEST()
502 struct tcp_pcb* pcb; in test_tcp_tx_full_window_lost()
/lib/liblwip/doc/
Drawapi.txt89 - void tcp_arg(struct tcp_pcb *pcb, void *arg)
105 - struct tcp_pcb *tcp_new(void)
110 - err_t tcp_bind(struct tcp_pcb *pcb, ip_addr_t *ipaddr,
120 - struct tcp_pcb *tcp_listen(struct tcp_pcb *pcb)
138 - struct tcp_pcb *tcp_listen_with_backlog(struct tcp_pcb *pcb, u8_t backlog)
144 - void tcp_accepted(struct tcp_pcb *pcb)
153 - void tcp_accept(struct tcp_pcb *pcb,
154 err_t (* accept)(void *arg, struct tcp_pcb *newpcb,
160 - err_t tcp_connect(struct tcp_pcb *pcb, ip_addr_t *ipaddr,
162 struct tcp_pcb *tpcb,
[all …]
/lib/liblwip/src/api/
Dapi_msg.c216 recv_tcp(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err)
277 poll_tcp(void *arg, struct tcp_pcb *pcb)
313 sent_tcp(void *arg, struct tcp_pcb *pcb, u16_t len)
415 struct tcp_pcb *pcb;
432 accept_function(void *arg, struct tcp_pcb *newpcb, err_t err)
460 struct tcp_pcb* pcb = newconn->pcb.tcp;
937 do_connected(void *arg, struct tcp_pcb *pcb, err_t err)
1074 struct tcp_pcb* lpcb = tcp_listen_with_backlog(msg->conn->pcb.tcp, msg->msg.lb.backlog);
1076 struct tcp_pcb* lpcb = tcp_listen(msg->conn->pcb.tcp);
/lib/liblwip/src/core/snmp/
Dmib2.c3689 struct tcp_pcb *pcb = tcp_active_pcbs; in tcp_get_value()
/lib/liblwip/
DCHANGELOG2178 and has to be explicitly disabled with 'tcp_pcb->flags |= TF_NODELAY'
2328 * tcp_out.c: Added check to prevent tcp_pcb->snd_queuelen from overflowing.