Go to the source code of this file.
- Author
- KMS - Martin Dubois, ing.
- Copyright
- Copyright © 2018-2019 KMS. All rights reserved.
OPEN_NET_GLOBAL unsigned char* Ethernet_Data |
( |
OPEN_NET_GLOBAL unsigned char * |
aBase, |
|
|
OPEN_NET_GLOBAL const OpenNet_PacketInfo * |
aPacketInfo |
|
) |
| |
This function returns a pointer to the Ethernet payload.
- Parameters
-
aBase | A pointer to the buffer |
aPacketInfo | A pointer to the information about the packet to process |
- Returns
- This function returns a pointer to the Etehrnet payload.
unsigned int Ethernet_DataSize |
( |
OPEN_NET_GLOBAL unsigned char * |
aBase, |
|
|
OPEN_NET_GLOBAL const OpenNet_PacketInfo * |
aPacketInfo |
|
) |
| |
This function returns the size of the Ethernet payload.
- Parameters
-
aBase | A pointer to the buffer |
aPacketInfo | A pointer to the information about the packet to process |
- Returns
- This function returns the size of the Etehrnet payload.
OPEN_NET_GLOBAL unsigned short* Ethernet_Destination |
( |
OPEN_NET_GLOBAL unsigned char * |
aBase, |
|
|
OPEN_NET_GLOBAL const OpenNet_PacketInfo * |
aPacketInfo |
|
) |
| |
This function returns a pointer to the Ethernet destination address.
- Parameters
-
aBase | A pointer to the buffer |
aPacketInfo | A pointer to the information about the packet to process |
- Returns
- This function returns a pointer to the Etehrnet destination address.
OPEN_NET_GLOBAL unsigned short* Ethernet_Source |
( |
OPEN_NET_GLOBAL unsigned char * |
aBase, |
|
|
OPEN_NET_GLOBAL const OpenNet_PacketInfo * |
aPacketInfo |
|
) |
| |
This function returns a pointer to the Ethernet source address.
- Parameters
-
aBase | A pointer to the buffer |
aPacketInfo | A pointer to the information about the packet to process |
- Returns
- This function returns a pointer to the Etehrnet source address.
unsigned short Ethernet_Type |
( |
OPEN_NET_GLOBAL const unsigned char * |
aBase, |
|
|
OPEN_NET_GLOBAL const OpenNet_PacketInfo * |
aPacketInfo |
|
) |
| |
This function returns Ethernet packet type.
- Parameters
-
aBase | A pointer to the buffer |
aPacketInfo | A pointer to the information about the packet to process |
- Returns
- This function returns the Etehrnet packet type.
int Ethernet_Vlan |
( |
OPEN_NET_GLOBAL const unsigned char * |
aBase, |
|
|
OPEN_NET_GLOBAL const OpenNet_PacketInfo * |
aPacketInfo |
|
) |
| |
This function indicate if a VLAN tag is present.
- Parameters
-
aBase | A pointer to the buffer |
aPacketInfo | A pointer to the information about the packet to process |
- Return values
-
unsigned short Ethernet_VlanTag |
( |
OPEN_NET_GLOBAL const unsigned char * |
aBase, |
|
|
OPEN_NET_GLOBAL const OpenNet_PacketInfo * |
aPacketInfo |
|
) |
| |
This function returns the VLAN tag.
- Parameters
-
aBase | A pointer to the buffer |
aPacketInfo | A pointer to the information about the packet to process |
- Returns
- This function returns 0 if the packet does not include a VLAN tag.