/home/aaron/olsrd-current/olsrd/lib/bmf/src/Packet.h File Reference

#include <net/if.h>
#include <sys/types.h>
Include dependency graph for Packet.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)
u_int16_t GetEncapsulationUdpDataLength (unsigned char *encapsulationUdpData)

Variables

struct TEncapHeader __packed__

Define Documentation

#define BMF_ENCAP_LEN   6
#define BMF_ENCAP_TYPE   1
#define ENCAP_HDR_LEN   ((int)sizeof(struct TEncapHeader))

Function Documentation

void DecreaseTtlAndUpdateHeaderChecksum ( unsigned char *  ipPacket  ) 

Definition at line 188 of file Packet.c.

u_int16_t GetEncapsulationUdpDataLength ( unsigned char *  encapsulationUdpData  ) 

Definition at line 239 of file Packet.c.

References ENCAP_HDR_LEN, GetIpPacket(), and GetIpTotalLength().

Referenced by BmfEncapsulationPacketReceived(), and EncapsulateAndForwardPacket().

Here is the call graph for this function:

struct ip* GetIpHeader ( unsigned char *  encapsulationUdpData  )  [read]

Definition at line 211 of file Packet.c.

unsigned int GetIpHeaderLength ( unsigned char *  ipPacket  ) 

Definition at line 104 of file Packet.c.

unsigned char* GetIpPacket ( unsigned char *  encapsulationUdpData  ) 

Definition at line 225 of file Packet.c.

u_int16_t GetIpTotalLength ( unsigned char *  ipPacket  ) 

Definition at line 85 of file Packet.c.

u_int8_t GetTtl ( unsigned char *  ipPacket  ) 

Definition at line 124 of file Packet.c.

int IsIpFragment ( unsigned char *  ipPacket  ) 

Definition at line 62 of file Packet.c.

void RestoreTtlAndChecksum ( unsigned char *  ipPacket,
struct TSaveTtl sttl 
)

Definition at line 166 of file Packet.c.

void SaveTtlAndChecksum ( unsigned char *  ipPacket,
struct TSaveTtl sttl 
)

Definition at line 144 of file Packet.c.


Variable Documentation

Generated on Thu Jun 20 06:00:02 2013 for olsrd by  doxygen 1.6.3