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

#include <net/if.h>
#include <sys/types.h>
Include dependency graph for Packet.h:
This graph shows which files directly or indirectly include this file:

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 Documentation

#define BMF_ENCAP_LEN   6

Definition at line 64 of file Packet.h.

#define BMF_ENCAP_TYPE   1

Definition at line 63 of file Packet.h.

#define ENCAP_HDR_LEN   ((int)sizeof(struct TEncapHeader))

Definition at line 62 of file Packet.h.


Function Documentation

void DecreaseTtlAndUpdateHeaderChecksum ( unsigned char *  ipPacket  ) 

Definition at line 188 of file Packet.c.

References ARM_NOWARN_ALIGN.

struct ip* GetIpHeader ( unsigned char *  encapsulationUdpData  )  [read]
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  ) 
u_int16_t GetIpTotalLength ( unsigned char *  ipPacket  ) 
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().


Variable Documentation

Generated on Wed Jun 19 06:00:04 2013 for olsrd by  doxygen 1.6.3