This repository has been archived by the owner on Sep 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
ng_sniffer: added ng version of sniffer application #6
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export ATRF_RESET ?= GPIO_6 | ||
export ATRF_SLEEP ?= GPIO_7 | ||
export ATRF_SPI_SPEED ?= SPI_SPEED_1MHZ | ||
endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be done somewhere in board?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yap, but at the moment we do not have a concept for initilizing the network devices in a structured manner yet
After RIOT-OS/RIOT#2891 is merged this can be adapted, right? |
I rather wait for the outcome of RIOT-OS/RIOT#2901... |
Or not... at least this PR is temporarily adapted. |
Needs rebase after #2881 was merged. Right? |
Needs adaption: diff --git a/ng_sniffer/Makefile b/ng_sniffer/Makefile
index 7be6e88..e93353d 100644
--- a/ng_sniffer/Makefile
+++ b/ng_sniffer/Makefile
@@ -9,6 +9,9 @@ RIOTBASE ?= $(CURDIR)/../../RIOT
# Define modules that are used
USEMODULE += ng_netif
+USEMODULE += ng_nomac
+USEMODULE += ng_at86rf2xx
+USEMODULE += auto_init_ng_netif
USEMODULE += uart0
USEMODULE += shell
USEMODULE += shell_commands
diff --git a/ng_sniffer/main.c b/ng_sniffer/main.c
index c59eb17..6e82dc3 100644
--- a/ng_sniffer/main.c
+++ b/ng_sniffer/main.c
@@ -21,8 +21,7 @@
#include <stdio.h>
-#include "board.h"
-#include "kernel.h"
+#include "thread.h"
#include "hwtimer.h"
#include "shell.h"
#include "shell_commands.h"
@@ -38,12 +37,12 @@
/**
* @brief Priority of the RAW dump thread
*/
-#define RAWDUMP_PRIO (PRIORITY_MAIN - 1)
+#define RAWDUMP_PRIO (THREAD_PRIORITY_MAIN - 1)
/**
* @brief Stack for the raw dump thread
*/
-static char rawdmp_stack[KERNEL_CONF_STACKSIZE_MAIN];
+static char rawdmp_stack[THREAD_STACKSIZE_MAIN];
/**
* @brief Make a raw dump of the given packet contents |
haukepetersen
changed the title
ng_sniffer: added ng version of sniffer application [WIP]
ng_sniffer: added ng version of sniffer application
Jun 2, 2015
adapted and removed the WIP. Should I squash? |
ACK, please squash |
squashed. |
and go! |
haukepetersen
added a commit
that referenced
this pull request
Jun 2, 2015
ng_sniffer: added ng version of sniffer application
chrysn
pushed a commit
to chrysn-pull-requests/RIOT
that referenced
this pull request
Sep 20, 2022
ng_sniffer: added ng version of sniffer application
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is the adaption of the existing sniffer application to work with the new network stack.
This PR works so far only with
at86rf2xx
drivers, e.g. with theiot-lab_M3
or thesamr21-xpro
boards.