27 #define IPv4_ETHERNET_TYPE_nh (0x0008)
29 #ifndef _OPEN_NET_NO_FUNCTION_
46 OPEN_NET_GLOBAL
unsigned short *
IPv4_Destination(OPEN_NET_GLOBAL
unsigned char * aData)
48 return ((OPEN_NET_GLOBAL
unsigned short *)(aData + 16));
63 return ( (aData[0] & 0x0f) * 4 );
91 OPEN_NET_GLOBAL
unsigned short *
IPv4_Source(OPEN_NET_GLOBAL
unsigned char * aData)
93 return ((OPEN_NET_GLOBAL
unsigned short *)(aData + 12));
108 OPEN_NET_GLOBAL
unsigned char *
IPv4_Data(OPEN_NET_GLOBAL
unsigned char * aData)
128 #endif // ! _OPEN_NET_NO_FUNCTION_
unsigned char IPv4_Protocol(OPEN_NET_GLOBAL unsigned char *aData)
Cette fonction retourne le protocole.
Definition: IPv4.h:76
OPEN_NET_GLOBAL unsigned short * IPv4_Destination(OPEN_NET_GLOBAL unsigned char *aData)
Cette fonction retourne un pointeur vers l'adresse de destination.
Definition: IPv4.h:46
unsigned short ByteOrder_Swap16(unsigned short aIn)
Renverse l'ordre des octets.
Definition: ByteOrder.h:29
OPEN_NET_GLOBAL unsigned char * IPv4_Data(OPEN_NET_GLOBAL unsigned char *aData)
Cette fonction retourne un pointeur vers la charge utile.
Definition: IPv4.h:108
ByteOrder_Swap16, ByteOrder_Swap32 (RT)
unsigned int IPv4_DataSize(OPEN_NET_GLOBAL unsigned char *aData)
Cette fonction retourne la taille de la charge utile.
Definition: IPv4.h:123
OPEN_NET_GLOBAL unsigned short * IPv4_Source(OPEN_NET_GLOBAL unsigned char *aData)
Cette fonction retourne un pointeur vers l'adresse de provenance.
Definition: IPv4.h:91
unsigned int IPv4_HeaderSize(OPEN_NET_GLOBAL unsigned char *aData)
Cette fonction retourne la taille de l'entête IP.
Definition: IPv4.h:61