Lines Matching refs:ipaddr
961 * @param pcb UDP PCB to be bound with a local address ipaddr and port.
962 * @param ipaddr local IP address to bind with. Use IP_ANY_TYPE to
968 * ipaddr & port are expected to be in the same byte order as in the pcb.
972 * - ERR_USE. The specified ipaddr and port are already bound to by
978 udp_bind(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port)
990 if (ipaddr == NULL) {
991 ipaddr = IP4_ADDR_ANY;
994 LWIP_ERROR("udp_bind: invalid ipaddr", ipaddr != NULL, return ERR_ARG);
999 LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE, ("udp_bind(ipaddr = "));
1000 ip_addr_debug_print(UDP_DEBUG | LWIP_DBG_TRACE, ipaddr);
1018 if (IP_IS_V6(ipaddr) && ip6_addr_lacks_zone(ip_2_ip6(ipaddr), IP6_UNKNOWN)) {
1019 ip_addr_copy(zoned_ipaddr, *ipaddr);
1021 ipaddr = &zoned_ipaddr;
1050 (((IP_GET_TYPE(&ipcb->local_ip) == IP_GET_TYPE(ipaddr)) &&
1052 (ip_addr_cmp(&ipcb->local_ip, ipaddr) ||
1053 ip_addr_isany(ipaddr) ||
1056 (IP_GET_TYPE(ipaddr) == IPADDR_TYPE_ANY))) {
1067 ip_addr_set_ipaddr(&pcb->local_ip, ipaddr);
1112 * @param pcb UDP PCB to be connected with remote address ipaddr and port.
1113 * @param ipaddr remote IP address to connect with.
1118 * ipaddr & port are expected to be in the same byte order as in the pcb.
1125 udp_connect(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port)
1132 LWIP_ERROR("udp_connect: invalid ipaddr", ipaddr != NULL, return ERR_ARG);
1141 ip_addr_set_ipaddr(&pcb->remote_ip, ipaddr);
1342 /* The PCB is bound to the old ipaddr and