[Olsr-dev] [PATCH v1 0/2] add sgwdynspeed plugin

Ferry Huberts (spam-protected)
Tue May 15 15:06:03 CEST 2012


From: Ferry Huberts <(spam-protected)>

This patch series is in response to discussions on the mailing
list last week about my work to add a mechanism the olsrd core
that enables one to dynamically change the smart gateway uplink
speeds.

This patch series no longer touches the olsrd core and moves
the functionality into a (Linux only) plugin.

It should be rather easy to also support this plugin on other
platforms but as our project has no interest in that we leave
that to interested parties. Hint: the 'struct timespec' used
in the 'stat' result is the thing to modify for other platforms.

Ferry Huberts (2):
  sgwdynspeed: add plugin
  sgwdynspeed: build it by default on linux

 Makefile                                           |    2 +-
 lib/sgwdynspeed/Makefile                           |   57 +++++
 lib/sgwdynspeed/Makefile.inc                       |    7 +
 lib/{pud => sgwdynspeed}/doc/.gitignore            |    2 +-
 lib/{pud => sgwdynspeed}/doc/Makefile              |    0
 lib/{pud => sgwdynspeed}/doc/doxygen.conf          |    0
 .../sgwdynspeed/resources/olsrd.conf.default.pud   |  140 ++++++++-----
 lib/sgwdynspeed/resources/olsrd.sgw.speed.conf     |   14 ++
 lib/sgwdynspeed/src/configuration.c                |  167 ++++++++++++++
 lib/sgwdynspeed/src/configuration.h                |   40 ++++
 .../src/olsrdPlugin.c}                             |   27 +--
 lib/sgwdynspeed/src/olsrdPlugin.h                  |   26 +++
 lib/sgwdynspeed/src/sgwDynSpeed.c                  |  122 ++++++++++
 lib/sgwdynspeed/src/sgwDynSpeed.h                  |   30 +++
 lib/sgwdynspeed/src/speedFile.c                    |  238 ++++++++++++++++++++
 lib/sgwdynspeed/src/speedFile.h                    |   15 ++
 lib/{arprefresh => sgwdynspeed}/version-script.txt |    0
 17 files changed, 820 insertions(+), 67 deletions(-)
 create mode 100644 lib/sgwdynspeed/Makefile
 create mode 100644 lib/sgwdynspeed/Makefile.inc
 copy lib/{pud => sgwdynspeed}/doc/.gitignore (63%)
 copy lib/{pud => sgwdynspeed}/doc/Makefile (100%)
 copy lib/{pud => sgwdynspeed}/doc/doxygen.conf (100%)
 copy files/olsrd.conf.default.full => lib/sgwdynspeed/resources/olsrd.conf.default.pud (86%)
 create mode 100644 lib/sgwdynspeed/resources/olsrd.sgw.speed.conf
 create mode 100644 lib/sgwdynspeed/src/configuration.c
 create mode 100644 lib/sgwdynspeed/src/configuration.h
 copy lib/{pud/src/pudOlsrdPlugin.c => sgwdynspeed/src/olsrdPlugin.c} (72%)
 create mode 100644 lib/sgwdynspeed/src/olsrdPlugin.h
 create mode 100644 lib/sgwdynspeed/src/sgwDynSpeed.c
 create mode 100644 lib/sgwdynspeed/src/sgwDynSpeed.h
 create mode 100644 lib/sgwdynspeed/src/speedFile.c
 create mode 100644 lib/sgwdynspeed/src/speedFile.h
 copy lib/{arprefresh => sgwdynspeed}/version-script.txt (100%)

-- 
1.7.7.6





More information about the Olsr-dev mailing list