Description
Validate an IPv6 address as a link-local IPv6 address.
Files
net_ipv6.h/net_ipv6.c
Prototype
Code Block |
---|
CPU_BOOLEAN NetIPv6_IsAddrLinkLocal(NET_IPv6_ADDR *p_addr); |
Arguments
p_addr
Pointer to IPv6 address to validate.
Returned Value
DEF_YES
, if IPv6 address is a link-local IPv6 address.DEF_NO
, otherwise.
Required Configuration
None.
Notes / Warnings
An IPv6 Link-Local address is defined as having the following format :
...
where aaaa.bbbb.cccc.dddd is the interface ID.
Refer to RFC #4291, Section 2.5.6 for more details.