/*
* The olsr.org Optimized Link-State Routing daemon(olsrd)
- * Copyright (c) 2004-2009, the olsr.org team - see HISTORY file
+ * Copyright (c) 2004, Andreas Tonnesen(andreto@olsr.org)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
*
*/
-
#ifndef _OLSR_FUNCTIONS
#define _OLSR_FUNCTIONS
#include "olsr_protocol.h"
#include "interfaces.h"
-#include "common/avl_olsr_comp.h"
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));
+
+void olsr_process_changes(void);
-void
- 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 *);
-uint8_t *EXPORT(olsr_put_msg_hdr)(uint8_t **curr, struct olsr_message *msg);
+void set_buffer_timer(struct interface *);
-int
- olsr_forward_message(struct olsr_message *, uint8_t *binary, struct interface *, union olsr_ip_addr *);
+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 *);
-void olsr_calculate_willingness(void);
+uint8_t olsr_calculate_willingness(void);
const char *olsr_msgtype_to_string(uint8_t);
const char *olsr_status_to_string(uint8_t);
-void
- EXPORT(olsr_exit) (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: