liqinhuixm opened a new pull request, #2218:
URL: https://github.com/apache/nuttx-apps/pull/2218

   
   ## Summary
   If Managed Address Congfiguration flag in the Router Advertisement Messsage 
is set, we would obtain the IPv6 address though the stateful DHCPv6 procedure.
   
   ## Impact
   The change will affect the process of obtaining IPv6 address by `renew6`.
   
   ## Testing
   We can use radvd to simulte the IPv6 server, and control the RA flags by 
turning on or off the `AdvManagedFlag` field.
   - open the `NET_ICMPv6_AUTOCONF`;
   - then, get the IPv6 address by `renew6`;
   - and check the result with `ifconfig`;
   
   The radvd configuration is as follows:
   ```
   interface nuttx0 {
           IgnoreIfMissing on;
           AdvSendAdvert on;
           MinRtrAdvInterval 200;
           MaxRtrAdvInterval 600;
           AdvOtherConfigFlag on;
           AdvManagedFlag on;
           AdvLinkMTU 1500;
           prefix 2408:501:ffff:abc::/64 {
                   AdvOnLink on;
                   AdvAutonomous on;
                   AdvRouterAddr off;
                   AdvValidLifetime 600;
                   AdvPreferredLifetime 600;
           };
           route 2408:501:ffff:f01::/64 {
           };
   };
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to