516 |
udp_pcbs = pcb; |
udp_pcbs = pcb; |
517 |
} |
} |
518 |
LWIP_DEBUGF(UDP_DEBUG | DBG_TRACE | DBG_STATE, ("udp_bind: bound to %u.%u.%u.%u, port %u\n", |
LWIP_DEBUGF(UDP_DEBUG | DBG_TRACE | DBG_STATE, ("udp_bind: bound to %u.%u.%u.%u, port %u\n", |
519 |
(u8_t)(ntohl(pcb->local_ip.addr) >> 24 & 0xff), |
(unsigned int)(ntohl(pcb->local_ip.addr) >> 24 & 0xff), |
520 |
(u8_t)(ntohl(pcb->local_ip.addr) >> 16 & 0xff), |
(unsigned int)(ntohl(pcb->local_ip.addr) >> 16 & 0xff), |
521 |
(u8_t)(ntohl(pcb->local_ip.addr) >> 8 & 0xff), |
(unsigned int)(ntohl(pcb->local_ip.addr) >> 8 & 0xff), |
522 |
(u8_t)(ntohl(pcb->local_ip.addr) & 0xff), pcb->local_port)); |
(unsigned int)(ntohl(pcb->local_ip.addr) & 0xff), pcb->local_port)); |
523 |
return ERR_OK; |
return ERR_OK; |
524 |
} |
} |
525 |
/** |
/** |
571 |
} |
} |
572 |
#endif |
#endif |
573 |
LWIP_DEBUGF(UDP_DEBUG | DBG_TRACE | DBG_STATE, ("udp_connect: connected to %u.%u.%u.%u, port %u\n", |
LWIP_DEBUGF(UDP_DEBUG | DBG_TRACE | DBG_STATE, ("udp_connect: connected to %u.%u.%u.%u, port %u\n", |
574 |
(u8_t)(ntohl(pcb->remote_ip.addr) >> 24 & 0xff), |
(unsigned int)(ntohl(pcb->remote_ip.addr) >> 24 & 0xff), |
575 |
(u8_t)(ntohl(pcb->remote_ip.addr) >> 16 & 0xff), |
(unsigned int)(ntohl(pcb->remote_ip.addr) >> 16 & 0xff), |
576 |
(u8_t)(ntohl(pcb->remote_ip.addr) >> 8 & 0xff), |
(unsigned int)(ntohl(pcb->remote_ip.addr) >> 8 & 0xff), |
577 |
(u8_t)(ntohl(pcb->remote_ip.addr) & 0xff), pcb->remote_port)); |
(unsigned int)(ntohl(pcb->remote_ip.addr) & 0xff), pcb->remote_port)); |
578 |
|
|
579 |
/* Insert UDP PCB into the list of active UDP PCBs. */ |
/* Insert UDP PCB into the list of active UDP PCBs. */ |
580 |
for(ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) { |
for(ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) { |