/third_party/lwip/ |
D | 0050-lwip-reuse-ip-port.patch | 53 + for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) { 54 + if ((lpcb->local_port == pcb->local_port) && 55 + ip_addr_cmp(&lpcb->local_ip, &pcb->local_ip)) { 57 + first_same_port_pcb = lpcb; 75 lpcb->netif_idx = pcb->netif_idx; 76 lpcb->ttl = pcb->ttl; 77 lpcb->tos = pcb->tos; 80 + lpcb->connect_num = 0; 81 + lpcb->next_same_port_pcb = NULL; 84 + lpcb->socket_fd = conn->socket; [all …]
|
D | 0067-fix-null-pointer-when-all-zero-address-listen.patch | 19 +struct tcp_pcb_listen *min_cnts_lpcb_get(struct tcp_pcb_listen *lpcb) 22 + struct tcp_pcb_listen *tmp_lpcb = lpcb; 33 + tmp_lpcb = lpcb; 34 + min_cnts_lpcb = lpcb; 52 if (ip_addr_cmp(&lpcb->local_ip, ip_current_dest_addr())) { 56 - struct tcp_pcb_listen *tmp_lpcb = lpcb; 65 - tmp_lpcb = lpcb; 66 - min_cnts_lpcb = lpcb; 77 + min_cnts_lpcb = min_cnts_lpcb_get(lpcb); 80 } else if (ip_addr_isany(&lpcb->local_ip)) { [all …]
|
D | backport-Add-outgoing-VLAN-PCP-support.patch | 21 lpcb->ttl = pcb->ttl; 22 lpcb->tos = pcb->tos; 25 + lpcb->netif_hints.tci = pcb->netif_hints.tci; 28 lpcb->connect_num = 0; 29 lpcb->next_same_port_pcb = NULL;
|
D | 0082-add-vlanid-in-netif.patch | 36 lpcb->tos = pcb->tos; 40 lpcb->netif_hints.tci = pcb->netif_hints.tci; 44 lpcb->connect_num = 0;
|
D | 0053-cleancode-improve-lwipopts.h-readability.patch | 708 for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) { 709 if ((lpcb->local_port == pcb->local_port) && 723 lpcb->ttl = pcb->ttl; 724 lpcb->tos = pcb->tos; 728 lpcb->connect_num = 0; 729 lpcb->next_same_port_pcb = NULL; 733 memcpy(&lpcb->ext_args, &pcb->ext_args, sizeof(pcb->ext_args)); 737 …/* pcb transfer to lpcb and reg into tcp_listen_pcbs. freeing pcb shouldn't release sock table in … 741 tcp_backlog_set(lpcb, backlog); 747 TCP_REG_SAMEPORT((struct tcp_pcb_listen *)first_same_port_pcb, (struct tcp_pcb_listen *)lpcb); [all …]
|
D | 0057-same-node-gazellectl-a.patch | 209 …/* pcb transfer to lpcb and reg into tcp_listen_pcbs. freeing pcb shouldn't release sock table in … 214 + snprintf(name, sizeof(name), "listen_rx_ring_%u", lpcb->local_port); 217 + lpcb->listen_rx_ring = NULL; 219 + same_node_ring_create(&lpcb->listen_rx_ring, SAME_NODE_RING_SIZE, lpcb->local_port, "listen"…
|
D | 0010-fix-the-incomplete-release-of-the-conntable.patch | 28 memcpy(&lpcb->ext_args, &pcb->ext_args, sizeof(pcb->ext_args)); 31 + /* pcb transfer to lpcb and reg into tcp_listen_pcbs. freeing pcb shouldn't release sock table i…
|
D | 0002-adapt-lstack.patch | 2443 lpcb = (struct tcp_pcb_listen *)memp_malloc(MEMP_TCP_PCB_LISTEN); 2444 if (lpcb == NULL) { 2755 ((struct tcp_pcb_listen *)prev)->next = lpcb->next; 2757 + if (lpcb->next) 2758 + lpcb->next->prev = (struct tcp_pcb_listen *)prev; 2761 lpcb->next = tcp_listen_pcbs.listen_pcbs; 2763 + lpcb->prev = NULL; 2766 tcp_listen_pcbs.listen_pcbs = lpcb;
|
/third_party/lwip/src/core/ |
D | tcp.c | 409 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 …]
|
D | tcp_in.c | 121 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 …]
|
D | altcp_tcp.c | 287 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/ |
D | tcp_priv.h | 166 #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/ |
D | altcp_tls_mbedtls.c | 1024 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/ |
D | test_tcp.c | 103 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/ |
D | api_msg.c | 1516 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/ |
D | tcp.h | 182 typedef err_t (*tcp_extarg_callback_passive_open_fn)(u8_t id, struct tcp_pcb_listen *lpcb, struct t…
|