iPXE
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
Ip6.h File Reference

This file defines the EFI IPv6 (Internet Protocol version 6) Protocol interface. More...

#include <ipxe/efi/Protocol/ManagedNetwork.h>

Go to the source code of this file.

Data Structures

struct  EFI_IP6_ADDRESS_PAIR
 EFI_IP6_ADDRESS_PAIR is deprecated in the UEFI 2.4B and should not be used any more. More...
 
struct  EFI_IP6_VARIABLE_DATA
 EFI_IP6_VARIABLE_DATA is deprecated in the UEFI 2.4B and should not be used any more. More...
 
struct  EFI_IP6_CONFIG_DATA
 EFI_IP6_CONFIG_DATA is used to report and change IPv6 session parameters. More...
 
struct  EFI_IP6_ADDRESS_INFO
 EFI_IP6_ADDRESS_INFO. More...
 
struct  EFI_IP6_ROUTE_TABLE
 EFI_IP6_ROUTE_TABLE is the entry structure that is used in routing tables. More...
 
struct  EFI_IP6_NEIGHBOR_CACHE
 EFI_IP6_NEIGHBOR_CACHE is the entry structure that is used in neighbor cache. More...
 
struct  EFI_IP6_ICMP_TYPE
 EFI_IP6_ICMP_TYPE is used to describe those ICMP messages that are supported by this EFI IPv6 Protocol driver. More...
 
struct  EFI_IP6_MODE_DATA
 EFI_IP6_MODE_DATA. More...
 
struct  _EFI_IP6_HEADER
 EFI_IP6_HEADER The fields in the IPv6 header structure are defined in the Internet Protocol version6 specification. More...
 
struct  _EFI_IP6_FRAGMENT_DATA
 EFI_IP6_FRAGMENT_DATA describes the location and length of the IPv6 packet fragment to transmit or that has been received. More...
 
struct  _EFI_IP6_RECEIVE_DATA
 EFI_IP6_RECEIVE_DATA. More...
 
struct  _EFI_IP6_OVERRIDE_DATA
 EFI_IP6_OVERRIDE_DATA The information and flags in the override data structure will override default parameters or settings for one Transmit() function call. More...
 
struct  _EFI_IP6_TRANSMIT_DATA
 EFI_IP6_TRANSMIT_DATA. More...
 
struct  EFI_IP6_COMPLETION_TOKEN
 EFI_IP6_COMPLETION_TOKEN structures are used for both transmit and receive operations. More...
 
struct  _EFI_IP6_PROTOCOL
 The EFI IPv6 Protocol implements a simple packet-oriented interface that can be used by drivers, daemons, and applications to transmit and receive network packets. More...
 

Macros

#define EFI_IP6_SERVICE_BINDING_PROTOCOL_GUID
 
#define EFI_IP6_PROTOCOL_GUID
 
#define ICMP_V6_DEST_UNREACHABLE   0x1
 ICMPv6 type definitions for error messages. More...
 
#define ICMP_V6_PACKET_TOO_BIG   0x2
 ICMPv6 type definitions for error messages. More...
 
#define ICMP_V6_TIME_EXCEEDED   0x3
 ICMPv6 type definitions for error messages. More...
 
#define ICMP_V6_PARAMETER_PROBLEM   0x4
 ICMPv6 type definitions for error messages. More...
 
#define ICMP_V6_ECHO_REQUEST   0x80
 ICMPv6 type definition for informational messages. More...
 
#define ICMP_V6_ECHO_REPLY   0x81
 ICMPv6 type definition for informational messages. More...
 
#define ICMP_V6_LISTENER_QUERY   0x82
 ICMPv6 type definition for informational messages. More...
 
#define ICMP_V6_LISTENER_REPORT   0x83
 ICMPv6 type definition for informational messages. More...
 
#define ICMP_V6_LISTENER_DONE   0x84
 ICMPv6 type definition for informational messages. More...
 
#define ICMP_V6_ROUTER_SOLICIT   0x85
 ICMPv6 type definition for informational messages. More...
 
#define ICMP_V6_ROUTER_ADVERTISE   0x86
 ICMPv6 type definition for informational messages. More...
 
#define ICMP_V6_NEIGHBOR_SOLICIT   0x87
 ICMPv6 type definition for informational messages. More...
 
#define ICMP_V6_NEIGHBOR_ADVERTISE   0x88
 ICMPv6 type definition for informational messages. More...
 
#define ICMP_V6_REDIRECT   0x89
 ICMPv6 type definition for informational messages. More...
 
#define ICMP_V6_LISTENER_REPORT_2   0x8F
 ICMPv6 type definition for informational messages. More...
 
#define ICMP_V6_NO_ROUTE_TO_DEST   0x0
 ICMPv6 code definitions for ICMP_V6_DEST_UNREACHABLE. More...
 
#define ICMP_V6_COMM_PROHIBITED   0x1
 ICMPv6 code definitions for ICMP_V6_DEST_UNREACHABLE. More...
 
#define ICMP_V6_BEYOND_SCOPE   0x2
 ICMPv6 code definitions for ICMP_V6_DEST_UNREACHABLE. More...
 
#define ICMP_V6_ADDR_UNREACHABLE   0x3
 ICMPv6 code definitions for ICMP_V6_DEST_UNREACHABLE. More...
 
#define ICMP_V6_PORT_UNREACHABLE   0x4
 ICMPv6 code definitions for ICMP_V6_DEST_UNREACHABLE. More...
 
#define ICMP_V6_SOURCE_ADDR_FAILED   0x5
 ICMPv6 code definitions for ICMP_V6_DEST_UNREACHABLE. More...
 
#define ICMP_V6_ROUTE_REJECTED   0x6
 ICMPv6 code definitions for ICMP_V6_DEST_UNREACHABLE. More...
 
#define ICMP_V6_TIMEOUT_HOP_LIMIT   0x0
 ICMPv6 code definitions for ICMP_V6_TIME_EXCEEDED. More...
 
#define ICMP_V6_TIMEOUT_REASSEMBLE   0x1
 ICMPv6 code definitions for ICMP_V6_TIME_EXCEEDED. More...
 
#define ICMP_V6_ERRONEOUS_HEADER   0x0
 ICMPv6 code definitions for ICMP_V6_PARAMETER_PROBLEM. More...
 
#define ICMP_V6_UNRECOGNIZE_NEXT_HDR   0x1
 ICMPv6 code definitions for ICMP_V6_PARAMETER_PROBLEM. More...
 
#define ICMP_V6_UNRECOGNIZE_OPTION   0x2
 ICMPv6 code definitions for ICMP_V6_PARAMETER_PROBLEM. More...
 

Typedefs

typedef struct _EFI_IP6_PROTOCOL EFI_IP6_PROTOCOL
 
typedef struct _EFI_IP6_HEADER EFI_IP6_HEADER
 EFI_IP6_HEADER The fields in the IPv6 header structure are defined in the Internet Protocol version6 specification. More...
 
typedef struct _EFI_IP6_FRAGMENT_DATA EFI_IP6_FRAGMENT_DATA
 EFI_IP6_FRAGMENT_DATA describes the location and length of the IPv6 packet fragment to transmit or that has been received. More...
 
typedef struct _EFI_IP6_RECEIVE_DATA EFI_IP6_RECEIVE_DATA
 EFI_IP6_RECEIVE_DATA. More...
 
typedef struct _EFI_IP6_OVERRIDE_DATA EFI_IP6_OVERRIDE_DATA
 EFI_IP6_OVERRIDE_DATA The information and flags in the override data structure will override default parameters or settings for one Transmit() function call. More...
 
typedef struct _EFI_IP6_TRANSMIT_DATA EFI_IP6_TRANSMIT_DATA
 EFI_IP6_TRANSMIT_DATA. More...
 
typedef EFI_STATUS(EFIAPIEFI_IP6_GET_MODE_DATA) (IN EFI_IP6_PROTOCOL *This, OUT EFI_IP6_MODE_DATA *Ip6ModeData OPTIONAL, OUT EFI_MANAGED_NETWORK_CONFIG_DATA *MnpConfigData OPTIONAL, OUT EFI_SIMPLE_NETWORK_MODE *SnpModeData OPTIONAL)
 Gets the current operational settings for this instance of the EFI IPv6 Protocol driver. More...
 
typedef EFI_STATUS(EFIAPIEFI_IP6_CONFIGURE) (IN EFI_IP6_PROTOCOL *This, IN EFI_IP6_CONFIG_DATA *Ip6ConfigData OPTIONAL)
 Assigns an IPv6 address and subnet mask to this EFI IPv6 Protocol driver instance. More...
 
typedef EFI_STATUS(EFIAPIEFI_IP6_GROUPS) (IN EFI_IP6_PROTOCOL *This, IN BOOLEAN JoinFlag, IN EFI_IPv6_ADDRESS *GroupAddress OPTIONAL)
 Joins and leaves multicast groups. More...
 
typedef EFI_STATUS(EFIAPIEFI_IP6_ROUTES) (IN EFI_IP6_PROTOCOL *This, IN BOOLEAN DeleteRoute, IN EFI_IPv6_ADDRESS *Destination OPTIONAL, IN UINT8 PrefixLength, IN EFI_IPv6_ADDRESS *GatewayAddress OPTIONAL)
 Adds and deletes routing table entries. More...
 
typedef EFI_STATUS(EFIAPIEFI_IP6_NEIGHBORS) (IN EFI_IP6_PROTOCOL *This, IN BOOLEAN DeleteFlag, IN EFI_IPv6_ADDRESS *TargetIp6Address, IN EFI_MAC_ADDRESS *TargetLinkAddress, IN UINT32 Timeout, IN BOOLEAN Override)
 Add or delete Neighbor cache entries. More...
 
typedef EFI_STATUS(EFIAPIEFI_IP6_TRANSMIT) (IN EFI_IP6_PROTOCOL *This, IN EFI_IP6_COMPLETION_TOKEN *Token)
 Places outgoing data packets into the transmit queue. More...
 
typedef EFI_STATUS(EFIAPIEFI_IP6_RECEIVE) (IN EFI_IP6_PROTOCOL *This, IN EFI_IP6_COMPLETION_TOKEN *Token)
 Places a receiving request into the receiving queue. More...
 
typedef EFI_STATUS(EFIAPIEFI_IP6_CANCEL) (IN EFI_IP6_PROTOCOL *This, IN EFI_IP6_COMPLETION_TOKEN *Token OPTIONAL)
 Abort an asynchronous transmit or receive request. More...
 
typedef EFI_STATUS(EFIAPIEFI_IP6_POLL) (IN EFI_IP6_PROTOCOL *This)
 Polls for incoming data packets and processes outgoing data packets. More...
 

Enumerations

enum  EFI_IP6_NEIGHBOR_STATE {
  EfiNeighborInComplete, EfiNeighborReachable, EfiNeighborStale, EfiNeighborDelay,
  EfiNeighborProbe
}
 EFI_IP6_NEIGHBOR_STATE. More...
 

Functions

 FILE_LICENCE (BSD2_PATENT)
 

Variables

EFI_GUID gEfiIp6ServiceBindingProtocolGuid
 
EFI_GUID gEfiIp6ProtocolGuid
 

Detailed Description

This file defines the EFI IPv6 (Internet Protocol version 6) Protocol interface.

It is split into the following three main sections:

Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Revision Reference:
This Protocol is introduced in UEFI Specification 2.2

Definition in file Ip6.h.

Macro Definition Documentation

◆ EFI_IP6_SERVICE_BINDING_PROTOCOL_GUID

#define EFI_IP6_SERVICE_BINDING_PROTOCOL_GUID
Value:
{ \
0xec835dd3, 0xfe0f, 0x617b, {0xa6, 0x21, 0xb3, 0x50, 0xc3, 0xe1, 0x33, 0x88 } \
}

Definition at line 28 of file Ip6.h.

◆ EFI_IP6_PROTOCOL_GUID

#define EFI_IP6_PROTOCOL_GUID
Value:
{ \
0x2c8759d5, 0x5c2d, 0x66ef, {0x92, 0x5f, 0xb6, 0x6c, 0x10, 0x19, 0x57, 0xe2 } \
}

Definition at line 33 of file Ip6.h.

◆ ICMP_V6_DEST_UNREACHABLE

#define ICMP_V6_DEST_UNREACHABLE   0x1

ICMPv6 type definitions for error messages.

Definition at line 82 of file Ip6.h.

◆ ICMP_V6_PACKET_TOO_BIG

#define ICMP_V6_PACKET_TOO_BIG   0x2

ICMPv6 type definitions for error messages.

Definition at line 83 of file Ip6.h.

◆ ICMP_V6_TIME_EXCEEDED

#define ICMP_V6_TIME_EXCEEDED   0x3

ICMPv6 type definitions for error messages.

Definition at line 84 of file Ip6.h.

◆ ICMP_V6_PARAMETER_PROBLEM

#define ICMP_V6_PARAMETER_PROBLEM   0x4

ICMPv6 type definitions for error messages.

Definition at line 85 of file Ip6.h.

◆ ICMP_V6_ECHO_REQUEST

#define ICMP_V6_ECHO_REQUEST   0x80

ICMPv6 type definition for informational messages.

Definition at line 92 of file Ip6.h.

◆ ICMP_V6_ECHO_REPLY

#define ICMP_V6_ECHO_REPLY   0x81

ICMPv6 type definition for informational messages.

Definition at line 93 of file Ip6.h.

◆ ICMP_V6_LISTENER_QUERY

#define ICMP_V6_LISTENER_QUERY   0x82

ICMPv6 type definition for informational messages.

Definition at line 94 of file Ip6.h.

◆ ICMP_V6_LISTENER_REPORT

#define ICMP_V6_LISTENER_REPORT   0x83

ICMPv6 type definition for informational messages.

Definition at line 95 of file Ip6.h.

◆ ICMP_V6_LISTENER_DONE

#define ICMP_V6_LISTENER_DONE   0x84

ICMPv6 type definition for informational messages.

Definition at line 96 of file Ip6.h.

◆ ICMP_V6_ROUTER_SOLICIT

#define ICMP_V6_ROUTER_SOLICIT   0x85

ICMPv6 type definition for informational messages.

Definition at line 97 of file Ip6.h.

◆ ICMP_V6_ROUTER_ADVERTISE

#define ICMP_V6_ROUTER_ADVERTISE   0x86

ICMPv6 type definition for informational messages.

Definition at line 98 of file Ip6.h.

◆ ICMP_V6_NEIGHBOR_SOLICIT

#define ICMP_V6_NEIGHBOR_SOLICIT   0x87

ICMPv6 type definition for informational messages.

Definition at line 99 of file Ip6.h.

◆ ICMP_V6_NEIGHBOR_ADVERTISE

#define ICMP_V6_NEIGHBOR_ADVERTISE   0x88

ICMPv6 type definition for informational messages.

Definition at line 100 of file Ip6.h.

◆ ICMP_V6_REDIRECT

#define ICMP_V6_REDIRECT   0x89

ICMPv6 type definition for informational messages.

Definition at line 101 of file Ip6.h.

◆ ICMP_V6_LISTENER_REPORT_2

#define ICMP_V6_LISTENER_REPORT_2   0x8F

ICMPv6 type definition for informational messages.

Definition at line 102 of file Ip6.h.

◆ ICMP_V6_NO_ROUTE_TO_DEST

#define ICMP_V6_NO_ROUTE_TO_DEST   0x0

ICMPv6 code definitions for ICMP_V6_DEST_UNREACHABLE.

Definition at line 109 of file Ip6.h.

◆ ICMP_V6_COMM_PROHIBITED

#define ICMP_V6_COMM_PROHIBITED   0x1

ICMPv6 code definitions for ICMP_V6_DEST_UNREACHABLE.

Definition at line 110 of file Ip6.h.

◆ ICMP_V6_BEYOND_SCOPE

#define ICMP_V6_BEYOND_SCOPE   0x2

ICMPv6 code definitions for ICMP_V6_DEST_UNREACHABLE.

Definition at line 111 of file Ip6.h.

◆ ICMP_V6_ADDR_UNREACHABLE

#define ICMP_V6_ADDR_UNREACHABLE   0x3

ICMPv6 code definitions for ICMP_V6_DEST_UNREACHABLE.

Definition at line 112 of file Ip6.h.

◆ ICMP_V6_PORT_UNREACHABLE

#define ICMP_V6_PORT_UNREACHABLE   0x4

ICMPv6 code definitions for ICMP_V6_DEST_UNREACHABLE.

Definition at line 113 of file Ip6.h.

◆ ICMP_V6_SOURCE_ADDR_FAILED

#define ICMP_V6_SOURCE_ADDR_FAILED   0x5

ICMPv6 code definitions for ICMP_V6_DEST_UNREACHABLE.

Definition at line 114 of file Ip6.h.

◆ ICMP_V6_ROUTE_REJECTED

#define ICMP_V6_ROUTE_REJECTED   0x6

ICMPv6 code definitions for ICMP_V6_DEST_UNREACHABLE.

Definition at line 115 of file Ip6.h.

◆ ICMP_V6_TIMEOUT_HOP_LIMIT

#define ICMP_V6_TIMEOUT_HOP_LIMIT   0x0

ICMPv6 code definitions for ICMP_V6_TIME_EXCEEDED.

Definition at line 122 of file Ip6.h.

◆ ICMP_V6_TIMEOUT_REASSEMBLE

#define ICMP_V6_TIMEOUT_REASSEMBLE   0x1

ICMPv6 code definitions for ICMP_V6_TIME_EXCEEDED.

Definition at line 123 of file Ip6.h.

◆ ICMP_V6_ERRONEOUS_HEADER

#define ICMP_V6_ERRONEOUS_HEADER   0x0

ICMPv6 code definitions for ICMP_V6_PARAMETER_PROBLEM.

Definition at line 130 of file Ip6.h.

◆ ICMP_V6_UNRECOGNIZE_NEXT_HDR

#define ICMP_V6_UNRECOGNIZE_NEXT_HDR   0x1

ICMPv6 code definitions for ICMP_V6_PARAMETER_PROBLEM.

Definition at line 131 of file Ip6.h.

◆ ICMP_V6_UNRECOGNIZE_OPTION

#define ICMP_V6_UNRECOGNIZE_OPTION   0x2

ICMPv6 code definitions for ICMP_V6_PARAMETER_PROBLEM.

Definition at line 132 of file Ip6.h.

Typedef Documentation

◆ EFI_IP6_PROTOCOL

Definition at line 38 of file Ip6.h.

◆ EFI_IP6_HEADER

EFI_IP6_HEADER The fields in the IPv6 header structure are defined in the Internet Protocol version6 specification.

◆ EFI_IP6_FRAGMENT_DATA

EFI_IP6_FRAGMENT_DATA describes the location and length of the IPv6 packet fragment to transmit or that has been received.

◆ EFI_IP6_RECEIVE_DATA

EFI_IP6_RECEIVE_DATA.

◆ EFI_IP6_OVERRIDE_DATA

EFI_IP6_OVERRIDE_DATA The information and flags in the override data structure will override default parameters or settings for one Transmit() function call.

◆ EFI_IP6_TRANSMIT_DATA

EFI_IP6_TRANSMIT_DATA.

◆ EFI_IP6_GET_MODE_DATA

typedef EFI_STATUS(EFIAPI * EFI_IP6_GET_MODE_DATA) (IN EFI_IP6_PROTOCOL *This, OUT EFI_IP6_MODE_DATA *Ip6ModeData OPTIONAL, OUT EFI_MANAGED_NETWORK_CONFIG_DATA *MnpConfigData OPTIONAL, OUT EFI_SIMPLE_NETWORK_MODE *SnpModeData OPTIONAL)

Gets the current operational settings for this instance of the EFI IPv6 Protocol driver.

The GetModeData() function returns the current operational mode data for this driver instance. The data fields in EFI_IP6_MODE_DATA are read only. This function is used optionally to retrieve the operational mode data of underlying networks or drivers..

Parameters
[in]ThisPointer to the EFI_IP6_PROTOCOL instance.
[out]Ip6ModeDataPointer to the EFI IPv6 Protocol mode data structure.
[out]MnpConfigDataPointer to the managed network configuration data structure.
[out]SnpModeDataPointer to the simple network mode data structure.
Return values
EFI_SUCCESSThe operation completed successfully.
EFI_INVALID_PARAMETERThis is NULL.
EFI_OUT_OF_RESOURCESThe required mode data could not be allocated.

Definition at line 570 of file Ip6.h.

◆ EFI_IP6_CONFIGURE

typedef EFI_STATUS(EFIAPI * EFI_IP6_CONFIGURE) (IN EFI_IP6_PROTOCOL *This, IN EFI_IP6_CONFIG_DATA *Ip6ConfigData OPTIONAL)

Assigns an IPv6 address and subnet mask to this EFI IPv6 Protocol driver instance.

The Configure() function is used to set, change, or reset the operational parameters and filter settings for this EFI IPv6 Protocol instance. Until these parameters have been set, no network traffic can be sent or received by this instance. Once the parameters have been reset (by calling this function with Ip6ConfigData set to NULL), no more traffic can be sent or received until these parameters have been set again. Each EFI IPv6 Protocol instance can be started and stopped independently of each other by enabling or disabling their receive filter settings with the Configure() function.

If Ip6ConfigData.StationAddress is a valid non-zero IPv6 unicast address, it is required to be one of the currently configured IPv6 addresses list in the EFI IPv6 drivers, or else EFI_INVALID_PARAMETER will be returned. If Ip6ConfigData.StationAddress is unspecified, the IPv6 driver will bind a source address according to the source address selection algorithm. Clients could frequently call GetModeData() to check get currently configured IPv6 address list in the EFI IPv6 driver. If both Ip6ConfigData.StationAddress and Ip6ConfigData.Destination are unspecified, when transmitting the packet afterwards, the source address filled in each outgoing IPv6 packet is decided based on the destination of this packet. .

If operational parameters are reset or changed, any pending transmit and receive requests will be cancelled. Their completion token status will be set to EFI_ABORTED and their events will be signaled.

Parameters
[in]ThisPointer to the EFI_IP6_PROTOCOL instance.
[in]Ip6ConfigDataPointer to the EFI IPv6 Protocol configuration data structure.
Return values
EFI_SUCCESSThe driver instance was successfully opened.
EFI_INVALID_PARAMETEROne or more of the following conditions is TRUE:
  • This is NULL.
  • Ip6ConfigData.StationAddress is neither zero nor a unicast IPv6 address.
  • Ip6ConfigData.StationAddress is neither zero nor one of the configured IP addresses in the EFI IPv6 driver.
  • Ip6ConfigData.DefaultProtocol is illegal.
EFI_OUT_OF_RESOURCESThe EFI IPv6 Protocol driver instance data could not be allocated.
EFI_NO_MAPPINGThe IPv6 driver was responsible for choosing a source address for this instance, but no source address was available for use.
EFI_ALREADY_STARTEDThe interface is already open and must be stopped before the IPv6 address or prefix length can be changed.
EFI_DEVICE_ERRORAn unexpected system or network error occurred. The EFI IPv6 Protocol driver instance is not opened.
EFI_UNSUPPORTEDDefault protocol specified through Ip6ConfigData.DefaulProtocol isn't supported.

Definition at line 625 of file Ip6.h.

◆ EFI_IP6_GROUPS

typedef EFI_STATUS(EFIAPI * EFI_IP6_GROUPS) (IN EFI_IP6_PROTOCOL *This, IN BOOLEAN JoinFlag, IN EFI_IPv6_ADDRESS *GroupAddress OPTIONAL)

Joins and leaves multicast groups.

The Groups() function is used to join and leave multicast group sessions. Joining a group will enable reception of matching multicast packets. Leaving a group will disable reception of matching multicast packets. Source-Specific Multicast isn't required to be supported.

If JoinFlag is FALSE and GroupAddress is NULL, all joined groups will be left.

Parameters
[in]ThisPointer to the EFI_IP6_PROTOCOL instance.
[in]JoinFlagSet to TRUE to join the multicast group session and FALSE to leave.
[in]GroupAddressPointer to the IPv6 multicast address.
Return values
EFI_SUCCESSThe operation completed successfully.
EFI_INVALID_PARAMETEROne or more of the following is TRUE:
  • This is NULL.
  • JoinFlag is TRUE and GroupAddress is NULL.
  • GroupAddress is not NULL and *GroupAddress is not a multicast IPv6 address.
  • GroupAddress is not NULL and *GroupAddress is in the range of SSM destination address.
