10#ifndef __EFI_IP6_COMMON_H__
11#define __EFI_IP6_COMMON_H__
13#define IP6_LINK_EQUAL(Mac1, Mac2) (CompareMem ((Mac1), (Mac2), sizeof (EFI_MAC_ADDRESS)) == 0)
19#define IP6_US_TO_SEC(Us) (((Us) + 999999) / 1000000)
21#define IP6_ETHER_PROTO 0x86DD
24#define IP6_IF_ID_LEN 8
26#define IP6_INTERFACE_LOCAL_SCOPE 1
27#define IP6_LINK_LOCAL_SCOPE 2
28#define IP6_SITE_LOCAL_SCOPE 5
30#define IP6_INFINIT_LIFETIME 0xFFFFFFFF
32#define IP6_HOP_LIMIT 255
36#define IP6_LINK_LOCAL_PREFIX_LENGTH 64
38#define IP6_TIMER_INTERVAL_IN_MS 100
39#define IP6_ONE_SECOND_IN_MS 1000
44#define IP6_LINK_BROADCAST 0x00000001
45#define IP6_LINK_MULTICAST 0x00000002
46#define IP6_LINK_PROMISC 0x00000004
86 OUT UINT32 *AddressCount,
227 IN UINT8 PrefixLength
270 IN OUT UINT32 *AddressCount,
272 IN UINT8 PrefixLength
VOID Ip6CreateSNMulticastAddr(IN EFI_IPv6_ADDRESS *Ip6Addr, OUT EFI_IPv6_ADDRESS *MulticastAddr)
EFI_STATUS Ip6GetMulticastMac(IN EFI_MANAGED_NETWORK_PROTOCOL *Mnp, IN EFI_IPv6_ADDRESS *Multicast, OUT EFI_MAC_ADDRESS *Mac)
EFI_STATUS Ip6SetToAllNodeMulticast(IN BOOLEAN Router, IN UINT8 Scope, OUT EFI_IPv6_ADDRESS *Ip6Addr)
EFI_IP6_HEADER * Ip6NtohHead(IN OUT EFI_IP6_HEADER *Head)
BOOLEAN Ip6IsSNMulticastAddr(IN EFI_IPv6_ADDRESS *Ip6)
EFI_STATUS Ip6RemoveAddr(IN IP6_SERVICE *IpSb OPTIONAL, IN OUT LIST_ENTRY *AddressList, IN OUT UINT32 *AddressCount, IN EFI_IPv6_ADDRESS *Prefix OPTIONAL, IN UINT8 PrefixLength)
VOID Ip6AddAddr(IN OUT IP6_INTERFACE *IpIf, IN IP6_ADDRESS_INFO *AddrInfo)
BOOLEAN Ip6IsOneOfSetAddress(IN IP6_SERVICE *IpSb, IN EFI_IPv6_ADDRESS *Address, OUT IP6_INTERFACE **Interface OPTIONAL, OUT IP6_ADDRESS_INFO **AddressInfo OPTIONAL)
UINT8 * Ip6CreateInterfaceID(IN OUT IP6_SERVICE *IpSb)
BOOLEAN Ip6IsValidLinkAddress(IN IP6_SERVICE *IpSb, IN EFI_MAC_ADDRESS *LinkAddress)
EFI_IPv6_ADDRESS * Ip6CreateLinkLocalAddr(IN OUT IP6_SERVICE *IpSb)
EFI_STATUS Ip6BuildEfiAddressList(IN IP6_SERVICE *IpSb, OUT UINT32 *AddressCount, OUT EFI_IP6_ADDRESS_INFO **AddressList OPTIONAL)
VOID Ip6CopyAddressByPrefix(OUT EFI_IPv6_ADDRESS *Dest, IN EFI_IPv6_ADDRESS *Src, IN UINT8 PrefixLength)