34 #include "net/uip-debug.h"
44 static coap_address_t
dst;
57 coap_address_t listen_addr;
64 uip_ip6addr(&listen_addr.addr, 0xaaaa, 0, 0, 0, 0, 0, 0, 0);
65 uip_ds6_set_addr_iid(&listen_addr.addr, &uip_lladdr);
66 uip_ds6_addr_add(&listen_addr.addr, 0, ADDR_AUTOCONF);
68 uip_debug_lladdr_print(&uip_lladdr);
70 uip_debug_ipaddr_print(&listen_addr.addr);
75 printf(
"tentative address: [%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x]:%d\r\n",
76 listen_addr.addr.u8[0], listen_addr.addr.u8[1],
77 listen_addr.addr.u8[2], listen_addr.addr.u8[3],
78 listen_addr.addr.u8[4], listen_addr.addr.u8[5],
79 listen_addr.addr.u8[6], listen_addr.addr.u8[7],
80 listen_addr.addr.u8[8], listen_addr.addr.u8[9],
81 listen_addr.addr.u8[10], listen_addr.addr.u8[11],
82 listen_addr.addr.u8[12], listen_addr.addr.u8[13],
83 listen_addr.addr.u8[14], listen_addr.addr.u8[15] ,
84 uip_ntohs(listen_addr.port));
92 coap_log(LOG_CRIT,
"cannot create CoAP context\r\n");
97 const coap_address_t *remote,
104 debug(
"** process incoming %d.%02d response:\n",
121 coap_log(LOG_EMERG,
"cannot create context\n");
131 uip_ip6addr(&
dst.addr, 0xaaaa, 0, 0, 0, 0x206, 0x98ff, 0xfe00, 0x232);
141 unsigned char portbuf[2];
149 unsigned char *buf = _buf;
167 unsigned char buf[2];
177 if(ev == tcpip_event) {