Go to the source code of this file.
Defines | |
| #define | EXPORT(x) x |
| #define | MAXMESSAGESIZE 1500 |
| #define | UDP_IPV4_HDRSIZE 28 |
| #define | UDP_IPV6_HDRSIZE 62 |
| #define | ARRAYSIZE(x) (sizeof(x)/sizeof(*(x))) |
| #define | MAX(x, y) ((x) > (y) ? (x) : (y)) |
| #define | MIN(x, y) ((x) < (y) ? (x) : (y)) |
| #define | INLINE inline |
| #define | ARM_NOWARN_ALIGN(x) ((void *)(x)) |
| #define | ARM_CONST_NOWARN_ALIGN const void * |
| #define | ROUND_UP_TO_POWER_OF_2(val, pow2) (((val) + (pow2) - 1) & ~((pow2) - 1)) |
Enumerations | |
| enum | app_state { STATE_INIT, STATE_RUNNING, STATE_SHUTDOWN, STATE_RECONFIGURE } |
Variables | |
| enum app_state | app_state |
| #define ARM_CONST_NOWARN_ALIGN const void * |
Definition at line 85 of file defs.h.
Referenced by olsr_parser(), PacketReceivedFromOLSR(), sockaddr4_to_string(), sockaddr6_to_string(), update_name_entry(), and validate_packet().
| #define ARM_NOWARN_ALIGN | ( | x | ) | ((void *)(x)) |
Definition at line 84 of file defs.h.
Referenced by add_signature(), AddMulticastRoute(), BmfPacketCaptured(), CheckAndUpdateLocalBroadcast(), chk_if_changed(), CreateBmfNetworkInterfaces(), CreateInterface(), CreateLocalEtherTunTap(), DecreaseTtlAndUpdateHeaderChecksum(), DeleteMulticastRoute(), DoBmf(), encap_namemsg(), GetIpHeader(), GetIpHeaderLength(), GetIpTotalLength(), GetTtl(), ip_in_net(), IsIpFragment(), IsOlsrOrBmfPacket(), olsr_namesvc_gen(), olsr_netlink_addreq(), olsr_netlink_send(), os_init_interface(), PacketCrc32(), parse_challenge(), parse_cres(), parse_rres(), RestoreTtlAndChecksum(), rtnetlink_read(), and SaveTtlAndChecksum().
| #define ARRAYSIZE | ( | x | ) | (sizeof(x)/sizeof(*(x))) |
Definition at line 58 of file defs.h.
Referenced by debuginfo_disable(), debuginfo_enable(), if_basename(), is_mac_wellformed(), olsr_com_destroy_txt(), olsr_com_init_txt(), olsr_debuginfo_displayhelp(), olsr_output_lq_tc_internal(), olsr_txtcmd_displayhelp(), olsrd_get_plugin_parameters(), olsrd_plugin_init(), set_redistribute(), txtinfo_disable(), txtinfo_enable(), txtinfo_hna(), txtinfo_interfaces(), txtinfo_link(), txtinfo_mid(), txtinfo_neigh(), txtinfo_neigh2(), txtinfo_routes(), and txtinfo_topology().
| #define MAXMESSAGESIZE 1500 |
Definition at line 54 of file defs.h.
Referenced by generate_hello(), generate_hna(), generate_mid(), olsr_input(), olsr_output_lq_tc_internal(), single_hna(), and spread_host().
| #define MIN | ( | x, | |||
| y | ) | ((x) < (y) ? (x) : (y)) |
Definition at line 63 of file defs.h.
Referenced by prefix_to_netmask(), and sockaddr_to_string().
| #define ROUND_UP_TO_POWER_OF_2 | ( | val, | |||
| pow2 | ) | (((val) + (pow2) - 1) & ~((pow2) - 1)) |
Definition at line 87 of file defs.h.
Referenced by _autobuf_enlarge(), abuf_init(), and abuf_pull().
| #define UDP_IPV4_HDRSIZE 28 |
Definition at line 55 of file defs.h.
Referenced by chk_if_changed(), GetIntInfo(), and os_init_interface().
| #define UDP_IPV6_HDRSIZE 62 |
Definition at line 56 of file defs.h.
Referenced by chk_if_changed(), GetIntInfo(), and os_init_interface().
| enum app_state |
1.6.3