NetIPv6_IsAddrLinkLocal

Description

Validate an IPv6 address as a link-local IPv6 address.

Files

net_ipv6.h/net_ipv6.c

Prototype

          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 : 

10 bits54 bits64 bits
11111110100Interface ID

In text representation, it corresponds to the following format :

FE80:0000:0000:0000:aaaa.bbbb.cccc.dddd or 

FE80::aaaa.bbbb.cccc.dddd

where aaaa.bbbb.cccc.dddd is the interface ID.


Refer to RFC #4291, Section 2.5.6 for more details.