|
|
|
@ -138,7 +138,7 @@ static void riot_ccn_relay_config(int argc, char **argv)
|
|
|
|
|
msg_t m; |
|
|
|
|
m.content.value = atoi(argv[1]); |
|
|
|
|
m.type = CCNL_RIOT_CONFIG_CACHE; |
|
|
|
|
msg_send(&m, _relay_pid, 1); |
|
|
|
|
msg_send(&m, _relay_pid); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void riot_ccn_transceiver_start(kernel_pid_t _relay_pid) |
|
|
|
@ -195,7 +195,7 @@ static void riot_ccn_relay_stop(int argc, char **argv)
|
|
|
|
|
msg_t m; |
|
|
|
|
m.content.value = 0; |
|
|
|
|
m.type = CCNL_RIOT_HALT; |
|
|
|
|
msg_send(&m, _relay_pid, 1); |
|
|
|
|
msg_send(&m, _relay_pid); |
|
|
|
|
|
|
|
|
|
/* mark relay as not running */ |
|
|
|
|
_relay_pid = 0; |
|
|
|
@ -240,7 +240,7 @@ static void riot_ccn_pit_test(int argc, char **argv)
|
|
|
|
|
m.content.ptr = (char *) &rmsg; |
|
|
|
|
m.type = CCNL_RIOT_MSG; |
|
|
|
|
|
|
|
|
|
msg_send(&m, _relay_pid, 1); |
|
|
|
|
msg_send(&m, _relay_pid); |
|
|
|
|
|
|
|
|
|
if ((segment % 50) == 0) { |
|
|
|
|
vtimer_now(&now); |
|
|
|
@ -289,7 +289,7 @@ static void riot_ccn_populate(int argc, char **argv)
|
|
|
|
|
msg_t m; |
|
|
|
|
m.content.value = 0; |
|
|
|
|
m.type = CCNL_RIOT_POPULATE; |
|
|
|
|
msg_send(&m, _relay_pid, 1); |
|
|
|
|
msg_send(&m, _relay_pid); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void riot_ccn_stat(int argc, char **argv) |
|
|
|
@ -300,7 +300,7 @@ static void riot_ccn_stat(int argc, char **argv)
|
|
|
|
|
msg_t m; |
|
|
|
|
m.content.value = 0; |
|
|
|
|
m.type = CCNL_RIOT_PRINT_STAT; |
|
|
|
|
msg_send(&m, _relay_pid, 1); |
|
|
|
|
msg_send(&m, _relay_pid); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static const shell_command_t sc[] = { |
|
|
|
|