gateway: use fixed tunnel names in/for multi-gateway mode
[olsrd.git] / src / hysteresis.h
index 5a8c8d2..54ca4b1 100644 (file)
@@ -1,3 +1,4 @@
+
 /*
  * The olsr.org Optimized Link-State Routing daemon(olsrd)
  * Copyright (c) 2004, Andreas Tonnesen(andreto@olsr.org)
 #define _OLSR_HYSTERESIS
 
 #include "link_set.h"
+#include "mantissa.h"
 
-int
-olsr_process_hysteresis(struct link_entry *);
+float olsr_hyst_calc_stability(float);
 
-void
-olsr_update_hysteresis_hello(struct link_entry *, olsr_reltime);
+int olsr_process_hysteresis(struct link_entry *);
 
-void
-update_hysteresis_incoming(union olsr_ip_addr *, struct interface *, uint16_t);
+float olsr_hyst_calc_instability(float);
 
-static inline float olsr_hyst_calc_stability(float old_quality) { return (((1 - olsr_cnf->hysteresis_param.scaling) * old_quality) + olsr_cnf->hysteresis_param.scaling); }
+void olsr_update_hysteresis_hello(struct link_entry *, olsr_reltime);
 
-static inline float olsr_hyst_calc_instability(float old_quality) { return ((1 - olsr_cnf->hysteresis_param.scaling) * old_quality); }
+void update_hysteresis_incoming(union olsr_ip_addr *, struct interface *, uint16_t);
 
-#endif
+#endif /* _OLSR_HYSTERESIS */
 
 /*
  * Local Variables: