Skip to content
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

network: provide convenience functions #4418

Open
5 tasks
OlegHahm opened this issue Dec 6, 2015 · 10 comments
Open
5 tasks

network: provide convenience functions #4418

OlegHahm opened this issue Dec 6, 2015 · 10 comments
Assignees
Labels
Community: good first issue This issue is good for newcomers to RIOT to be addressed / implemented Type: new feature The issue requests / The PR implemements a new feature for RIOT Type: tracking The issue tracks and organizes the sub-tasks of a larger effort

Comments

@OlegHahm
Copy link
Member

OlegHahm commented Dec 6, 2015

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):

  • (ICMP[v6]) ping other nodes
  • simple sending of link layer packet
  • print configured addresses
  • print interface configuration
  • print routing table
@OlegHahm OlegHahm added the Discussion: RFC The issue/PR is used as a discussion starting point about the item of the issue/PR label Dec 6, 2015
@PeterKietzmann
Copy link
Member

I would have already used this several times

@BytesGalore
Copy link
Member

@OlegHahm something like providing headers for the shell commands?

@OlegHahm
Copy link
Member Author

OlegHahm commented Dec 7, 2015

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

@OlegHahm OlegHahm modified the milestone: Release 2016.03 Dec 7, 2015
@OlegHahm OlegHahm modified the milestones: Release 2016.07, Release 2016.04 Mar 28, 2016
@kYc0o
Copy link
Contributor

kYc0o commented Jul 26, 2016

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

@kYc0o kYc0o modified the milestones: Release 2016.10, Release 2016.07 Jul 26, 2016
@miri64 miri64 changed the title network: provide convenient functions network: provide convenience functions Oct 17, 2016
@miri64
Copy link
Member

miri64 commented Oct 17, 2016

Fixed title ;-)

@miri64 miri64 modified the milestones: Release 2017.01, Release 2016.10 Oct 31, 2016
@kaspar030 kaspar030 added Newbie-Task-Candidate and removed Discussion: RFC The issue/PR is used as a discussion starting point about the item of the issue/PR labels Nov 18, 2016
@kaspar030
Copy link
Contributor

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
Copy link
Member Author

I think this makes a lot of sense. Thanks!

@PeterKietzmann PeterKietzmann modified the milestones: Release 2017.01, Release 2017.04 Jan 26, 2017
@miri64 miri64 added Type: new feature The issue requests / The PR implemements a new feature for RIOT Community: good first issue This issue is good for newcomers to RIOT to be addressed / implemented and removed Feature Request labels Sep 30, 2018
@PeterKietzmann
Copy link
Member

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

@kaspar030 did you?

@kaspar030
Copy link
Contributor

@kaspar030 did you?

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

@stale
Copy link

stale bot commented Aug 15, 2019

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.

@stale stale bot added the State: stale State: The issue / PR has no activity for >185 days label Aug 15, 2019
@miri64 miri64 added the Type: tracking The issue tracks and organizes the sub-tasks of a larger effort label Aug 28, 2019
@stale stale bot removed the State: stale State: The issue / PR has no activity for >185 days label Aug 28, 2019
@MrKevinWeiss MrKevinWeiss added this to the Release 2021.07 milestone Jun 22, 2021
@MrKevinWeiss MrKevinWeiss removed this from the Release 2021.07 milestone Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community: good first issue This issue is good for newcomers to RIOT to be addressed / implemented Type: new feature The issue requests / The PR implemements a new feature for RIOT Type: tracking The issue tracks and organizes the sub-tasks of a larger effort
Projects
None yet
Development

No branches or pull requests

8 participants