9 print_processes(
struct process *
const processes[])
13 while(*processes !=
NULL) {
14 printf(
" '%s'", (*processes)->name);
21 print_netstack(
void) {
22 printf(
"%s %s, channel check rate %lu Hz, radio channel %u\n",
23 NETSTACK_MAC.name, NETSTACK_RDC.name,
24 CLOCK_SECOND / (NETSTACK_RDC.channel_check_interval() == 0 ? 1:
25 NETSTACK_RDC.channel_check_interval()),
29 void print_lladdrs(
void) {
31 printf(
"Tentative link-local IPv6 address ");
33 for(a = 0; a < UIP_DS6_ADDR_NB; a++) {
34 if (uip_ds6_if.addr_list[a].isused) {
35 for(i = 0; i < 7; ++i) {
37 uip_ds6_if.addr_list[a].ipaddr.u8[i * 2],
38 uip_ds6_if.addr_list[a].ipaddr.u8[i * 2 + 1]);
41 uip_ds6_if.addr_list[a].ipaddr.u8[14],
42 uip_ds6_if.addr_list[a].ipaddr.u8[15]);
Network interface and stateless autoconfiguration (RFC 4862)
#define NULL
The null pointer.
Include file for the Contiki low-layer network stack (NETSTACK)
#define CLOCK_SECOND
A second, measured in system clock time.