cpu/native: allow for multiple netdev2_tap devices#6311
Merged
kYc0o merged 2 commits intoRIOT-OS:masterfrom Jan 19, 2017
Merged
cpu/native: allow for multiple netdev2_tap devices#6311kYc0o merged 2 commits intoRIOT-OS:masterfrom
kYc0o merged 2 commits intoRIOT-OS:masterfrom
Conversation
1fd8a77 to
2ebe5ca
Compare
This was referenced Jan 10, 2017
bergzand
added a commit
to bergzand/RIOT
that referenced
this pull request
Jan 10, 2017
Fixes RIOT-OS#6311 for the mrf24j40
LudwigKnuepfer
suggested changes
Jan 10, 2017
| @@ -0,0 +1,50 @@ | |||
| /* | |||
| * Copyright (C) 2016 Freie Universität Berlin | |||
Member
There was a problem hiding this comment.
Year has been updated upstream.
cpu/native/startup.c
Outdated
| #if defined(MODULE_NETDEV2_TAP) | ||
| if ( | ||
| (argc < 2) | ||
| (argc < (NETDEV2_TAP_MAX + 1)) /* one arg per tap + 0 for command */ |
Member
There was a problem hiding this comment.
This seems to apply the online help above needs updating as it currently says:
#if defined(MODULE_NETDEV2_TAP)
real_printf(" <tap interface>");
#endif
bergzand
added a commit
to bergzand/RIOT
that referenced
this pull request
Jan 11, 2017
Fixes RIOT-OS#6311 for the mrf24j40
bergzand
added a commit
to bergzand/RIOT
that referenced
this pull request
Jan 11, 2017
Fixes RIOT-OS#6311 for the mrf24j40
Contributor
|
Tested on OS X and works correctly. |
bergzand
added a commit
to bergzand/RIOT
that referenced
this pull request
Jan 11, 2017
Fixes RIOT-OS#6311 for the mrf24j40
bergzand
added a commit
to bergzand/RIOT
that referenced
this pull request
Jan 11, 2017
Fixes RIOT-OS#6311 for the mrf24j40
bergzand
added a commit
to bergzand/RIOT
that referenced
this pull request
Jan 11, 2017
Fixes RIOT-OS#6311 for the mrf24j40
bergzand
added a commit
to bergzand/RIOT
that referenced
this pull request
Jan 11, 2017
Fixes RIOT-OS#6311 for the mrf24j40
bergzand
added a commit
to bergzand/RIOT
that referenced
this pull request
Jan 11, 2017
Fixes RIOT-OS#6311 for the mrf24j40
bergzand
added a commit
to bergzand/RIOT
that referenced
this pull request
Jan 11, 2017
Fixes RIOT-OS#6311 for the mrf24j40
Member
Author
|
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
Member
Author
|
Rebased to current master (and squashed because unpicking my stuff and then repicking was annoying) |
5001ba2 to
92466e7
Compare
92466e7 to
1f6f02e
Compare
Member
Author
|
Fixed all issues reported by the CIs and squashed immediately |
Member
Author
|
Both CIs are happy :-) |
Contributor
|
Let's go then! |
bergzand
added a commit
to bergzand/RIOT
that referenced
this pull request
Jan 20, 2017
Fixes RIOT-OS#6311 for the mrf24j40
bergzand
added a commit
to bergzand/RIOT
that referenced
this pull request
Jan 20, 2017
Fixes RIOT-OS#6311 for the mrf24j40
bergzand
added a commit
to bergzand/RIOT
that referenced
this pull request
Jan 20, 2017
Fixes RIOT-OS#6311 for the mrf24j40
bergzand
added a commit
to bergzand/RIOT
that referenced
this pull request
Jan 20, 2017
Fixes RIOT-OS#6311 for the mrf24j40
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adaptation of #5614 with start-up sequence. Tested with
gnrc_networkingwithCurrently 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.