EFI_NOT_STARTEDThis instance has not been started.
EFI_OUT_OF_RESOURCESSystem resources could not be allocated.
EFI_UNSUPPORTEDThis EFI IPv6 Protocol implementation does not support multicast groups.
EFI_ALREADY_STARTEDThe group address is already in the group table (when JoinFlag is TRUE).
EFI_NOT_FOUNDThe group address is not in the group table (when JoinFlag is FALSE).
EFI_DEVICE_ERRORAn unexpected system or network error occurred.

Definition at line 662 of file Ip6.h.

◆ EFI_IP6_ROUTES

typedef EFI_STATUS(EFIAPI * EFI_IP6_ROUTES) (IN EFI_IP6_PROTOCOL *This, IN BOOLEAN DeleteRoute, IN EFI_IPv6_ADDRESS *Destination OPTIONAL, IN UINT8 PrefixLength, IN EFI_IPv6_ADDRESS *GatewayAddress OPTIONAL)

Adds and deletes routing table entries.

The Routes() function adds a route to or deletes a route from the routing table.

Routes are determined by comparing the leftmost PrefixLength bits of Destination with the destination IPv6 address arithmetically. The gateway address must be on the same subnet as the configured station address.

The default route is added with Destination and PrefixLegth both set to all zeros. The default route matches all destination IPv6 addresses that do not match any other routes.

All EFI IPv6 Protocol instances share a routing table.

Parameters
[in]ThisPointer to the EFI_IP6_PROTOCOL instance.
[in]DeleteRouteSet to TRUE to delete this route from the routing table. Set to FALSE to add this route to the routing table. Destination, PrefixLength and Gateway are used as the key to each route entry.
[in]DestinationThe address prefix of the subnet that needs to be routed.
[in]PrefixLengthThe prefix length of Destination. Ignored if Destination is NULL.
[in]GatewayAddressThe unicast gateway IPv6 address for this route.
Return values
EFI_SUCCESSThe operation completed successfully.
EFI_NOT_STARTEDThe driver instance has not been started.
EFI_INVALID_PARAMETEROne or more of the following conditions is TRUE:
  • This is NULL.
  • When DeleteRoute is TRUE, both Destination and GatewayAddress are NULL.
  • When DeleteRoute is FALSE, either Destination or GatewayAddress is NULL.
  • *GatewayAddress is not a valid unicast IPv6 address.
  • *GatewayAddress is one of the local configured IPv6 addresses.
EFI_OUT_OF_RESOURCESCould not add the entry to the routing table.
EFI_NOT_FOUNDThis route is not in the routing table (when DeleteRoute is TRUE).
EFI_ACCESS_DENIEDThe route is already defined in the routing table (when DeleteRoute is FALSE).

Definition at line 711 of file Ip6.h.

◆ EFI_IP6_NEIGHBORS

typedef EFI_STATUS(EFIAPI * EFI_IP6_NEIGHBORS) (IN EFI_IP6_PROTOCOL *This, IN BOOLEAN DeleteFlag, IN EFI_IPv6_ADDRESS *TargetIp6Address, IN EFI_MAC_ADDRESS *TargetLinkAddress, IN UINT32 Timeout, IN BOOLEAN Override)

Add or delete Neighbor cache entries.

The Neighbors() function is used to add, update, or delete an entry from neighbor cache. IPv6 neighbor cache entries are typically inserted and updated by the network protocol driver as network traffic is processed. Most neighbor cache entries will time out and be deleted if the network traffic stops. Neighbor cache entries that were inserted by Neighbors() may be static (will not timeout) or dynamic (will time out).

The implementation should follow the neighbor cache timeout mechanism which is defined in RFC4861. The default neighbor cache timeout value should be tuned for the expected network environment

Parameters
[in]ThisPointer to the EFI_IP6_PROTOCOL instance.
[in]DeleteFlagSet to TRUE to delete the specified cache entry, set to FALSE to add (or update, if it already exists and Override is TRUE) the specified cache entry. TargetIp6Address is used as the key to find the requested cache entry.
[in]TargetIp6AddressPointer to Target IPv6 address.
[in]TargetLinkAddressPointer to link-layer address of the target. Ignored if NULL.
[in]TimeoutTime in 100-ns units that this entry will remain in the neighbor cache, it will be deleted after Timeout. A value of zero means that the entry is permanent. A non-zero value means that the entry is dynamic.
[in]OverrideIf TRUE, the cached link-layer address of the matching entry will be overridden and updated; if FALSE, EFI_ACCESS_DENIED will be returned if a corresponding cache entry already existed.
Return values
EFI_SUCCESSThe data has been queued for transmission.
EFI_NOT_STARTEDThis instance has not been started.
EFI_INVALID_PARAMETEROne or more of the following conditions is TRUE:
  • This is NULL.
  • TargetIpAddress is NULL.
  • *TargetLinkAddress is invalid when not NULL.
  • *TargetIpAddress is not a valid unicast IPv6 address.
  • *TargetIpAddress is one of the local configured IPv6 addresses.
EFI_OUT_OF_RESOURCESCould not add the entry to the neighbor cache.
EFI_NOT_FOUNDThis entry is not in the neighbor cache (when DeleteFlag is TRUE or when DeleteFlag is FALSE while TargetLinkAddress is NULL.).
EFI_ACCESS_DENIEDThe to-be-added entry is already defined in the neighbor cache, and that entry is tagged as un-overridden (when DeleteFlag is FALSE).

Definition at line 767 of file Ip6.h.

◆ EFI_IP6_TRANSMIT

typedef EFI_STATUS(EFIAPI * EFI_IP6_TRANSMIT) (IN EFI_IP6_PROTOCOL *This, IN EFI_IP6_COMPLETION_TOKEN *Token)

Places outgoing data packets into the transmit queue.

The Transmit() function places a sending request in the transmit queue of this EFI IPv6 Protocol instance. Whenever the packet in the token is sent out or some errors occur, the event in the token will be signaled and the status is updated.

Parameters
[in]ThisPointer to the EFI_IP6_PROTOCOL instance.
[in]TokenPointer to the transmit token.
Return values
EFI_SUCCESSThe data has been queued for transmission.
EFI_NOT_STARTEDThis instance has not been started.
EFI_NO_MAPPINGThe IPv6 driver was responsible for choosing a source address for this transmission, but no source address was available for use.
EFI_INVALID_PARAMETEROne or more of the following is TRUE:
  • This is NULL.
  • Token is NULL.
  • Token.Event is NULL.
  • Token.Packet.TxData is NULL.
  • Token.Packet.ExtHdrsLength is not zero and Token.Packet.ExtHdrs is NULL.
  • Token.Packet.FragmentCount is zero.
  • One or more of the Token.Packet.TxData.FragmentTable[].FragmentLength fields is zero.
  • One or more of the Token.Packet.TxData.FragmentTable[].FragmentBuffer fields is NULL.
  • Token.Packet.TxData.DataLength is zero or not equal to the sum of fragment lengths.
  • Token.Packet.TxData.DestinationAddress is non-zero when DestinationAddress is configured as non-zero when doing Configure() for this EFI IPv6 protocol instance.
  • Token.Packet.TxData.DestinationAddress is unspecified when DestinationAddress is unspecified when doing Configure() for this EFI IPv6 protocol instance.
EFI_ACCESS_DENIEDThe transmit completion token with the same Token.Event was already in the transmit queue.
EFI_NOT_READYThe completion token could not be queued because the transmit queue is full.
EFI_NOT_FOUNDNot route is found to destination address.
EFI_OUT_OF_RESOURCESCould not queue the transmit data.
EFI_BUFFER_TOO_SMALLToken.Packet.TxData.TotalDataLength is too short to transmit.
EFI_BAD_BUFFER_SIZEIf Token.Packet.TxData.DataLength is beyond the maximum that which can be described through the Fragment Offset field in Fragment header when performing fragmentation.
EFI_DEVICE_ERRORAn unexpected system or network error occurred.

Definition at line 820 of file Ip6.h.

◆ EFI_IP6_RECEIVE

typedef EFI_STATUS(EFIAPI * EFI_IP6_RECEIVE) (IN EFI_IP6_PROTOCOL *This, IN EFI_IP6_COMPLETION_TOKEN *Token)

Places a receiving request into the receiving queue.

The Receive() function places a completion token into the receive packet queue. This function is always asynchronous.

The Token.Event field in the completion token must be filled in by the caller and cannot be NULL. When the receive operation completes, the EFI IPv6 Protocol driver updates the Token.Status and Token.Packet.RxData fields and the Token.Event is signaled.

Parameters
[in]ThisPointer to the EFI_IP6_PROTOCOL instance.
[in]TokenPointer to a token that is associated with the receive data descriptor.
Return values
EFI_SUCCESSThe receive completion token was cached.
EFI_NOT_STARTEDThis EFI IPv6 Protocol instance has not been started.
EFI_NO_MAPPINGWhen IP6 driver responsible for binding source address to this instance, while no source address is available for use.
EFI_INVALID_PARAMETEROne or more of the following conditions is TRUE:
  • This is NULL.
  • Token is NULL.
  • Token.Event is NULL.
EFI_OUT_OF_RESOURCESThe receive completion token could not be queued due to a lack of system resources (usually memory).
EFI_DEVICE_ERRORAn unexpected system or network error occurred. The EFI IPv6 Protocol instance has been reset to startup defaults.
EFI_ACCESS_DENIEDThe receive completion token with the same Token.Event was already in the receive queue.
EFI_NOT_READYThe receive request could not be queued because the receive queue is full.

Definition at line 858 of file Ip6.h.

◆ EFI_IP6_CANCEL

typedef EFI_STATUS(EFIAPI * EFI_IP6_CANCEL) (IN EFI_IP6_PROTOCOL *This, IN EFI_IP6_COMPLETION_TOKEN *Token OPTIONAL)

Abort an asynchronous transmit or receive request.

The Cancel() function is used to abort a pending transmit or receive request. If the token is in the transmit or receive request queues, after calling this function, Token->Status will be set to EFI_ABORTED and then Token->Event will be signaled. If the token is not in one of the queues, which usually means the asynchronous operation has completed, this function will not signal the token and EFI_NOT_FOUND is returned.

