#include "interfaces.h"#include "olsr_ip_acl.h"#include "olsr_logging.h"

Go to the source code of this file.
| #define CFG_FIBM_APPROX "approx" |
Definition at line 88 of file olsr_cfg.h.
Referenced by build_config_body(), olsr_write_cnf_buf(), and parse_cfg_option().
| #define CFG_FIBM_CORRECT "correct" |
Definition at line 87 of file olsr_cfg.h.
Referenced by build_config_body(), olsr_write_cnf_buf(), and parse_cfg_option().
| #define CFG_FIBM_FLAT "flat" |
Definition at line 86 of file olsr_cfg.h.
Referenced by build_config_body(), olsr_write_cnf_buf(), and parse_cfg_option().
| #define CFG_IP6T_AUTO "auto" |
Definition at line 90 of file olsr_cfg.h.
Referenced by olsr_write_cnf_buf().
| #define CFG_IP6T_GLOBAL "global" |
Definition at line 93 of file olsr_cfg.h.
Referenced by olsr_write_cnf_buf().
| #define CFG_IP6T_SITELOCAL "site-local" |
Definition at line 91 of file olsr_cfg.h.
Referenced by olsr_write_cnf_buf().
| #define CFG_IP6T_UNIQUELOCAL "unique-local" |
Definition at line 92 of file olsr_cfg.h.
Referenced by olsr_write_cnf_buf().
| #define DEF_ALLOW_NO_INTS true |
Definition at line 50 of file olsr_cfg.h.
Referenced by olsr_get_default_cfg().
| #define DEF_CLEAR_SCREEN true |
Definition at line 58 of file olsr_cfg.h.
Referenced by olsr_get_default_cfg().
| #define DEF_DEBUGLVL "1" |
Definition at line 52 of file olsr_cfg.h.
Referenced by olsr_parse_cfg().
| #define DEF_FIB_METRIC FIBM_FLAT |
Definition at line 54 of file olsr_cfg.h.
Referenced by olsr_get_default_cfg().
| #define DEF_HTTPLIMIT 3 |
Definition at line 60 of file olsr_cfg.h.
Referenced by olsr_get_default_cfg().
| #define DEF_HTTPPORT 8080 |
Definition at line 59 of file olsr_cfg.h.
Referenced by olsr_get_default_cfg().
| #define DEF_IPC_CONNECTIONS 0 |
Definition at line 53 of file olsr_cfg.h.
| #define DEF_LQ_ALWAYS_SEND_TC true |
Definition at line 55 of file olsr_cfg.h.
| #define DEF_LQ_FISH 1 |
Definition at line 56 of file olsr_cfg.h.
Referenced by olsr_get_default_cfg().
| #define DEF_LQ_NAT_THRESH 1000 |
Definition at line 57 of file olsr_cfg.h.
Referenced by olsr_get_default_cfg().
| #define DEF_NICCHGPOLLRT 2500 |
Definition at line 47 of file olsr_cfg.h.
Referenced by olsr_get_default_cfg().
| #define DEF_POLLRATE 50 |
Definition at line 46 of file olsr_cfg.h.
Referenced by olsr_get_default_cfg().
| #define DEF_TOS 16 |
Definition at line 51 of file olsr_cfg.h.
Referenced by olsr_get_default_cfg().
| #define DEF_TXTLIMIT 3 |
Definition at line 62 of file olsr_cfg.h.
Referenced by olsr_get_default_cfg().
| #define DEF_TXTPORT 2006 |
Definition at line 61 of file olsr_cfg.h.
Referenced by olsr_get_default_cfg().
| #define DEF_WILL 3 |
Definition at line 49 of file olsr_cfg.h.
Referenced by olsr_get_default_cfg().
| #define DEF_WILL_AUTO false |
Definition at line 48 of file olsr_cfg.h.
Referenced by olsr_get_default_cfg().
| #define IPV6_ADDR_SITELOCAL 0x0040U |
Definition at line 105 of file olsr_cfg.h.
| #define MAX_DEBUGLVL 3 |
Definition at line 72 of file olsr_cfg.h.
Referenced by parse_cfg_debug().
| #define MAX_HYST_PARAM 1.0 |
Definition at line 80 of file olsr_cfg.h.
| #define MAX_LQ_AGING 1.0 |
Definition at line 82 of file olsr_cfg.h.
| #define MAX_MPR_COVERAGE 20 |
Definition at line 77 of file olsr_cfg.h.
Referenced by olsr_sanity_check_cfg().
| #define MAX_NICCHGPOLLRT 100000 |
Definition at line 70 of file olsr_cfg.h.
Referenced by olsr_sanity_check_cfg().
| #define MAX_POLLRATE 10000 |
Definition at line 68 of file olsr_cfg.h.
| #define MAX_TC_REDUNDANCY 2 |
Definition at line 79 of file olsr_cfg.h.
Referenced by olsr_sanity_check_cfg().
| #define MAX_TOS 16 |
Definition at line 74 of file olsr_cfg.h.
Referenced by olsr_sanity_check_cfg().
| #define MAX_WILLINGNESS 7 |
Definition at line 75 of file olsr_cfg.h.
Referenced by olsr_sanity_check_cfg().
| #define MIN_DEBUGLVL -2 |
Definition at line 73 of file olsr_cfg.h.
| #define MIN_HYST_PARAM 0.0 |
Definition at line 81 of file olsr_cfg.h.
| #define MIN_INTERVAL 0.01 |
Definition at line 66 of file olsr_cfg.h.
| #define MIN_LQ_AGING 0.01 |
Definition at line 83 of file olsr_cfg.h.
| #define MIN_MPR_COVERAGE 1 |
Definition at line 78 of file olsr_cfg.h.
Referenced by olsr_sanity_check_cfg().
| #define MIN_NICCHGPOLLRT 1000 |
Definition at line 71 of file olsr_cfg.h.
Referenced by olsr_sanity_check_cfg().
| #define MIN_POLLRATE 10 |
Definition at line 69 of file olsr_cfg.h.
| #define MIN_WILLINGNESS 0 |
Definition at line 76 of file olsr_cfg.h.
| #define OLSR_IP6T_AUTO 0 |
Definition at line 95 of file olsr_cfg.h.
Referenced by olsr_get_default_if_options(), os_init_interface(), and parse_cfg_interface().
| #define OLSR_IP6T_GLOBAL 3 |
Definition at line 98 of file olsr_cfg.h.
Referenced by chk_if_changed(), get_ipv6_address(), olsr_write_cnf_buf(), os_init_interface(), and parse_cfg_interface().
| #define OLSR_IP6T_SITELOCAL 1 |
Definition at line 96 of file olsr_cfg.h.
Referenced by chk_if_changed(), get_ipv6_address(), olsr_write_cnf_buf(), os_init_interface(), and parse_cfg_interface().
| #define OLSR_IP6T_UNIQUELOCAL 2 |
Definition at line 97 of file olsr_cfg.h.
Referenced by chk_if_changed(), get_ipv6_address(), olsr_write_cnf_buf(), os_init_interface(), and parse_cfg_interface().
Definition at line 171 of file olsr_cfg.h.
| enum smart_gw_uplinktype |
Definition at line 115 of file olsr_cfg.h.
| struct olsr_config* EXPORT | ( | olsr_cnf | ) | [read] |
| void olsr_free_cfg | ( | struct olsr_config * | cfg | ) |
Definition at line 1439 of file olsr_cfg.c.
References olsr_if_config::cnf, olsr_if_config::config, olsr_config::dlPath, olsr_config::hna_entries, olsr_config::if_configs, ip_prefix_list_flush(), plugin_param::key, olsr_config::log_target_file, olsr_if_options::lq_mult, plugin_entry::name, olsr_if_config::name, plugin_entry::next, plugin_param::next, olsr_if_config::next, olsr_lq_mult::next, plugin_entry::params, olsr_config::plugins, and plugin_param::value.
Referenced by olsr_shutdown().

