-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cpu/native: allow for multiple netdev2_tap devices #6311
Conversation
1fd8a77
to
2ebe5ca
Compare
Fixes RIOT-OS#6311 for the mrf24j40
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.
Native-wise just one minor issue :-)
I can not comment on netdev related changes.
@@ -0,0 +1,50 @@ | |||
/* | |||
* Copyright (C) 2016 Freie Universität Berlin |
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.
Year has been updated upstream.
@@ -246,15 +247,15 @@ __attribute__((constructor)) static void startup(int argc, char **argv) | |||
|
|||
#if defined(MODULE_NETDEV2_TAP) | |||
if ( | |||
(argc < 2) | |||
(argc < (NETDEV2_TAP_MAX + 1)) /* one arg per tap + 0 for command */ |
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.
This seems to apply the online help above needs updating as it currently says:
#if defined(MODULE_NETDEV2_TAP)
real_printf(" <tap interface>");
#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.
(addressed)
Fixes RIOT-OS#6311 for the mrf24j40
Fixes RIOT-OS#6311 for the mrf24j40
Tested on OS X and works correctly. |
Fixes RIOT-OS#6311 for the mrf24j40
Fixes RIOT-OS#6311 for the mrf24j40
Fixes RIOT-OS#6311 for the mrf24j40
Fixes RIOT-OS#6311 for the mrf24j40
Fixes RIOT-OS#6311 for the mrf24j40
Fixes RIOT-OS#6311 for the mrf24j40
Addressed @LudwigKnuepfer's comments. |
With arg added to async_read callback in 7020b7c, we don't need to keep track of netdev2_tap locally. As a result we can use multiple netdev2_tap instances.
423174c
to
5001ba2
Compare
Rebased to current master (and squashed because unpicking my stuff and then repicking was annoying) |
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.
fine for native
5001ba2
to
92466e7
Compare
92466e7
to
1f6f02e
Compare
Fixed all issues reported by the CIs and squashed immediately |
Both CIs are happy :-) |
Let's go then! |
Fixes RIOT-OS#6311 for the mrf24j40
Fixes RIOT-OS#6311 for the mrf24j40
Fixes RIOT-OS#6311 for the mrf24j40
Fixes RIOT-OS#6311 for the mrf24j40
Adaptation of #5614 with start-up sequence. Tested with
gnrc_networking
withCurrently the initialization of the (absolute) number of devices is fixed to
NETDEV2_TAP_MAX
, but with a clean-up of the argument parsing in native we could fix that. I leave this to a follow-up PR.