+
/*
* The olsr.org Optimized Link-State Routing daemon(olsrd)
* Copyright (c) 2004, Andreas Tonnesen(andreto@olsr.org)
*
*/
-
#ifndef _OLSR_FUNCTIONS
#define _OLSR_FUNCTIONS
extern bool changes_topology;
extern bool changes_neighborhood;
extern bool changes_hna;
-extern bool changes_force; /* Maybe static */
+extern bool changes_force;
+
+extern union olsr_ip_addr all_zero;
+
+void olsr_startup_sleep(int);
+void olsr_do_startup_sleep(void);
+
+void register_pcf(int (*)(int, int, int));
-extern const union olsr_ip_addr all_zero;
+void olsr_process_changes(void);
-void
-EXPORT(register_pcf)(int (*)(int, int, int));
+void init_msg_seqno(void);
-void
-olsr_process_changes(void);
+uint16_t get_msg_seqno(void);
-void
-init_msg_seqno(void);
+bool olsr_is_bad_duplicate_msg_seqno(uint16_t seqno);
-uint16_t
-EXPORT(get_msg_seqno)(void);
+int olsr_forward_message(union olsr_message *, struct interface *, union olsr_ip_addr *);
-int
-olsr_forward_message(union olsr_message *,
- union olsr_ip_addr *);
+void set_buffer_timer(struct interface *);
-void
-set_buffer_timer(struct interface *);
+void olsr_init_tables(void);
-void
-olsr_init_tables(void);
+void olsr_init_willingness(void);
-void
-olsr_init_willingness(void);
+void olsr_update_willingness(void *);
-uint8_t
-olsr_calculate_willingness(void);
+uint8_t olsr_calculate_willingness(void);
-const char *
-olsr_msgtype_to_string(uint8_t);
+const char *olsr_msgtype_to_string(uint8_t);
-const char *
-olsr_link_to_string(uint8_t);
+const char *olsr_link_to_string(uint8_t);
-const char *
-olsr_status_to_string(uint8_t);
+const char *olsr_status_to_string(uint8_t);
-void
-EXPORT(olsr_exit)(const char *, int);
+void olsr_exit(const char *, int) __attribute__((noreturn));
-void *
-EXPORT(olsr_malloc)(size_t, const char *);
+void *olsr_malloc(size_t, const char *);
-char *
-EXPORT(olsr_strdup)(const char *s);
+int olsr_printf(int, const char *, ...) __attribute__ ((format(printf, 2, 3)));
-char *
-EXPORT(olsr_strndup)(const char *s, size_t n);
+void olsr_trigger_forced_update(void *);
-#endif
+#endif /* _OLSR_FUNCTIONS */
/*
* Local Variables: