Functions | |
void | Bind6Msg (uint Msg) |
HANDLE | Bind6FindByHost (NETIF_DEVICE *ptr_device, IP6N IP) |
HANDLE | Bind6FindByNet (NETIF_DEVICE *ptr_device, IP6N IPNet) |
void | Bind6Free (HANDLE hbind6Obj) |
HANDLE | Bind6New (NETIF_DEVICE *ptr_device, IP6N IPHost, IP6N IPMask, UINT32 ValidLifetime, UINT32 PreferredLifetime, UINT8 IsAnycast) |
int | Bind6DADCheck (NETIF_DEVICE *ptr_device, IP6N TargetAddress) |
NETIF_DEVICE * | Bind6GetInterfaceHandle (HANDLE hbind6Obj) |
HANDLE | Bind6FindByIF (NETIF_DEVICE *ptr_device) |
int | Bind6GetLinkLocalAddress (NETIF_DEVICE *ptr_device, IP6N *IPAddress) |
int | Bind6GetGlobalAddress (NETIF_DEVICE *ptr_device, IP6N IPNetworkAddr, IP6N *IPAddress) |
IP6N | Bind6IF2IPHost (NETIF_DEVICE *ptr_device) |
UINT32 | Bind6GetLifetime (HANDLE hbind6Obj) |
void | Bind6SetLifetime (HANDLE hbind6Obj, UINT32 Lifetime) |
BIND6_ENTRY * | Bind6GetTable (void) |
void | Bind6CleanTable (BIND6_ENTRY *ptr_list) |
void Bind6CleanTable | ( | BIND6_ENTRY * | ptr_list | ) |
Description
The function is called to clean the memory allocated by a previous call to Route6GetTable. The function cleans the replicated copy of the routing table. This function is available to system developers and can be called from outside kernel mode.
[in] | ptr_list | This is the head of the duplicate list which will be cleaned up. |
Not | Applicable |
int Bind6DADCheck | ( | NETIF_DEVICE * | ptr_device, | |
IP6N | TargetAddress | |||
) |
Description
The function is called by the ICMP6 Module to check if the received address passes or fails the DAD Check.
This is for *internal* NDK Stack Usage.
[in] | ptr_device | The pointer to the network interface device on which the DAD needs to be stopped. |
[in] | TargetAddress | The IP Address matching the Target Address in the NS/NA request. |
Success | (No DAD Detected) - 0 | |
Error | (DAD Detected) - <0 |
HANDLE Bind6FindByHost | ( | NETIF_DEVICE * | ptr_device, | |
IP6N | IP | |||
) |
Description
Find a binding by searching IF handle with IP Host addr This is an external NDK Stack API and is available to other modules. In this we search only addresses which have passed the DAD Procedure since these are VALID.
This is for *internal* NDK Stack Usage.
[in] | ptr_device | Pointer to the NIMU Network Interface object which has to be searched for the IPv6 address. |
[in] | IP | IPv6 Address to be searched for. |
Match | - Handle to the BIND6_ENTRY Object | |
No | Match - 0 |
HANDLE Bind6FindByIF | ( | NETIF_DEVICE * | ptr_device | ) |
Description
The function searches the BIND6_ENTRY objects in the system for a specific interface.
This is for *internal* NDK Stack Usage.
[in] | ptr_device | The Network interface object whose BIND6_ENTRY Object we are interested in. |
Handle | to the BIND6_ENTRY object |
HANDLE Bind6FindByNet | ( | NETIF_DEVICE * | ptr_device, | |
IP6N | IPNet | |||
) |
Description
Find a binding by searching IF handle with IP Net addr This is an external NDK Stack API and is available to other modules. In this we search only addresses which have passed the DAD Procedure since these are VALID.
This is for *internal* NDK Stack Usage.
[in] | ptr_device | Pointer to the NIMU Network Interface object which has to be searched for the IPv6 address. |
[in] | IPNet | IPv6 Network Address we are searching for. |
Match | - Handle to the BIND6_ENTRY Object | |
No | Match - 0 |
void Bind6Free | ( | HANDLE | hbind6Obj | ) |
Description
The function is used to close an IPv6 binding.
This is for *internal* NDK Stack Usage.
[in] | hbind6Obj | The BIND6_ENTRY Object which is to be freed up. |
Not | Applicable. |
int Bind6GetGlobalAddress | ( | NETIF_DEVICE * | ptr_device, | |
IP6N | IPNetworkAddr, | |||
IP6N * | IPAddress | |||
) |
Description
The function searches the BIND6 object and returns a GLOBAL Address for the device. An Error Condition conveys the fact either IPv6 has not been initialized on this interface or there is no GLOBAL Address configured on the interface
[in] | ptr_device | The Network interface object whose LINK LOCAL Address is required. |
[in] | IPNetworkAddr | The Network Mask of the IP Address that needs to be retuned. |
[out] | IPAddress | The GLOBAL IP Address is returned |
Success | - 0 | |
Error | - -1 |
NETIF_DEVICE* Bind6GetInterfaceHandle | ( | HANDLE | hbind6Obj | ) |
Description
The function returns the interface handle given the BIND6_ENTRY object.
This is for *internal* NDK Stack Usage.
[in] | hbind6Obj | The BIND6_ENTRY Object whose interface handle we need. |
Success | - Handle of the interface | |
Error | - 0 |
UINT32 Bind6GetLifetime | ( | HANDLE | hbind6Obj | ) |
Description
The function returns the Lifetime matching the BIND6_ENTRY object.
This is for *internal* NDK Stack Usage.
[in] | hbind6Obj | Handle to the BIND6_ENTRY object whose lifetime we need to get |
Lifetime | value associated with the BIND6_ENTRY object. |
int Bind6GetLinkLocalAddress | ( | NETIF_DEVICE * | ptr_device, | |
IP6N * | IPAddress | |||
) |
Description
The function searches the BIND6 object and returns a LINK LOCAL Address for the device. An Error Condition conveys the fact that there IPv6 has not been initialized on this interface.
[in] | ptr_device | The Network interface object whose LINK LOCAL Address is required. |
[out] | IPAddress | The Link Local IP Address is returned |
Success | - 0 | |
Error | - -1 |
BIND6_ENTRY* Bind6GetTable | ( | void | ) |
Description
The function replicates the BIND6 Table and creates a duplicate copy which is then returned back to the callee. The replicated BIND table list needs to be cleaned by the callee. This function is available to system developers and can be called from outside kernel mode.
Head | of the copy of the BIND6 |
IP6N Bind6IF2IPHost | ( | NETIF_DEVICE * | ptr_device | ) |
Description
The function returns the IPv6 address matching the BIND6_ENTRY object.
This is for *internal* NDK Stack Usage.
[in] | ptr_device | The Network interface object whose IPv6 Address we are interested in. |
Success | - The IPv6 Address matching the interface | |
Error | - IPV6_UNSPECIFIED_ADDRESS (::) |
void Bind6Msg | ( | uint | Msg | ) |
Description
Sevices intialization and resource messages for the BIND6 Module
This is for *internal* NDK Stack Usage.
[in] | Msg | The message event which needs to be handled. |
Not | Applicable. |
HANDLE Bind6New | ( | NETIF_DEVICE * | ptr_device, | |
IP6N | IPHost, | |||
IP6N | IPMask, | |||
UINT32 | ValidLifetime, | |||
UINT32 | PreferredLifetime, | |||
UINT8 | IsAnycast | |||
) |
Description
This function is used to create a new BIND6_ENTRY Object with the specified properties.
This is for *internal* NDK Stack Usage.
[in] | ptr_device | Pointer to the NIMU Network Interface object on which the BIND6_ENTRY object is to be created. |
[in] | IPHost | IPv6 Address |
[in] | IPMask | IPv6 Mask |
[in] | ValidLifetime | Valid Lifetime for which the address remains VALID |
[in] | PreferredLifetime | Preferred Lifetime for which the address remains VALID |
[in] | IsAnycast | Flag set to 1 if the address is an ANYCAST Address; else set to 0. |
Success | - Handle to the new BIND6_ENTRY Object | |
Error | - 0 |
void Bind6SetLifetime | ( | HANDLE | hbind6Obj, | |
UINT32 | Lifetime | |||
) |
Description
The function sets the Lifetime matching the BIND6_ENTRY object.
This is for *internal* NDK Stack Usage.
[in] | hbind6Obj | Handle to the BIND6_ENTRY object whose lifetime we need to get |
[in] | Lifetime | New Lifetime value to be associated. |
Not | Applicable. |