Home
last modified time | relevance | path

Searched refs:pcb (Results 1 – 16 of 16) sorted by relevance

/hal_espressif-2.7.6/components/lwip/port/esp32/debug/
Dlwip_debug.c31 #define DBG_LWIP_IP_PCB_SHOW(pcb) \ argument
32 DBG_LWIP_IP_SHOW("local ip", (pcb)->local_ip);\
33 DBG_LWIP_IP_SHOW("remote ip", (pcb)->remote_ip);\
34 ESP_LWIP_LOGI("so_options=%x, tos=%d ttl=%d", (pcb)->so_options, (pcb)->tos, (pcb)->ttl)
40 static void dbg_lwip_tcp_pcb_cnt_show(struct tcp_pcb *pcb) in dbg_lwip_tcp_pcb_cnt_show() argument
55 len += sprintf(p + len, "%-2d=%-5d ", i+1, pcb->retry_cnt[i]); in dbg_lwip_tcp_pcb_cnt_show()
68 len += sprintf(p + len, "%-2d=%-5d ", i+1, pcb->rto_cnt[i]); in dbg_lwip_tcp_pcb_cnt_show()
76 static void dbg_lwip_tcp_pcb_one_show(struct tcp_pcb* pcb) in dbg_lwip_tcp_pcb_one_show() argument
80 if (!pcb) { in dbg_lwip_tcp_pcb_one_show()
84 ESP_LWIP_LOGI("pcb=%p next=%p cb_arg=%p", pcb, pcb->next, pcb->callback_arg); in dbg_lwip_tcp_pcb_one_show()
[all …]
/hal_espressif-2.7.6/examples/bluetooth/esp_ble_mesh/common_components/button/
Dbutton.c154 button_cb_t *pcb = btn->cb_head; in button_tap_rls_cb() local
155 while (pcb != NULL) { in button_tap_rls_cb()
156 if (pcb->tmr != NULL) { in button_tap_rls_cb()
157 STOP_TIMER(pcb->tmr); in button_tap_rls_cb()
159 pcb = pcb->next_cb; in button_tap_rls_cb()
210 button_cb_t *pcb = btn->cb_head; in button_gpio_isr_handler() local
211 while (pcb != NULL) { in button_gpio_isr_handler()
212 if (pcb->tmr != NULL) { in button_gpio_isr_handler()
214 xTimerStopFromISR(pcb->tmr, &HPTaskAwoken); in button_gpio_isr_handler()
215 xTimerResetFromISR(pcb->tmr, &HPTaskAwoken); in button_gpio_isr_handler()
[all …]
/hal_espressif-2.7.6/components/lwip/test_afl_host/
Ddhcpserver_di.h12 static void handle_dhcp(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_…
14 void (*dhcp_test_static_handle_hdcp)(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_…
21 void dhcp_test_handle_dhcp(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u… in dhcp_test_handle_dhcp() argument
23 dhcp_test_static_handle_hdcp(arg, pcb, p, addr, port); in dhcp_test_handle_dhcp()
Dnetwork_mock.c116 err_t udp_sendto(struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip, u16_t dst_port) in udp_sendto() argument
121 void udp_remove(struct udp_pcb *pcb) in udp_remove() argument
123 if (pcb == NULL) in udp_remove()
125 free(pcb); in udp_remove()
134 err_t udp_bind(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port) in udp_bind() argument
139 void udp_recv(struct udp_pcb *pcb, udp_recv_fn recv, void *recv_arg) in udp_recv() argument
143 void udp_disconnect(struct udp_pcb *pcb) in udp_disconnect() argument
218 err_t udp_connect(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port) in udp_connect() argument
223 err_t udp_sendto_if(struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip, u16_t dst_port, s… in udp_sendto_if() argument
228 err_t udp_sendto_if_src(struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip, u16_t dst_por… in udp_sendto_if_src() argument
Ddhcp_di.h22 static void dhcp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t …
24 void (*dhcp_test_static_dhcp_recv)(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t …
31 void dhcp_test_dhcp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16… in dhcp_test_dhcp_recv() argument
33 dhcp_test_static_dhcp_recv(arg, pcb, p, addr, port); in dhcp_test_dhcp_recv()
Ddns_di.h33 static void dns_recv(void *s, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t por…
35 void (*dns_test_static_dns_recv)(void *s, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *add…
50 void dns_test_dns_recv(void *s, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t p… in dns_test_dns_recv() argument
52 dns_test_static_dns_recv(s, pcb, p, addr, port); in dns_test_dns_recv()
Dtest_dhcp_server.c16 void dhcp_test_handle_dhcp(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u…
Dtest_dhcp_client.c24 void dhcp_test_dhcp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16…
Dtest_dns.c21 void dns_test_dns_recv(void *s, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t p…
/hal_espressif-2.7.6/components/mdns/
Dmdns_networking.c159 struct udp_pcb * pcb = NULL; local
161 pcb = _mdns_server->interfaces[i].pcbs[packet->ip_protocol].pcb;
163 if (pcb && netif && netif == ip_current_input_netif ()) {
170 pcb = NULL;
177 pcb = NULL;
180 if (!pcb || !_mdns_server || !_mdns_server->action_queue
196 if(_mdns_server->interfaces[i].pcbs[p].pcb){
213 if (_pcb->pcb) {
216 _pcb->pcb = NULL;
234 if (!_mdns_server || _mdns_server->interfaces[tcpip_if].pcbs[ip_protocol].pcb) {
[all …]
Dmdns.c923 …if (!_mdns_server->interfaces[tcpip_if].pcbs[MDNS_IP_PROTOCOL_V4].pcb && _mdns_server->interfaces[… in _mdns_append_answer()
947 …if (!_mdns_server->interfaces[tcpip_if].pcbs[MDNS_IP_PROTOCOL_V6].pcb && _mdns_server->interfaces[… in _mdns_append_answer()
1434 if (_mdns_server->interfaces[tcpip_if].pcbs[MDNS_IP_PROTOCOL_V4].pcb) { in _mdns_create_probe_packet()
1441 if (_mdns_server->interfaces[tcpip_if].pcbs[MDNS_IP_PROTOCOL_V6].pcb) { in _mdns_create_probe_packet()
1548 mdns_pcb_t * pcb = &_mdns_server->interfaces[tcpip_if].pcbs[ip_protocol]; in _mdns_init_pcb_probe_new_service() local
1551 if (PCB_STATE_IS_PROBING(pcb)) { in _mdns_init_pcb_probe_new_service()
1552 services_final_len += pcb->probe_services_len; in _mdns_init_pcb_probe_new_service()
1566 if (pcb->probe_services) { in _mdns_init_pcb_probe_new_service()
1567 for (i=0; i<pcb->probe_services_len; i++) { in _mdns_init_pcb_probe_new_service()
1568 _services[len+i] = pcb->probe_services[i]; in _mdns_init_pcb_probe_new_service()
[all …]
/hal_espressif-2.7.6/components/lwip/apps/ping/
Dping.c136 ping_recv(void *arg, struct raw_pcb *pcb, struct pbuf *p, const ip_addr_t *addr) in ping_recv() argument
142 LWIP_UNUSED_ARG(pcb); in ping_recv()
198 struct raw_pcb *pcb = (struct raw_pcb*)arg; in ping_timeout() local
201 LWIP_ASSERT("ping_timeout: no pcb given!", pcb != NULL); in ping_timeout()
204 ping_send(pcb, &ping_target); in ping_timeout()
205 sys_timeout(PING_DELAY, ping_timeout, pcb); in ping_timeout()
/hal_espressif-2.7.6/components/esp_netif/lwip/
Desp_netif_lwip_ppp.c53 static void on_ppp_status_changed(ppp_pcb *pcb, int err_code, void *ctx) in on_ppp_status_changed() argument
55 struct netif *pppif = ppp_netif(pcb); in on_ppp_status_changed()
70 if (pcb->if4_up && !ip_addr_isany(&pppif->ip_addr)) { in on_ppp_status_changed()
98 } else if (pcb->if6_up && !ip_addr_isany(&pppif->ip6_addr[0])) { in on_ppp_status_changed()
187 static void on_ppp_notify_phase(ppp_pcb *pcb, u8_t phase, void *ctx) in on_ppp_notify_phase() argument
240 static uint32_t pppos_low_level_output(ppp_pcb *pcb, uint8_t *data, uint32_t len, void *netif) in pppos_low_level_output() argument
/hal_espressif-2.7.6/components/mdns/private_include/
Dmdns_private.h334 struct udp_pcb * pcb; member
/hal_espressif-2.7.6/components/bt/host/bluedroid/bta/jv/
Dbta_jv_act.c117 static int find_rfc_pcb(void *user_data, tBTA_JV_RFC_CB **cb, tBTA_JV_PCB **pcb);
1831 static int find_rfc_pcb(void *user_data, tBTA_JV_RFC_CB **cb, tBTA_JV_PCB **pcb) in find_rfc_pcb() argument
1834 *pcb = NULL; in find_rfc_pcb()
1840 *pcb = &bta_jv_cb.port_cb[i]; in find_rfc_pcb()
1843 " 0x%x, state: %d, rfc_cb->handle: 0x%x", rfc_handle, (*pcb)->handle, in find_rfc_pcb()
1844 (*pcb)->state, (*cb)->handle); in find_rfc_pcb()
/hal_espressif-2.7.6/components/lwip/apps/dhcpserver/
Ddhcpserver.c955 struct udp_pcb *pcb, in handle_dhcp() argument