/home/aaron/olsrd-current/olsrd/src/core/lq_packet.h File Reference

#include "olsr_types.h"
#include "olsr_clock.h"
#include "ipcalc.h"
#include "olsr_protocol.h"
Include dependency graph for lq_packet.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  lq_hello_neighbor
struct  lq_hello_message

Defines

#define LQ_HELLO_MESSAGE   201
#define LQ_TC_MESSAGE   202

Functions

static INLINE void pkt_get_u8 (const uint8_t **p, uint8_t *var)
static INLINE void pkt_get_u16 (const uint8_t **p, uint16_t *var)
static INLINE void pkt_get_u32 (const uint8_t **p, uint32_t *var)
static INLINE void pkt_get_s8 (const uint8_t **p, int8_t *var)
static INLINE void pkt_get_s16 (const uint8_t **p, int16_t *var)
static INLINE void pkt_get_s32 (const uint8_t **p, int32_t *var)
static INLINE void pkt_get_reltime (const uint8_t **p, uint32_t *var)
static INLINE void pkt_get_ipaddress (const uint8_t **p, union olsr_ip_addr *var)
static INLINE void pkt_get_prefixlen (const uint8_t **p, uint8_t *var)
static INLINE void pkt_ignore_u8 (const uint8_t **p)
static INLINE void pkt_ignore_u16 (const uint8_t **p)
static INLINE void pkt_ignore_u32 (const uint8_t **p)
static INLINE void pkt_ignore_s8 (const uint8_t **p)
static INLINE void pkt_ignore_s16 (const uint8_t **p)
static INLINE void pkt_ignore_s32 (const uint8_t **p)
static INLINE void pkt_ignore_ipaddress (const uint8_t **p)
static INLINE void pkt_ignore_prefixlen (const uint8_t **p)
static INLINE void pkt_put_u8 (uint8_t **p, uint8_t var)
static INLINE void pkt_put_u16 (uint8_t **p, uint16_t var)
static INLINE void pkt_put_u32 (uint8_t **p, uint32_t var)
static INLINE void pkt_put_s8 (uint8_t **p, int8_t var)
static INLINE void pkt_put_s16 (uint8_t **p, int16_t var)
static INLINE void pkt_put_s32 (uint8_t **p, int32_t var)
static INLINE void pkt_put_reltime (uint8_t **p, uint32_t var)
static INLINE void pkt_put_ipaddress (uint8_t **p, const union olsr_ip_addr *var)
static INLINE void pkt_put_prefixlen (uint8_t **p, uint8_t var)
void destroy_lq_hello (struct lq_hello_message *lq_hello)

Define Documentation

#define LQ_HELLO_MESSAGE   201

Definition at line 50 of file lq_packet.h.

Referenced by olsr_msg_statistics().

#define LQ_TC_MESSAGE   202

Definition at line 51 of file lq_packet.h.

Referenced by olsr_msg_statistics().


Function Documentation

void destroy_lq_hello ( struct lq_hello_message lq_hello  ) 

Definition at line 60 of file lq_packet.c.

References lq_hello_message::neigh, lq_hello_neighbor::next, and olsr_free_lq_hello_neighbor().

Referenced by hello_tap().

Here is the call graph for this function:

static INLINE void pkt_get_ipaddress ( const uint8_t **  p,
union olsr_ip_addr var 
) [static]
static INLINE void pkt_get_prefixlen ( const uint8_t **  p,
uint8_t *  var 
) [static]

Definition at line 120 of file lq_packet.h.

References olsr_config::ipsize, netmask_to_prefix(), and olsr_cnf.

Referenced by olsr_input_hna().

Here is the call graph for this function:

static INLINE void pkt_get_reltime ( const uint8_t **  p,
uint32_t *  var 
) [static]

Definition at line 108 of file lq_packet.h.

References olsr_clock_decode_olsrv1().

Referenced by deserialize_hello(), and olsr_parse_msg_hdr().

