Skip to content

Conversation

@jukkar
Copy link
Member

@jukkar jukkar commented Aug 11, 2017

Fixes to various part of the IP stack while working on #980

@jukkar jukkar added the net label Aug 11, 2017
@jukkar jukkar self-assigned this Aug 11, 2017
@jukkar jukkar requested review from rveerama1 and tbursztyka August 11, 2017 10:12
@jukkar jukkar changed the title Various misc net fixes Misc net fixes Aug 11, 2017
jukkar added 7 commits August 14, 2017 09:32
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]>
Copy link
Contributor

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?

Copy link
Member Author

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.

jukkar added 4 commits August 14, 2017 10:15
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]>
@jukkar
Copy link
Member Author

jukkar commented Aug 14, 2017

Updated according to comment.

@jukkar jukkar merged commit d8e13c0 into zephyrproject-rtos:master Aug 14, 2017
nagineni pushed a commit to nagineni/zephyr that referenced this pull request Nov 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants