-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Misc net fixes #1093
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
Misc net fixes #1093
Conversation
If the user has not specified CONFIG_NET_APP_MY_IPV4_ADDR or CONFIG_NET_APP_MY_IPV6_ADDR, the value is set to "" in this case. This will be converted to ANY IP address which is not useful to be set to the network interface. So check this and just continue the init in this case without setting the IP address. Signed-off-by: Jukka Rissanen <[email protected]>
This is needed so that we can get L2 information for example in net-shell. Signed-off-by: Jukka Rissanen <[email protected]>
When printing network interface specific data, print also the type of the network interface (ethernet, bluetooth etc). Signed-off-by: Jukka Rissanen <[email protected]>
The parent output strings were incorrectly aligned. Signed-off-by: Jukka Rissanen <[email protected]>
Print network interface where the DIO, DIS or DAO was sent. This is useful if we have multiple network interfaces in the system. Signed-off-by: Jukka Rissanen <[email protected]>
Allow user to define what kind of network the RPL should serve. Currently options will be either ANY or IEEE802154. If there is only one network interface in the system, then ANY will take the default network interface and use that. If there are multiple network interfaces, then one should not use ANY as the default network interface might not be the expected one. Signed-off-by: Jukka Rissanen <[email protected]>
This is only usable in the root node. Signed-off-by: Jukka Rissanen <[email protected]>
subsys/net/ip/nbr.h
Outdated
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.
can you move it after 'clear' attribute?
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.
Sure, ordering does not really matter currently in the struct but if we need to add more items then it is useful to have the count as a last member.
Instead of always having CONFIG_NET_IPV6_MAX_NEIGHBORS number of items in neighbor pool, store the neighbor count in the pool and use that value when traversing the neighbor table. Signed-off-by: Jukka Rissanen <[email protected]>
Instead of always have CONFIG_NET_IPV6_MAX_NEIGHBORS parents, use CONFIG_NET_RPL_MAX_PARENTS when creating the parent table. Default value for max parents is the max neighbors so no functionality changes are introduced here. Signed-off-by: Jukka Rissanen <[email protected]>
Instead of printing [net/net_pkt], print [net/pkt] if debug log is enabled for network packet allocator. The double net in earlier print is redundant information. Signed-off-by: Jukka Rissanen <[email protected]>
This is needed in order to get information which function is doing the ref. With inline function this was not possible. Signed-off-by: Jukka Rissanen <[email protected]>
|
Updated according to comment. |
Fixes zephyrproject-rtos#1091 Signed-off-by: James Prestwood <[email protected]>
Fixes to various part of the IP stack while working on #980