RIOT-OS / RIOT

RIOT - The friendly OS for IoT
https://riot-os.org
GNU Lesser General Public License v2.1
4.95k stars 1.99k forks source link

network: provide convenience functions #4418

Open OlegHahm opened 8 years ago

OlegHahm commented 8 years ago

Currently, a lot of shell commands provide some convenient functions (mostly for networking stuff) like "printing interface information", "print the routing table", or "send a certain packet". I think it would be useful to factor out these functions to be used outside the shell. If, e.g., one wants to build an application without the shell but prints the configured addresses (like the microcoap example) or wants to send a simple link-layer packet, this could be useful. Otherwise either code from shell commands gets duplicated or shell commands are called directly without a documented and well-defined interface.

edit Fri 18. Nov 2016 kaspar: added initial list

Convenience functions we'd like to have (feel free to add):

PeterKietzmann commented 8 years ago

I would have already used this several times

BytesGalore commented 8 years ago

@OlegHahm something like providing headers for the shell commands?

OlegHahm commented 8 years ago

something like providing headers for the shell commands?

Pretty much, yes. I think the Contiki folks have something like that in https://github.com/contiki-os/contiki/tree/master/apps

kYc0o commented 8 years ago

AFAIK this issue is not completely solved, so I'll move it for the next release.

miri64 commented 8 years ago

Fixed title ;-)

kaspar030 commented 8 years ago

This issue is very broad. How about we compile a list of those functions and tackle them one-by-one?

@OlegHahm I hope you don't mind but I'll start.

OlegHahm commented 8 years ago

I think this makes a lot of sense. Thanks!

PeterKietzmann commented 5 years ago

@OlegHahm I hope you don't mind but I'll start.

@kaspar030 did you?

kaspar030 commented 5 years ago

@kaspar030 did you?

It seems to me back then I just edited the issue and added some.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions.