File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -441,6 +441,29 @@ static void iface_cb(struct net_if *iface, void *user_data)
441
441
PR ("IPv6 retransmit timer : %d\n" ,
442
442
ipv6 -> retrans_timer );
443
443
}
444
+
445
+ #if defined(CONFIG_NET_DHCPV6 )
446
+ if (net_if_flag_is_set (iface , NET_IF_IPV6 )) {
447
+ PR ("DHCPv6 renewal time (T1) : %llu ms\n" ,
448
+ iface -> config .dhcpv6 .t1 );
449
+ PR ("DHCPv6 rebind time (T2) : %llu ms\n" ,
450
+ iface -> config .dhcpv6 .t2 );
451
+ PR ("DHCPv6 expire time : %llu ms\n" ,
452
+ iface -> config .dhcpv6 .expire );
453
+ if (iface -> config .dhcpv6 .params .request_addr ) {
454
+ PR ("DHCPv6 address : %s\n" ,
455
+ net_sprint_ipv6_addr (& iface -> config .dhcpv6 .addr ));
456
+ }
457
+
458
+ if (iface -> config .dhcpv6 .params .request_prefix ) {
459
+ PR ("DHCPv6 prefix : %s\n" ,
460
+ net_sprint_ipv6_addr (& iface -> config .dhcpv6 .prefix ));
461
+ }
462
+
463
+ PR ("DHCPv6 state : %s\n" ,
464
+ net_dhcpv6_state_name (iface -> config .dhcpv6 .state ));
465
+ }
466
+ #endif /* CONFIG_NET_DHCPV6 */
444
467
#endif /* CONFIG_NET_IPV6 */
445
468
446
469
#if defined(CONFIG_NET_IPV4 )
You can’t perform that action at this time.
0 commit comments