Conversation
|
@kYc0o thanks for working on this! I'll look into it and the routing issue, too. |
|
@kYc0o, could you fix your routing issues here ? |
|
Not yet, I'll postpone it. |
|
@smlng are you taking up here? |
|
yep, looking at it again |
dist/tools/ethos/Makefile
Outdated
|
|
||
| ethos: ethos.c | ||
| $(CC) -O3 -Wall ethos.c -o ethos | ||
| $(CC) -O3 -g3 -Wall ethos.c -o ethos |
There was a problem hiding this comment.
unrelated, and not needed in production anyways?
There was a problem hiding this comment.
Let me try it again and see why I have done that. Honestly this is a bit old and I can't remember why.
| @@ -0,0 +1,41 @@ | |||
| #!/bin/bash | |||
|
|
|||
| ETHOS_DIR="$(cd "$(dirname "$0")" && pwd -P)" | |||
There was a problem hiding this comment.
I think we should integrate this into one script, ie. start_network.sh and hide the diffs between macOS and Linux from the user in there.
There was a problem hiding this comment.
I tried that approach but I actually wanted to have a different script for the sake of clearness. IMHO it is better to be aware when we launch a linux or a OS X script, moreover, in bash is a bit more hard to read all the needed if's for the unification.
There was a problem hiding this comment.
Actually the reason is stated in the description of this PR.
|
I've rebased this PR and solved the conflicts. Everything compiles correctly but I still can't make it work correctly. I think is something related with uhcpd. |
|
|
||
| char ifname[IFNAMSIZ]; | ||
| strncpy(ifname, argv[1], IFNAMSIZ); | ||
| #ifdef __linux__ |
There was a problem hiding this comment.
This #ifdef (as well as this is unnecessary, as flags is ignored anyway for the non __linux__ case.
|
Ping @kYc0o? |
|
Unfortunately I can't work on this anymore, as I don't have an OS X. Feel free to close it, if someone wants to take over is also good. |
|
OK, I close it as archived then |
This was a bit past due but here it is. However, there are some things I didn't succeed:
The tap device cannot be configured without an
open()instruction, so it's not configurable until ethos open it. Thus, the original script cannot work, since the previous instructions will fail because ethos is launched at last.A workaround is to start ethos manually and then the script, which will configure the interface and launch uhcpd.
I tried the gnrc_boder_router example, but I didn't succeed to route over OS X. I think the routing table is correctly configured but for some reason I cannot ping any device over the air with the prefix given by the BR. Maybe @Yonezawa-T2 has more hints?
I can mark it WIP until having the routes working, but ethos is useful for other things than the BR.