Parameters
[in]ThisPointer to the EFI_IP6_PROTOCOL instance.
[in]TokenPointer to a token that has been issued by EFI_IP6_PROTOCOL.Transmit() or EFI_IP6_PROTOCOL.Receive(). If NULL, all pending tokens are aborted. Type EFI_IP6_COMPLETION_TOKEN is defined in EFI_IP6_PROTOCOL.Transmit().
Return values
EFI_SUCCESSThe asynchronous I/O request was aborted and Token->Event was signaled. When Token is NULL, all pending requests were aborted and their events were signaled.
EFI_INVALID_PARAMETERThis is NULL.
EFI_NOT_STARTEDThis instance has not been started.
EFI_NOT_FOUNDWhen Token is not NULL, the asynchronous I/O request was not found in the transmit or receive queue. It has either completed or was not issued by Transmit() and Receive().
EFI_DEVICE_ERRORAn unexpected system or network error occurred.

Definition at line 893 of file Ip6.h.

◆ EFI_IP6_POLL

typedef EFI_STATUS(EFIAPI * EFI_IP6_POLL) (IN EFI_IP6_PROTOCOL *This)

Polls for incoming data packets and processes outgoing data packets.

The Poll() function polls for incoming data packets and processes outgoing data packets. Network drivers and applications can call the EFI_IP6_PROTOCOL.Poll() function to increase the rate that data packets are moved between the communications device and the transmit and receive queues.

In some systems the periodic timer event may not poll the underlying communications device fast enough to transmit and/or receive all data packets without missing incoming packets or dropping outgoing packets. Drivers and applications that are experiencing packet loss should try calling the EFI_IP6_PROTOCOL.Poll() function more often.

Parameters
[in]ThisPointer to the EFI_IP6_PROTOCOL instance.
Return values
EFI_SUCCESSIncoming or outgoing data was processed.
EFI_NOT_STARTEDThis EFI IPv6 Protocol instance has not been started.
EFI_INVALID_PARAMETERThis is NULL.
EFI_DEVICE_ERRORAn unexpected system or network error occurred.
EFI_NOT_READYNo incoming or outgoing data is processed.
EFI_TIMEOUTData was dropped out of the transmit and/or receive queue. Consider increasing the polling rate.

Definition at line 925 of file Ip6.h.

Enumeration Type Documentation

◆ EFI_IP6_NEIGHBOR_STATE

EFI_IP6_NEIGHBOR_STATE.

Enumerator
EfiNeighborInComplete 

Address resolution is being performed on this entry.

Specially, Neighbor Solicitation has been sent to the solicited-node multicast address of the target, but corresponding Neighbor Advertisement has not been received.

EfiNeighborReachable 

Positive confirmation was received that the forward path to the neighbor was functioning properly.

EfiNeighborStale 

Reachable Time has elapsed since the last positive confirmation was received.

In this state, the forward path to the neighbor was functioning properly.

EfiNeighborDelay 

This state is an optimization that gives upper-layer protocols additional time to provide reachability confirmation.

EfiNeighborProbe 

A reachability confirmation is actively sought by retransmitting Neighbor Solicitations every RetransTimer milliseconds until a reachability confirmation is received.

Definition at line 251 of file Ip6.h.

251  {
252  ///
253  /// Address resolution is being performed on this entry. Specially,
254  /// Neighbor Solicitation has been sent to the solicited-node
255  /// multicast address of the target, but corresponding Neighbor
256  /// Advertisement has not been received.
257  ///
259  ///
260  /// Positive confirmation was received that the forward path to the
261  /// neighbor was functioning properly.
262  ///
264  ///
265  /// Reachable Time has elapsed since the last positive confirmation
266  /// was received. In this state, the forward path to the neighbor was
267  /// functioning properly.
268  ///
270  ///
271  /// This state is an optimization that gives upper-layer protocols
272  /// additional time to provide reachability confirmation.
273  ///
275  ///
276  /// A reachability confirmation is actively sought by retransmitting
277  /// Neighbor Solicitations every RetransTimer milliseconds until a
278  /// reachability confirmation is received.
279  ///
EFI_IP6_NEIGHBOR_STATE
EFI_IP6_NEIGHBOR_STATE.
Definition: Ip6.h:251
Reachable Time has elapsed since the last positive confirmation was received.
Definition: Ip6.h:269
Positive confirmation was received that the forward path to the neighbor was functioning properly.
Definition: Ip6.h:263
A reachability confirmation is actively sought by retransmitting Neighbor Solicitations every Retrans...
Definition: Ip6.h:280
This state is an optimization that gives upper-layer protocols additional time to provide reachabilit...
Definition: Ip6.h:274
Address resolution is being performed on this entry.
Definition: Ip6.h:258

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( BSD2_PATENT  )

Variable Documentation

◆ gEfiIp6ServiceBindingProtocolGuid

EFI_GUID gEfiIp6ServiceBindingProtocolGuid

◆ gEfiIp6ProtocolGuid

EFI_GUID gEfiIp6ProtocolGuid