We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe6266e commit 9831dddCopy full SHA for 9831ddd
include/net/net_ip.h
@@ -763,6 +763,18 @@ static inline bool net_ipv6_is_ll_addr(const struct in6_addr *addr)
763
return UNALIGNED_GET(&addr->s6_addr16[0]) == htons(0xFE80);
764
}
765
766
+/**
767
+ * @brief Check if the given IPv6 address is a unique local address.
768
+ *
769
+ * @param addr A valid pointer on an IPv6 address
770
771
+ * @return True if it is, false otherwise.
772
+ */
773
+static inline bool net_ipv6_is_ula_addr(const struct in6_addr *addr)
774
+{
775
+ return addr->s6_addr[0] == 0xFD;
776
+}
777
+
778
/**
779
* @brief Return pointer to any (all bits zeros) IPv6 address.
780
*
0 commit comments