Contiki: set port and size for local interface in coap_new_endpoint()

FIXME: size field from coap_endpoint_t should be removed as only
POSIX has different address sizes.
This commit is contained in:
Olaf Bergmann committed 2015-02-16 13:34:39 +01:00
1 parent d52f338215
commit b29709f138
1 file changed
+2
+2
View File
@@ -87,7 +87,9 @@ coap_new_endpoint(const coap_address_t *addr, int flags) {
return NULL;
}
coap_address_init(&ep->addr);
uip_ipaddr_copy(&ep->addr.addr, &addr->addr);
ep->addr.port = addr->port;
udp_bind((struct uip_udp_conn *)ep->handle.conn, addr->port);
}
return ep;