Closed hakehuang closed 1 month ago
add @shrek-wang who initially identify this issue
this issue is related to #77399
Usually the prefixes are set when received by router advertisement message. I suppose we can set those manually when adding static addresses. Please send a PR to change the sample.
Without a prefix/mask to the interface, the 'net_data_send()' will go to a different branch in 'net_ipv6_prepare_for_send()'. Because the 2 nodes are in the same VLAN, we expect it to go the 'onlink' branch but it goes to the 'try_send'. That's why we think this makes no much sense and submit the ticket. Will prepare a PR for the sample.
@shrek-wang this is a medium-priority issue, so just following-up. Do you still plan to send a PR?
@shrek-wang this is a medium-priority issue, so just following-up. Do you still plan to send a PR?
Yes, will send a PR in a few days. Was busy last week.
Describe the bug
take sample/net/vlan as example, the ipv6 is null, see below
net status
logSteps to reproduce
Expected behavior
the ipv6 prefix shall has a default value, however it is empty. If an IPv6 Global-unicast-address is set, the IPv6-prefix should also be set accordingly.
Impact
ipv6 routing function is implement wrongly.
Logs and console output
Environment (please complete the following information):
Additional context
a simple trial is add below for samples/net/vlan application
adding below lines, after the
after the
then the net status will show below