diff --git a/boards/native/Makefile.dep b/boards/native/Makefile.dep index baf72ef3a3b39cd884ee9e512466881c116facca..66e0ec96098e9e331e4719b9ed1482d715990a9a 100644 --- a/boards/native/Makefile.dep +++ b/boards/native/Makefile.dep @@ -1,5 +1,5 @@ ifneq (,$(filter ng_netif_default,$(USEMODULE))) - USEMODULE += ng_nativenet + USEMODULE += dev_eth_tap USEMODULE += ng_netdev_eth USEMODULE += ng_nomac endif diff --git a/cpu/native/Makefile b/cpu/native/Makefile index cc430d5cee68996f516531ddbfca4c8b3359ddfd..7f538c1f419db01eca494a6d2ded0c034c07c633 100644 --- a/cpu/native/Makefile +++ b/cpu/native/Makefile @@ -2,8 +2,8 @@ MODULE = cpu DIRS += periph -ifneq (,$(filter ng_nativenet,$(USEMODULE))) - DIRS += ng_net +ifneq (,$(filter dev_eth_tap,$(USEMODULE))) + DIRS += dev_eth_tap endif include $(RIOTBASE)/Makefile.base diff --git a/cpu/native/ng_net/Makefile b/cpu/native/dev_eth_tap/Makefile similarity index 74% rename from cpu/native/ng_net/Makefile rename to cpu/native/dev_eth_tap/Makefile index 48870e9d812960b6a592180e05f46f5ed6cc70c6..655e12c6908daa9e1186eb911ed17e7666e0e1d8 100644 --- a/cpu/native/ng_net/Makefile +++ b/cpu/native/dev_eth_tap/Makefile @@ -1,4 +1,4 @@ -MODULE = ng_nativenet +MODULE = dev_eth_tap include $(RIOTBASE)/Makefile.base diff --git a/cpu/native/ng_net/dev_eth_tap.c b/cpu/native/dev_eth_tap/dev_eth_tap.c similarity index 100% rename from cpu/native/ng_net/dev_eth_tap.c rename to cpu/native/dev_eth_tap/dev_eth_tap.c diff --git a/cpu/native/include/dev_eth_tap.h b/cpu/native/include/dev_eth_tap.h index 224fe1d0768223ea0e115a07f56888b3c2dcbfeb..16175d7c48e0d22cae307ce18f7a97077c19747f 100644 --- a/cpu/native/include/dev_eth_tap.h +++ b/cpu/native/include/dev_eth_tap.h @@ -7,13 +7,14 @@ */ /** - * @defgroup net_dev_eth_impl Low-level Ethernet driver implementations - * @ingroup net_dev_eth_ll + * @defgroup dev_eth_tap Ethernet driver for TAP interfaces + * @ingroup native_cpu * @brief Low-level ethernet driver for native tap interfaces * @{ * * @file - * @brief Definitions for low-level ethernet driver for native tap interfaces + * @brief Definitions for @ref net_dev_eth driver for host system's + * TAP interfaces * * @author Kaspar Schleiser <kaspar@schleiser.de> */ diff --git a/cpu/native/native_cpu.c b/cpu/native/native_cpu.c index b63793246064013ef8fe4fc855d904d0c845e0ae..0c6a9c4acf4ec9ef6e9b79bed019ba788b94ad89 100644 --- a/cpu/native/native_cpu.c +++ b/cpu/native/native_cpu.c @@ -49,7 +49,7 @@ #include "cpu.h" #include "cpu_conf.h" -#ifdef MODULE_NG_NATIVENET +#ifdef MODULE_DEV_ETH_TAP #include "dev_eth_tap.h" extern dev_eth_tap_t dev_eth_tap; #endif @@ -75,7 +75,7 @@ int reboot_arch(int mode) /* TODO: close stdio fds */ #endif -#ifdef MODULE_NG_NATIVENET +#ifdef MODULE_DEV_ETH_TAP dev_eth_tap_cleanup(&dev_eth_tap); #endif diff --git a/cpu/native/startup.c b/cpu/native/startup.c index e8d3aa9b9a19c9cb6d223433d5186b20196b051d..0d46b540c6f72dcc4c96048417fa565a8f1253ac 100644 --- a/cpu/native/startup.c +++ b/cpu/native/startup.c @@ -46,7 +46,7 @@ unsigned _native_rng_seed = 0; int _native_rng_mode = 0; const char *_native_unix_socket_path = NULL; -#ifdef MODULE_NG_NATIVENET +#ifdef MODULE_DEV_ETH_TAP #include "dev_eth_tap.h" extern dev_eth_tap_t dev_eth_tap; #endif @@ -196,7 +196,7 @@ void usage_exit(void) { real_printf("usage: %s", _progname); -#if defined(MODULE_NG_NATIVENET) +#if defined(MODULE_DEV_ETH_TAP) real_printf(" <tap interface>"); #endif @@ -256,7 +256,7 @@ __attribute__((constructor)) static void startup(int argc, char **argv) int replay = 0; #endif -#if defined(MODULE_NG_NATIVENET) +#if defined(MODULE_DEV_ETH_TAP) if ( (argc < 2) || ( @@ -367,7 +367,7 @@ __attribute__((constructor)) static void startup(int argc, char **argv) native_cpu_init(); native_interrupt_init(); -#ifdef MODULE_NG_NATIVENET +#ifdef MODULE_DEV_ETH_TAP dev_eth_tap_setup(&dev_eth_tap, argv[1]); #endif diff --git a/sys/auto_init/dev_eth/dev_eth_autoinit.c b/sys/auto_init/dev_eth/dev_eth_autoinit.c index fc37fe7c815828da1069a4165c8ea9a7243249ce..b4b290b72fa70f16663759fd3f251f03330fdf7b 100644 --- a/sys/auto_init/dev_eth/dev_eth_autoinit.c +++ b/sys/auto_init/dev_eth/dev_eth_autoinit.c @@ -9,7 +9,7 @@ #include "net/dev_eth.h" #include "dev_eth_autoinit.h" -#ifdef MODULE_NG_NATIVENET +#ifdef MODULE_DEV_ETH_TAP #include "dev_eth_tap.h" #endif @@ -19,7 +19,7 @@ encx24j600_t dev_eth_encx24j600; #endif dev_eth_t * const dev_eth_devices[] = { -#ifdef MODULE_NG_NATIVENET +#ifdef MODULE_DEV_ETH_TAP [DEV_ETH_TAP] = (dev_eth_t*)&dev_eth_tap, #endif #ifdef MODULE_ENCX24J600 diff --git a/sys/include/dev_eth_autoinit.h b/sys/include/dev_eth_autoinit.h index 715225b2bfc37b93502e8da7cd7cfc5e6537634b..a8d393be87b93b01d2981d82831d451c9add6dac 100644 --- a/sys/include/dev_eth_autoinit.h +++ b/sys/include/dev_eth_autoinit.h @@ -29,7 +29,7 @@ extern "C" { * @brief enum for available ethernet devices */ enum { -#ifdef MODULE_NG_NATIVENET +#ifdef MODULE_DEV_ETH_TAP DEV_ETH_TAP, #endif #ifdef MODULE_ENCX24J600 diff --git a/sys/include/net/dev_eth.h b/sys/include/net/dev_eth.h index 69718b01d8bfdfb9891cc844c6b45ff4e6521047..487d6e750a8093c90bef8d20d9d9a3e7ae4dbe2d 100644 --- a/sys/include/net/dev_eth.h +++ b/sys/include/net/dev_eth.h @@ -8,11 +8,9 @@ */ /** - * @defgroup net_dev_eth_ll Low-Level Driver Inteface + * @defgroup net_dev_eth Low-Level Driver Interface * @ingroup net_ethernet - * @file * @brief Low-level ethernet driver interface - * @{ * * This interface is supposed to be a low-level interface for ethernet drivers. * In order to be universally usable, it leaves out many implementation details @@ -44,6 +42,8 @@ * * Check out the dev_eth test application as example. * + * @{ + * * @file * @brief Definitions low-level ethernet driver interface * diff --git a/tests/dev_eth/Makefile b/tests/dev_eth/Makefile index a26853fe94657718b15cc9b819ff9f30b05bd6f4..ac9ca51a9a297151cc374e6cb85f63a146b90bc1 100644 --- a/tests/dev_eth/Makefile +++ b/tests/dev_eth/Makefile @@ -5,7 +5,7 @@ BOARD_WHITELIST = native FEATURES_REQUIRED += ethernet ifneq (,$(filter native,$(BOARD))) -USEMODULE += ng_nativenet +USEMODULE += dev_eth_tap endif USEMODULE += dev_eth_autoinit diff --git a/tests/driver_netdev_eth/Makefile b/tests/driver_netdev_eth/Makefile index 30d326d8bf50af5c22b2a51a65874dbac83f47aa..a2fcc6e80a6da691c5f80561f32159c7a19cfc26 100644 --- a/tests/driver_netdev_eth/Makefile +++ b/tests/driver_netdev_eth/Makefile @@ -3,7 +3,7 @@ include ../Makefile.tests_common BOARD_WHITELIST := native -USEMODULE += ng_nativenet +USEMODULE += dev_eth_tap USEMODULE += ng_netbase USEMODULE += ng_nomac USEMODULE += ng_pktdump