#include <net/if.h>#include <sys/types.h>

Go to the source code of this file.
Data Structures | |
| struct | TEncapHeader |
| struct | TSaveTtl |
Defines | |
| #define | ENCAP_HDR_LEN ((int)sizeof(struct TEncapHeader)) |
| #define | BMF_ENCAP_TYPE 1 |
| #define | BMF_ENCAP_LEN 6 |
Functions | |
| int | IsIpFragment (unsigned char *ipPacket) |
| u_int16_t | GetIpTotalLength (unsigned char *ipPacket) |
| unsigned int | GetIpHeaderLength (unsigned char *ipPacket) |
| u_int8_t | GetTtl (unsigned char *ipPacket) |
| void | SaveTtlAndChecksum (unsigned char *ipPacket, struct TSaveTtl *sttl) |
| void | RestoreTtlAndChecksum (unsigned char *ipPacket, struct TSaveTtl *sttl) |
| void | DecreaseTtlAndUpdateHeaderChecksum (unsigned char *ipPacket) |
| struct ip * | GetIpHeader (unsigned char *encapsulationUdpData) |
| unsigned char * | GetIpPacket (unsigned char *encapsulationUdpData) |
Variables | |
| struct TEncapHeader | __packed__ |
| #define ENCAP_HDR_LEN ((int)sizeof(struct TEncapHeader)) |
| void DecreaseTtlAndUpdateHeaderChecksum | ( | unsigned char * | ipPacket | ) |
Definition at line 188 of file Packet.c.
References ARM_NOWARN_ALIGN.
| struct ip* GetIpHeader | ( | unsigned char * | encapsulationUdpData | ) | [read] |
Definition at line 211 of file Packet.c.
References ARM_NOWARN_ALIGN, and ENCAP_HDR_LEN.
Referenced by BmfEncapsulationPacketReceived(), BmfPacketCaptured(), and BmfTunPacketCaptured().
| unsigned int GetIpHeaderLength | ( | unsigned char * | ipPacket | ) |
Definition at line 104 of file Packet.c.
References ARM_NOWARN_ALIGN.
Referenced by BmfPacketCaptured(), CheckAndUpdateLocalBroadcast(), DoBmf(), and IsOlsrOrBmfPacket().
| unsigned char* GetIpPacket | ( | unsigned char * | encapsulationUdpData | ) |
Definition at line 225 of file Packet.c.
References ENCAP_HDR_LEN.
Referenced by BmfEncapsulationPacketReceived(), BmfPacketCaptured(), BmfTunPacketCaptured(), DoBmf(), DoMDNS(), and GetEncapsulationUdpDataLength().
| u_int16_t GetIpTotalLength | ( | unsigned char * | ipPacket | ) |
Definition at line 85 of file Packet.c.
References ARM_NOWARN_ALIGN.
Referenced by BmfEncapsulationPacketReceived(), BmfPacketCaptured(), BmfTunPacketCaptured(), GetEncapsulationUdpDataLength(), and IsOlsrOrBmfPacket().
| u_int8_t GetTtl | ( | unsigned char * | ipPacket | ) |
Definition at line 124 of file Packet.c.
References ARM_NOWARN_ALIGN.
| int IsIpFragment | ( | unsigned char * | ipPacket | ) |
Definition at line 62 of file Packet.c.
References ARM_NOWARN_ALIGN.
Referenced by BmfPacketCaptured().
| void RestoreTtlAndChecksum | ( | unsigned char * | ipPacket, | |
| struct TSaveTtl * | sttl | |||
| ) |
Definition at line 166 of file Packet.c.
References ARM_NOWARN_ALIGN, TSaveTtl::check, and TSaveTtl::ttl.
Referenced by PacketCrc32().
| void SaveTtlAndChecksum | ( | unsigned char * | ipPacket, | |
| struct TSaveTtl * | sttl | |||
| ) |
Definition at line 144 of file Packet.c.
References ARM_NOWARN_ALIGN, TSaveTtl::check, and TSaveTtl::ttl.
Referenced by PacketCrc32().
| struct TSaveTtl __packed__ |
1.6.3