printing local ipv6 address at startup. addresses must match in order for the examples to work

This commit is contained in:
fros4943 2009-02-26 09:02:09 +00:00
parent 2e12c2408e
commit a6fc125b64
2 changed files with 8 additions and 0 deletions

View File

@ -76,6 +76,10 @@ PROCESS_THREAD(udp_process_receiver, ev, data)
PROCESS_BEGIN();
PRINTF("Process test UDP receiver started\n");
PRINTF("Local IPv6 address: ");
PRINT6ADDR(&uip_netif_physical_if.addresses[0].ipaddr);
PRINTF("\n");
#ifdef UDP_ADDR_A
uip_ip6addr(&ipaddr,
UDP_ADDR_A,UDP_ADDR_B,UDP_ADDR_C,UDP_ADDR_D,

View File

@ -92,6 +92,10 @@ PROCESS_THREAD(udp_process_sender, ev, data)
PROCESS_BEGIN();
PRINTF("Process test UDP sender started\n");
PRINTF("Local IPv6 address: ");
PRINT6ADDR(&uip_netif_physical_if.addresses[0].ipaddr);
PRINTF("\n");
#ifdef UDP_ADDR_A
uip_ip6addr(&ipaddr,
UDP_ADDR_A,UDP_ADDR_B,UDP_ADDR_C,UDP_ADDR_D,