| struct olsr_config* olsr_get_default_cfg | ( | void | ) | [read] |
Definition at line 1505 of file olsr_cfg.c.
References all_zero, olsr_config::allow_no_interfaces, olsr_config::clear_screen, olsr_config::comport_http, olsr_config::comport_http_limit, olsr_config::comport_txt, olsr_config::comport_txt_limit, DEF_ALLOW_NO_INTS, DEF_CLEAR_SCREEN, DEF_FIB_METRIC, DEF_HTTPLIMIT, DEF_HTTPPORT, DEF_LQ_FISH, DEF_LQ_NAT_THRESH, DEF_NICCHGPOLLRT, DEF_POLLRATE, DEF_TOS, DEF_TXTLIMIT, DEF_TXTPORT, DEF_WILL, DEF_WILL_AUTO, olsr_config::dlPath, olsr_msg_params::emission_interval, olsr_config::exit_value, olsr_config::fib_metric, HELLO_INTERVAL, olsr_config::hna_entries, HNA_HOLD_TIME, HNA_INTERVAL, olsr_config::hna_params, olsr_config::if_configs, olsr_config::ioctl_s, olsr_config::ip_version, olsr_config::ipsize, list_init_head(), olsr_config::log_event, LOG_SOURCE_COUNT, olsr_config::log_target_file, olsr_config::log_target_stderr, olsr_config::log_target_syslog, olsr_config::lq_fish, olsr_config::lq_nat_thresh, MID_HOLD_TIME, MID_INTERVAL, olsr_config::mid_params, MPR_COVERAGE, olsr_config::mpr_coverage, olsr_config::nic_chgs_pollrate, olsr_config::no_fork, olsr_malloc(), olsr_config::olsr_port, OLSRPORT, olsr_config::plugins, olsr_config::pollrate, olsr_config::router_id, olsr_config::rt_proto, olsr_config::rt_table, olsr_config::rt_table_default, SEVERITY_DEBUG, SEVERITY_ERR, SEVERITY_INFO, SEVERITY_WARN, olsr_config::source_ip_mode, TC_INTERVAL, olsr_config::tc_params, TC_REDUNDANCY, olsr_config::tc_redundancy, TOP_HOLD_TIME, olsr_config::tos, olsr_msg_params::validity_time, olsr_config::will_int, olsr_config::willingness, and olsr_config::willingness_auto.
Referenced by olsr_parse_cfg().

