549 |
|
|
550 |
ip_addr_set(&pcb->remote_ip, ipaddr); |
ip_addr_set(&pcb->remote_ip, ipaddr); |
551 |
pcb->remote_port = port; |
pcb->remote_port = port; |
552 |
|
pcb->flags |= UDP_FLAGS_CONNECTED; |
553 |
/** TODO: this functionality belongs in upper layers */ |
/** TODO: this functionality belongs in upper layers */ |
554 |
#if 0 |
#if 0 |
|
pcb->flags |= UDP_FLAGS_CONNECTED; |
|
555 |
/* Nail down local IP for netconn_addr()/getsockname() */ |
/* Nail down local IP for netconn_addr()/getsockname() */ |
556 |
if (ip_addr_isany(&pcb->local_ip) && !ip_addr_isany(&pcb->remote_ip)) { |
if (ip_addr_isany(&pcb->local_ip) && !ip_addr_isany(&pcb->remote_ip)) { |
557 |
struct netif *netif; |
struct netif *netif; |