mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-21 23:02:13 +08:00
apps/netutils/netlib: Add utilities to convert to/from prefix lengths from/to 128-bit network masks. Modify the NSH IPv6 ifconfig command to show the network mask in a more standard, human readable way.
This commit is contained in:
@@ -124,6 +124,9 @@ int netlib_get_ipv6addr(FAR const char *ifname, FAR struct in6_addr *addr);
|
||||
int netlib_set_ipv6addr(FAR const char *ifname, FAR const struct in6_addr *addr);
|
||||
int netlib_set_dripv6addr(FAR const char *ifname, FAR const struct in6_addr *addr);
|
||||
int netlib_set_ipv6netmask(FAR const char *ifname, FAR const struct in6_addr *addr);
|
||||
|
||||
uint8_t netlib_ipv6netmask2prefix(FAR const uint16_t *mask);
|
||||
void netlib_prefix2ipv6netmask(uint8_t preflen, FAR struct in6_addr *netmask);
|
||||
#endif
|
||||
|
||||
/* ICMPv6 Autoconfiguration */
|
||||
|
Reference in New Issue
Block a user