Here is the call graph for this function:

static INLINE void pkt_get_s16 ( const uint8_t **  p,
int16_t *  var 
) [static]

Definition at line 96 of file lq_packet.h.

static INLINE void pkt_get_s32 ( const uint8_t **  p,
int32_t *  var 
) [static]

Definition at line 102 of file lq_packet.h.

static INLINE void pkt_get_s8 ( const uint8_t **  p,
int8_t *  var 
) [static]

Definition at line 90 of file lq_packet.h.

static INLINE void pkt_get_u16 ( const uint8_t **  p,
uint16_t *  var 
) [static]

Definition at line 78 of file lq_packet.h.

Referenced by deserialize_hello(), olsr_input_tc(), olsr_parse_msg_hdr(), and parse_packet().

static INLINE void pkt_get_u32 ( const uint8_t **  p,
uint32_t *  var 
) [static]

Definition at line 84 of file lq_packet.h.

static INLINE void pkt_get_u8 ( const uint8_t **  p,
uint8_t *  var 
) [static]
static INLINE void pkt_ignore_ipaddress ( const uint8_t **  p  )  [static]

Definition at line 157 of file lq_packet.h.

References olsr_config::ipsize, and olsr_cnf.

static INLINE void pkt_ignore_prefixlen ( const uint8_t **  p  )  [static]

Definition at line 162 of file lq_packet.h.

References olsr_config::ipsize, and olsr_cnf.

static INLINE void pkt_ignore_s16 ( const uint8_t **  p  )  [static]

Definition at line 147 of file lq_packet.h.

static INLINE void pkt_ignore_s32 ( const uint8_t **  p  )  [static]

Definition at line 152 of file lq_packet.h.

static INLINE void pkt_ignore_s8 ( const uint8_t **  p  )  [static]

Definition at line 142 of file lq_packet.h.

static INLINE void pkt_ignore_u16 ( const uint8_t **  p  )  [static]
static INLINE void pkt_ignore_u32 ( const uint8_t **  p  )  [static]

Definition at line 137 of file lq_packet.h.

static INLINE void pkt_ignore_u8 ( const uint8_t **  p  )  [static]

Definition at line 127 of file lq_packet.h.

Referenced by deserialize_hello().

static INLINE void pkt_put_ipaddress ( uint8_t **  p,
const union olsr_ip_addr var 
) [static]
static INLINE void pkt_put_prefixlen ( uint8_t **  p,
uint8_t  var 
) [static]

Definition at line 216 of file lq_packet.h.

References olsr_config::ipsize, olsr_cnf, and prefix_to_netmask().

Here is the call graph for this function:

static INLINE void pkt_put_reltime ( uint8_t **  p,
uint32_t  var 
) [static]

Definition at line 204 of file lq_packet.h.

References olsr_clock_encode_olsrv1().

Referenced by generate_hello(), generate_hna(), olsr_output_lq_tc_internal(), olsr_put_msg_hdr(), single_hna(), and spread_host().

Here is the call graph for this function:

static INLINE void pkt_put_s16 ( uint8_t **  p,
int16_t  var 
) [static]

Definition at line 192 of file lq_packet.h.

static INLINE void pkt_put_s32 ( uint8_t **  p,
int32_t  var 
) [static]

Definition at line 198 of file lq_packet.h.

static INLINE void pkt_put_s8 ( uint8_t **  p,
int8_t  var 
) [static]

Definition at line 186 of file lq_packet.h.

static INLINE void pkt_put_u16 ( uint8_t **  p,
uint16_t  var 
) [static]
static INLINE void pkt_put_u32 ( uint8_t **  p,
uint32_t  var 
) [static]

Definition at line 180 of file lq_packet.h.

static INLINE void pkt_put_u8 ( uint8_t **  p,
uint8_t  var 
) [static]
Generated on Wed May 22 06:00:47 2013 for olsrd by  doxygen 1.6.3