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

Go to the source code of this file.

Macros

#define IPv4_ETHERNET_TYPE_nh   (0x0008)
 The Ethernet type of IPv4 packets.
 

Functions

OPEN_NET_GLOBAL unsigned short * IPv4_Destination (OPEN_NET_GLOBAL unsigned char *aData)
 This function returns a pointer to the destination address. More...
 
unsigned int IPv4_HeaderSize (OPEN_NET_GLOBAL unsigned char *aData)
 This function returns the size of the IP header. More...
 
unsigned char IPv4_Protocol (OPEN_NET_GLOBAL unsigned char *aData)
 This function returns the protocol. More...
 
OPEN_NET_GLOBAL unsigned short * IPv4_Source (OPEN_NET_GLOBAL unsigned char *aData)
 This function returns a pointer to the source address. More...
 
OPEN_NET_GLOBAL unsigned char * IPv4_Data (OPEN_NET_GLOBAL unsigned char *aData)
 This function returns a pointer to the payload. More...
 
unsigned int IPv4_DataSize (OPEN_NET_GLOBAL unsigned char *aData)
 This function returns the size of the payload. More...
 

Detailed Description

Author
KMS - Martin Dubois, ing.

Function Documentation

OPEN_NET_GLOBAL unsigned char* IPv4_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 IPv4_DataSize ( OPEN_NET_GLOBAL unsigned char *  aData)

This function returns the size of the payload.

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

This function returns a pointer to the destination address.

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

This function returns the size of the IP header.

Parameters
aDataA pointer to the IPv4 header
Returns
This function returns the size of the IP header.
unsigned char IPv4_Protocol ( OPEN_NET_GLOBAL unsigned char *  aData)

This function returns the protocol.

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

This function returns a pointer to the source address.

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