1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

native: rename ng_nativenet to dev_eth_tap

This commit is contained in:
Martine Lenders 2015-08-09 22:03:08 +02:00
parent ca71ae4f59
commit f0cb1429f0
10 changed files with 15 additions and 15 deletions

View File

@ -1,5 +1,5 @@
ifneq (,$(filter ng_netif_default,$(USEMODULE))) ifneq (,$(filter ng_netif_default,$(USEMODULE)))
USEMODULE += ng_nativenet USEMODULE += dev_eth_tap
USEMODULE += ng_netdev_eth USEMODULE += ng_netdev_eth
USEMODULE += ng_nomac USEMODULE += ng_nomac
endif endif

View File

@ -2,8 +2,8 @@ MODULE = cpu
DIRS += periph DIRS += periph
ifneq (,$(filter ng_nativenet,$(USEMODULE))) ifneq (,$(filter dev_eth_tap,$(USEMODULE)))
DIRS += ng_net DIRS += dev_eth_tap
endif endif
include $(RIOTBASE)/Makefile.base include $(RIOTBASE)/Makefile.base

View File

@ -1,4 +1,4 @@
MODULE = ng_nativenet MODULE = dev_eth_tap
include $(RIOTBASE)/Makefile.base include $(RIOTBASE)/Makefile.base

View File

@ -49,7 +49,7 @@
#include "cpu.h" #include "cpu.h"
#include "cpu_conf.h" #include "cpu_conf.h"
#ifdef MODULE_NG_NATIVENET #ifdef MODULE_DEV_ETH_TAP
#include "dev_eth_tap.h" #include "dev_eth_tap.h"
extern dev_eth_tap_t dev_eth_tap; extern dev_eth_tap_t dev_eth_tap;
#endif #endif
@ -75,7 +75,7 @@ int reboot_arch(int mode)
/* TODO: close stdio fds */ /* TODO: close stdio fds */
#endif #endif
#ifdef MODULE_NG_NATIVENET #ifdef MODULE_DEV_ETH_TAP
dev_eth_tap_cleanup(&dev_eth_tap); dev_eth_tap_cleanup(&dev_eth_tap);
#endif #endif

View File

@ -46,7 +46,7 @@ unsigned _native_rng_seed = 0;
int _native_rng_mode = 0; int _native_rng_mode = 0;
const char *_native_unix_socket_path = NULL; const char *_native_unix_socket_path = NULL;
#ifdef MODULE_NG_NATIVENET #ifdef MODULE_DEV_ETH_TAP
#include "dev_eth_tap.h" #include "dev_eth_tap.h"
extern dev_eth_tap_t dev_eth_tap; extern dev_eth_tap_t dev_eth_tap;
#endif #endif
@ -196,7 +196,7 @@ void usage_exit(void)
{ {
real_printf("usage: %s", _progname); real_printf("usage: %s", _progname);
#if defined(MODULE_NG_NATIVENET) #if defined(MODULE_DEV_ETH_TAP)
real_printf(" <tap interface>"); real_printf(" <tap interface>");
#endif #endif
@ -256,7 +256,7 @@ __attribute__((constructor)) static void startup(int argc, char **argv)
int replay = 0; int replay = 0;
#endif #endif
#if defined(MODULE_NG_NATIVENET) #if defined(MODULE_DEV_ETH_TAP)
if ( if (
(argc < 2) (argc < 2)
|| ( || (
@ -367,7 +367,7 @@ __attribute__((constructor)) static void startup(int argc, char **argv)
native_cpu_init(); native_cpu_init();
native_interrupt_init(); native_interrupt_init();
#ifdef MODULE_NG_NATIVENET #ifdef MODULE_DEV_ETH_TAP
dev_eth_tap_setup(&dev_eth_tap, argv[1]); dev_eth_tap_setup(&dev_eth_tap, argv[1]);
#endif #endif

View File

@ -9,7 +9,7 @@
#include "net/dev_eth.h" #include "net/dev_eth.h"
#include "dev_eth_autoinit.h" #include "dev_eth_autoinit.h"
#ifdef MODULE_NG_NATIVENET #ifdef MODULE_DEV_ETH_TAP
#include "dev_eth_tap.h" #include "dev_eth_tap.h"
#endif #endif
@ -19,7 +19,7 @@ encx24j600_t dev_eth_encx24j600;
#endif #endif
dev_eth_t * const dev_eth_devices[] = { 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, [DEV_ETH_TAP] = (dev_eth_t*)&dev_eth_tap,
#endif #endif
#ifdef MODULE_ENCX24J600 #ifdef MODULE_ENCX24J600

View File

@ -29,7 +29,7 @@ extern "C" {
* @brief enum for available ethernet devices * @brief enum for available ethernet devices
*/ */
enum { enum {
#ifdef MODULE_NG_NATIVENET #ifdef MODULE_DEV_ETH_TAP
DEV_ETH_TAP, DEV_ETH_TAP,
#endif #endif
#ifdef MODULE_ENCX24J600 #ifdef MODULE_ENCX24J600

View File

@ -5,7 +5,7 @@ BOARD_WHITELIST = native
FEATURES_REQUIRED += ethernet FEATURES_REQUIRED += ethernet
ifneq (,$(filter native,$(BOARD))) ifneq (,$(filter native,$(BOARD)))
USEMODULE += ng_nativenet USEMODULE += dev_eth_tap
endif endif
USEMODULE += dev_eth_autoinit USEMODULE += dev_eth_autoinit

View File

@ -3,7 +3,7 @@ include ../Makefile.tests_common
BOARD_WHITELIST := native BOARD_WHITELIST := native
USEMODULE += ng_nativenet USEMODULE += dev_eth_tap
USEMODULE += ng_netbase USEMODULE += ng_netbase
USEMODULE += ng_nomac USEMODULE += ng_nomac
USEMODULE += ng_pktdump USEMODULE += ng_pktdump