Permalink
Browse files

Updated version to 0.3.0

Improved configureation.
Fixed typo that made SelectScheduler.cpp unbuildable.
  • Loading branch information...
1 parent 0e991a8 commit 2fca2ecb752d9decc5f5d4f3881d81773c0a41c9 JakeMont committed Oct 18, 2010
Showing with 44 additions and 31 deletions.
  1. +3 −3 Beacon.cpp
  2. +3 −1 ChangeLog
  3. +2 −2 KeventScheduler.cpp
  4. +2 −2 KeventScheduler.h
  5. +8 −12 README
  6. +4 −4 SelectScheduler.cpp
  7. +2 −2 SelectScheduler.h
  8. +1 −1 bfdd-beacon.8
  9. +1 −1 bfdd-control.8
  10. +18 −3 configure.ac
View
@@ -68,10 +68,10 @@ namespace openbfdd
return 1;
}
-#ifdef USE_SELECT_SCHEDULER
- m_scheduler = new SelectScheduler();
-#else
+#ifdef USE_KEVENT_SCHEDULER
m_scheduler = new KeventScheduler();
+#else
+ m_scheduler = new SelectScheduler();
#endif
int socket = makeListenSocket();
View
@@ -1,4 +1,4 @@
-2010-10-15 Jake Montgomery
+2010-10-18 Jake Montgomery Update Version to 0.3.0
* Now builds and runs on Linux (Debian).
@@ -10,6 +10,8 @@
* Formatting and other small changes and improvements.
+ * Fixed accept bug that only manifested in 32 bit systems.
+
2010-10-07 Jake Montgomery Update Version to 0.2.1
* Improved low memory handling. There is now, at least, a good chance
View
@@ -4,7 +4,7 @@
* Distributed under the FreeBSD License - see LICENSE
***************************************************************/
#include "config.h"
-#ifdef HAVE_KEVENT
+#ifdef USE_KEVENT_SCHEDULER
#include "common.h"
#include "KeventScheduler.h"
@@ -133,7 +133,7 @@ namespace openbfdd
}
-#endif // HAVE_KEVENT
+#endif // USE_KEVENT_SCHEDULER
View
@@ -12,7 +12,7 @@
#include "config.h"
-#ifdef HAVE_KEVENT
+#ifdef USE_KEVENT_SCHEDULER
#include "SchedulerBase.h"
#include <sys/event.h>
@@ -54,4 +54,4 @@ namespace openbfdd
}
-#endif // HAVE_KEVENT
+#endif // USE_KEVENT_SCHEDULER
View
20 README
@@ -51,18 +51,16 @@ See the included COPYING file for licensing information.
The software was originally developed on FreeBSD 7.1. It has been built,
and tested on the following platforms:
- * FreeBSD 7.1 AMD64
- * FreeBSD 8.1 AMD64
-
-It may, or may not, be possible to build and run it on other BSD platforms
-ithout modification. If your system is not included, then we encourage you
-o make the modifications necessary and submit them to
+ * FreeBSD 7.1 amd64
+ * FreeBSD 8.1 amd64
+ * Debian 2.6.26-2-amd64
+ * Debian 2.6.26-2-686 (i386)
+
+It may, or may not, be possible to build and run it on other BSD and Linux
+platforms without modification. If your system is not included, then we
+encourage you o make the modifications necessary and submit them to
http://github.com/dyninc/OpenBFDD/ for inclusion in future releases.
-The source currently uses the kevent() system call, which my only be
-available on BSD systems. A release is planned, in the near future, which
-will remove this dependency, and should make it easier to port OpenBFD to
-other systems.
================
+ About bfdd-beacon
@@ -136,8 +134,6 @@ repeated bfdd-control calls, such as a "monitoring" script. Use the
designed and tested to work with the Juniper line of routers. It has
currently been tested with JUNOS 8.5.
- * The bfdd-beacon may behave improperly or even crash in low memory
- situations. A fix is expected soon.
================
+ Notes on Remote BFD Platforms
View
@@ -4,10 +4,10 @@
* Distributed under the FreeBSD License - see LICENSE
***************************************************************/
#include "config.h"
-#ifdef USE_SELECT_SCHEDULER
+#ifndef USE_KEVENT_SCHEDULER
#include "common.h"
- #include "selectable.h"
+ #include "SelectScheduler.h"
#include "utils.h"
#include <sys/select.h>
#include <errno.h>
@@ -118,7 +118,7 @@ namespace openbfdd
}
/**
- * resizes m_foundation's.
+ * resizes m_foundSockets.
*
* Note that m_foundSockets is maintained a vector big enough to hold all
* events so that resizing would occur only when adding or removing sockets.
@@ -137,7 +137,7 @@ namespace openbfdd
}
}
-#endif // USE_SELECT_SCHEDULER
+#endif // !USE_KEVENT_SCHEDULER
View
@@ -12,7 +12,7 @@
#include "config.h"
-#ifdef USE_SELECT_SCHEDULER
+#ifndef USE_KEVENT_SCHEDULER
#include "SchedulerBase.h"
#include <vector>
@@ -54,4 +54,4 @@ namespace openbfdd
}
-#endif // USE_SELECT_SCHEDULER
+#endif // !USE_KEVENT_SCHEDULER
View
@@ -1,5 +1,5 @@
.\" Manpage for bfdd-beacon.
-.TH "bfdd-beacon" "8" "October 7, 2010" "OpenBFDD v0.2.1" "OpenBFDD v0.2.1"
+.TH "bfdd-beacon" "8" "October 18, 2010" "OpenBFDD v0.3.0" "OpenBFDD v0.3.0"
.SH NAME
\fBbfdd-beacon\fR - a Bidirectional Forwarding Detection (BFD) beacon daemon.
.SH SYNOPSIS
View
@@ -1,5 +1,5 @@
.\" Manpage for bfdd-control.
-.TH "bfdd-control" "8" "October 7, 2010" "OpenBFDD v0.2.1" "OpenBFDD v0.2.1"
+.TH "bfdd-control" "8" "October 18, 2010" "OpenBFDD v0.3.0" "OpenBFDD v0.3.0"
.SH NAME
\fBbfdd-control\fR - control utility for \fBbfdd-beacon\fR(8)
.SH SYNOPSIS
View
@@ -4,7 +4,7 @@
AC_PREREQ(2.61)
sinclude(acx_nlnetlabs.m4)
-AC_INIT(openbfdd, 0.2.1)
+AC_INIT(openbfdd, 0.3.0)
AM_INIT_AUTOMAKE([subdir-objects])
AC_CONFIG_SRCDIR([BeaconMain.cpp])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
@@ -38,6 +38,21 @@ case "$enable_debug" in
;;
esac
+# no kevent mode
+AC_ARG_ENABLE(kevent, AC_HELP_STRING([--disable-kevent], [Use select() instead of kevent() based scheduler, even on systems that support kevent.]))
+kevent_enabled="$enable_kevent"
+AC_SUBST(kevent_enabled)
+case "$kevent_enabled" in
+ no)
+ AC_DEFINE([NO_KEVENT_SCHEDULER], 1, [define this to disable use of the kevent scheduler.])
+ ;;
+ yes|*)
+ # nothing to do.
+ ;;
+esac
+
+
+
# Checks for libraries.
@@ -59,8 +74,8 @@ AH_BOTTOM(
AHX_CONFIG_FORMAT_ATTRIBUTE
AHX_CONFIG_UNUSED_ATTRIBUTE
-#ifndef HAVE_KEVENT
-# define USE_SELECT_SCHEDULER
+#if defined(HAVE_KEVENT) && !(defined NO_KEVENT_SCHEDULER)
+# define USE_KEVENT_SCHEDULER
#endif
)

0 comments on commit 2fca2ec

Please sign in to comment.