#include "olsr_types.h"#include "olsr_clock.h"#include "ipcalc.h"#include "olsr_protocol.h"

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 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().
| 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().

| static INLINE void pkt_get_ipaddress | ( | const uint8_t ** | p, | |
| union olsr_ip_addr * | var | |||
| ) | [static] |
Definition at line 114 of file lq_packet.h.
References olsr_config::ipsize, and olsr_cnf.
Referenced by deserialize_hello(), olsr_input_hna(), olsr_input_mid(), olsr_parse_msg_hdr(), olsr_parser(), and olsr_tc_update_edge().
| 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().

| 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().

| 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] |
Definition at line 72 of file lq_packet.h.
Referenced by deserialize_hello(), lq_etxff_deserialize_hello_lq(), lq_etxff_deserialize_tc_lq(), lq_etxfloat_deserialize_hello_lq(), lq_etxfloat_deserialize_tc_lq(), lq_etxfpm_deserialize_hello_lq(), lq_etxfpm_deserialize_tc_lq(), olsr_input_tc(), and olsr_parse_msg_hdr().
| 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] |
Definition at line 132 of file lq_packet.h.
Referenced by deserialize_hello(), lq_etxff_deserialize_hello_lq(), lq_etxff_deserialize_tc_lq(), lq_etxfloat_deserialize_hello_lq(), lq_etxfloat_deserialize_tc_lq(), lq_etxfpm_deserialize_hello_lq(), and lq_etxfpm_deserialize_tc_lq().
| 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] |
Definition at line 210 of file lq_packet.h.
References olsr_config::ipsize, and olsr_cnf.
Referenced by generate_hello(), generate_hna(), generate_mid(), olsr_output_lq_tc_internal(), olsr_put_msg_hdr(), single_hna(), and spread_host().
| 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().

| 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().

| 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] |
Definition at line 174 of file lq_packet.h.
Referenced by generate_hello(), generate_hna(), generate_mid(), lq_etxff_serialize_hello_lq(), lq_etxff_serialize_tc_lq(), olsr_mdns_gen(), olsr_namesvc_gen(), olsr_obamp_gen(), olsr_output_lq_tc_internal(), olsr_put_msg_hdr(), single_hna(), and spread_host().
| 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] |
Definition at line 168 of file lq_packet.h.
Referenced by generate_hello(), generate_hna(), lq_etxff_serialize_hello_lq(), lq_etxff_serialize_tc_lq(), lq_etxfloat_serialize_hello_lq(), lq_etxfloat_serialize_tc_lq(), lq_etxfpm_serialize_hello_lq(), lq_etxfpm_serialize_tc_lq(), olsr_output_lq_tc_internal(), olsr_put_msg_hdr(), single_hna(), and spread_host().
1.6.3