Home
last modified time | relevance | path

Searched refs:lpcb (Results 1 – 8 of 8) sorted by relevance

/third_party/lwip/src/core/
Dtcp.c409 tcp_remove_listener(struct tcp_pcb *list, struct tcp_pcb_listen *lpcb) in tcp_remove_listener() argument
413 LWIP_ASSERT("tcp_remove_listener: invalid listener", lpcb != NULL); in tcp_remove_listener()
416 if (pcb->listener == lpcb) { in tcp_remove_listener()
1013 struct tcp_pcb_listen *lpcb = NULL; local
1025 lpcb = (struct tcp_pcb_listen *)pcb;
1034 for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) {
1035 if ((lpcb->local_port == pcb->local_port) &&
1036 ip_addr_cmp(&lpcb->local_ip, &pcb->local_ip)) {
1038 lpcb = NULL;
1045 lpcb = (struct tcp_pcb_listen *)memp_malloc(MEMP_TCP_PCB_LISTEN);
[all …]
Dtcp_in.c121 struct tcp_pcb_listen *lpcb; local
331 for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) {
333 if ((lpcb->netif_idx != NETIF_NO_INDEX) &&
334 (lpcb->netif_idx != netif_get_index(ip_data.current_input_netif))) {
335 prev = (struct tcp_pcb *)lpcb;
340 …if (group == get_net_group_from_tcp_pcb((struct tcp_pcb *)lpcb) && lpcb->local_port == tcphdr->des…
342 if (lpcb->local_port == tcphdr->dest) {
344 if (IP_IS_ANY_TYPE_VAL(lpcb->local_ip)) {
347 lpcb_any = lpcb;
352 } else if (IP_ADDR_PCB_VERSION_MATCH_EXACT(lpcb, ip_current_dest_addr())) {
[all …]
Daltcp_tcp.c287 struct tcp_pcb *lpcb; in altcp_tcp_listen() local
293 lpcb = tcp_listen_with_backlog_and_err(pcb, backlog, err); in altcp_tcp_listen()
294 if (lpcb != NULL) { in altcp_tcp_listen()
295 conn->state = lpcb; in altcp_tcp_listen()
296 tcp_accept(lpcb, altcp_tcp_accept); in altcp_tcp_listen()
/third_party/lwip/src/include/lwip/priv/
Dtcp_priv.h166 #define TCP_EVENT_ACCEPT(lpcb,pcb,arg,err,ret) ret = lwip_tcp_event(arg, (pcb),\ argument
187 #define TCP_EVENT_ACCEPT(lpcb,pcb,arg,err,ret) \ argument
189 if((lpcb)->accept != NULL) \
190 (ret) = (lpcb)->accept((arg),(pcb),(err)); \
519 err_t tcp_ext_arg_invoke_callbacks_passive_open(struct tcp_pcb_listen *lpcb, struct tcp_pcb *cpcb);
/third_party/lwip/src/apps/altcp_tls/
Daltcp_tls_mbedtls.c1024 struct altcp_pcb *lpcb; in altcp_mbedtls_listen() local
1028 lpcb = altcp_listen_with_backlog_and_err(conn->inner_conn, backlog, err); in altcp_mbedtls_listen()
1029 if (lpcb != NULL) { in altcp_mbedtls_listen()
1035 conn->inner_conn = lpcb; in altcp_mbedtls_listen()
1036 altcp_accept(lpcb, altcp_mbedtls_lower_accept); in altcp_mbedtls_listen()
/third_party/lwip/test/unit/tcp/
Dtest_tcp.c103 struct tcp_pcb_listen *lpcb; in START_TEST() local
125 lpcb = (struct tcp_pcb_listen *)pcbl; in START_TEST()
127 …ip_addr_set_ip4_u32_val(src_addr, lwip_htonl(lwip_ntohl(ip_addr_get_ip4_u32(&lpcb->local_ip)) + 1)… in START_TEST()
130 p = tcp_create_segment(&src_addr, &lpcb->local_ip, 12345, in START_TEST()
131 lpcb->local_port, NULL, 0, 12345, 54321, TCP_SYN); in START_TEST()
141 p = tcp_create_segment(&src_addr, &lpcb->local_ip, 12345, in START_TEST()
142 lpcb->local_port, NULL, 0, 12345, 54321, TCP_SYN); in START_TEST()
/third_party/lwip/src/api/
Dapi_msg.c1516 struct tcp_pcb *lpcb; local
1539 lpcb = tcp_listen_with_backlog_and_err(msg->conn->pcb.tcp, backlog, &err);
1541 if (lpcb == NULL) {
1556 msg->conn->pcb.tcp = lpcb;
1561 tcp_close(lpcb);
/third_party/lwip/src/include/lwip/
Dtcp.h182 typedef err_t (*tcp_extarg_callback_passive_open_fn)(u8_t id, struct tcp_pcb_listen *lpcb, struct t…