OpenNet
Macros | Functions
IPv6.h File Reference
#include <OpenNetK/ByteOrder.h>

Go to the source code of this file.

Macros

#define IPv6_ETHERNET_TYPE_nh   (0xdd86)
 The Ethernet type of IPv6 packets.
 
#define IPv6_HEADER_SIZE_byte   (40)
 The size of the IPv6 header.
 

Functions

OPEN_NET_GLOBAL unsigned char * IPv6_Data (OPEN_NET_GLOBAL unsigned char *aData)
 This function returns a pointer to the payload. More...
 
unsigned int IPv6_DataSize (OPEN_NET_GLOBAL unsigned char *aData)
 This function returns the size of the payload. More...
 
OPEN_NET_GLOBAL unsigned short * IPv6_Destination (OPEN_NET_GLOBAL unsigned char *aData)
 This function returns a pointer to the destination address. More...
 
unsigned char IPv6_Protocol (OPEN_NET_GLOBAL unsigned char *aData)
 This function returns the protocol. More...
 
OPEN_NET_GLOBAL unsigned short * IPv6_Source (OPEN_NET_GLOBAL unsigned char *aData)
 This function returns a pointer to the source address. More...
 

Detailed Description

Author
KMS - Martin Dubois, ing.

Function Documentation

OPEN_NET_GLOBAL unsigned char* IPv6_Data ( OPEN_NET_GLOBAL unsigned char *  aData)

This function returns a pointer to the payload.

Parameters
aDataA pointer to the IPv6 header
Returns
This function returns a pointer to the payload.
unsigned int IPv6_DataSize ( OPEN_NET_GLOBAL unsigned char *  aData)

This function returns the size of the payload.

Parameters
aDataA pointer to the IPv6 header
Returns
This function returns the size of the payload.
OPEN_NET_GLOBAL unsigned short* IPv6_Destination ( OPEN_NET_GLOBAL unsigned char *  aData)

This function returns a pointer to the destination address.

Parameters
aDataA pointer to the IPv6 header
Returns
This function returns a pointer to the destination address.
unsigned char IPv6_Protocol ( OPEN_NET_GLOBAL unsigned char *  aData)

This function returns the protocol.

Parameters
aDataA pointer to the IPv6 header
Returns
This function returns the protocol.
OPEN_NET_GLOBAL unsigned short* IPv6_Source ( OPEN_NET_GLOBAL unsigned char *  aData)

This function returns a pointer to the source address.

Parameters
aDataA pointer to the IPv6 header
Returns
This function returns a pointer to the source address.