| struct olsr_if_options* olsr_get_default_if_options | ( | void | ) | [read] |
Definition at line 296 of file olsr_cfg.c.
References AF_INET6, olsr_if_options::autodetect_chg, olsr_msg_params::emission_interval, HELLO_INTERVAL, olsr_if_options::hello_params, IF_MODE_MESH, inet_pton(), olsr_if_options::ipv6_addrtype, olsr_if_options::ipv6_multi_glbl, olsr_if_options::ipv6_multi_site, olsr_if_options::mode, NEIGHB_HOLD_TIME, OLSR_IP6T_AUTO, OLSR_IPV6_MCAST_GLOBAL, OLSR_IPV6_MCAST_SITE_LOCAL, olsr_malloc(), olsr_ip_addr::v6, and olsr_msg_params::validity_time.
Referenced by queue_if().

| void olsr_parse_cfg | ( | int | argc, | |
| char * | argv[], | |||
| const char * | file, | |||
| struct olsr_config ** | rcfg | |||
| ) |
Definition at line 1029 of file olsr_cfg.c.
References CFG_DLPATH, cfg_has_log, CFG_HNA_HTIME, CFG_HNA_VTIME, CFG_HTTPLIMIT, CFG_HTTPPORT, CFG_LOG_DEBUG, CFG_LOG_ERROR, CFG_LOG_FILE, CFG_LOG_INFO, CFG_LOG_STDERR, CFG_LOG_SYSLOG, CFG_LOG_WARN, CFG_MID_HTIME, CFG_MID_VTIME, CFG_OLSRPORT, CFG_TC_HTIME, CFG_TC_VTIME, CFG_TXTLIMIT, CFG_TXTPORT, DEF_DEBUGLVL, get_olsrd_builddate(), get_olsrd_buildsystem(), get_olsrd_git_change(), get_olsrd_git_commit(), get_olsrd_version(), ListInterfaces(), LOG_CONFIG, LOG_SEVERITY_COUNT, LOG_SEVERITY_NAMES, LOG_SOURCE_COUNT, LOG_SOURCE_NAMES, OLSR_ERROR, olsr_exit(), olsr_get_default_cfg(), OLSR_INFO_NH, olsr_malloc(), olsr_strdup(), OLSR_WARN, parse_cfg_debug(), parse_cfg_option(), queue_if(), read_cfg(), SEVERITY_DEBUG, SEVERITY_ERR, SEVERITY_INFO, and SEVERITY_WARN.
Referenced by main().

| int olsr_sanity_check_cfg | ( | struct olsr_config * | cfg | ) |
Definition at line 1308 of file olsr_cfg.c.
References AF_INET6, all_zero, olsr_if_config::cnf, olsr_msg_params::emission_interval, olsr_if_options::hello_params, olsr_config::hna_params, olsr_config::if_configs, olsr_config::ip_version, olsr_config::lq_nat_thresh, MAX_MPR_COVERAGE, MAX_NICCHGPOLLRT, MAX_TC_REDUNDANCY, MAX_TOS, MAX_WILLINGNESS, olsr_config::mid_params, MIN_MPR_COVERAGE, MIN_NICCHGPOLLRT, olsr_config::mpr_coverage, olsr_if_config::name, olsr_if_config::next, olsr_config::nic_chgs_pollrate, olsr_clock_to_string(), olsr_config::olsr_port, olsr_config::pollrate, olsr_config::router_id, olsr_config::rt_table, olsr_config::rt_table_default, olsr_config::source_ip_mode, olsr_config::tc_params, olsr_config::tc_redundancy, olsr_config::tos, olsr_msg_params::validity_time, olsr_config::willingness, and olsr_config::willingness_auto.
Referenced by main().

1.6.3