/* * Copyright (C) 2019 Freie Universität Berlin * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @{ * * @file * @author Martine Lenders */ #include "net/gnrc.h" #include "net/gnrc/netif.h" #include "net/gnrc/pktdump.h" #if IS_USED(MODULE_SHELL) #include #include #include "thread.h" #include "shell.h" #endif int main(void) { #if IS_USED(MODULE_SOCKET_ZEP) /* This is a test for native with socket_zep */ char addr_str[GNRC_NETIF_L2ADDR_MAXLEN * 3]; gnrc_netif_t *netif = gnrc_netif_iter(NULL); printf("l2_addr: %s\n", gnrc_netif_addr_to_str(netif->l2addr, netif->l2addr_len, addr_str)); #endif gnrc_netreg_entry_t dump = GNRC_NETREG_ENTRY_INIT_PID( GNRC_NETREG_DEMUX_CTX_ALL, gnrc_pktdump_pid ); gnrc_netreg_register(GNRC_NETTYPE_UNDEF, &dump); #if IS_USED(MODULE_SHELL) /* this is manual test for real MCU using shell module */ char line_buf[SHELL_DEFAULT_BUFSIZE]; shell_run(NULL, line_buf, SHELL_DEFAULT_BUFSIZE); #endif return 0; } /** @} */