-
Notifications
You must be signed in to change notification settings - Fork 2.1k
sys:net:routing Add a dynamic routing information base (RIB) #930
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
Conversation
Can you reorganize the commits into features? |
Damn, I forgot to push the squashed commits. |
squashed to one commit |
Is your master up to date + this based on it? |
No, but now it should be. |
This is IPv6 only? Maybe it should be reflected in the name if it is intended to stay that way. |
please make functions either static or add the prefix of the module to them |
yes, IPv6 only. |
sorry wrong button |
Doxygen documentation is not complete. |
* | ||
* @param dst_net_addr pointer to the address to be deleted | ||
* @param iface_id pointer to the transceiver interface identifier | ||
* @param metric pointer to the metric(s) used for this routing entry |
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.
There is no "metric pointer"-param
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.
yepp, it became obsolete during implementation.
btw. this is still WIP, it basically works, but things may change. (definitely the doxy will change ;) )
A future PR of RPL-restruction should include a form of common routing information base like this PR. Looks therefore fine except the additional module called "routing", which is also included in earlier PR #918 |
If there is interest, maybe we can discuss this PR? It would be a nice thing to have such a common routing table structure. Actually I kind of need it (or something similar) for RPL, so if this not gets an ACK, then I have to implement something more rudimentary (not a base, just common routing and forwarding table behaviour) on my own. |
sure, at least I'm interested in this PR ;) . I will add the requested changes tomorrow, then we will have a base to talk about further requests and changes. |
size_t max_entries; | ||
|
||
// the current number of entries in the routing table | ||
size_t current_entries; |
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.
Unprefixed variables, defined in a header file??
…unctions added a test for some base functions of the RIB
I close this WIP PR temporary until my concept of RIB reaches a more mature level:
|
The dynamic RIB implementation enables to keep the general routing management on the OS side.
It detaches routing and forwarding tables from the actual used routing protocol and provides interfaces for handling the entries.