Lines Matching refs:sntp_pcb
227 static struct udp_pcb *sntp_pcb;
556 udp_sendto(sntp_pcb, p, server_addr, SNTP_PORT);
667 if (sntp_pcb == NULL) {
668 sntp_pcb = udp_new_ip_type(IPADDR_TYPE_ANY);
669 LWIP_ASSERT("Failed to allocate udp pcb for sntp client", sntp_pcb != NULL);
670 if (sntp_pcb != NULL) {
671 udp_recv(sntp_pcb, sntp_recv, NULL);
681 ip_set_option(sntp_pcb, SOF_BROADCAST);
682 udp_bind(sntp_pcb, IP_ANY_TYPE, SNTP_PORT);
696 if (sntp_pcb != NULL) {
705 udp_remove(sntp_pcb);
706 sntp_pcb = NULL;
716 return (sntp_pcb != NULL) ? 1 : 0;
729 LWIP_ASSERT("Operating mode must not be set while SNTP client is running", sntp_pcb == NULL);