bpdyndnsd
14 years agoWe need to switch to build dir in install section, too.
Bjoern Sikora [Thu, 15 Oct 2009 14:59:26 +0000]
We need to switch to build dir in install section, too.

14 years agoTo fully support IPv6 we need to be able to parse an IPv6 address out of the received...
Bjoern Sikora [Thu, 15 Oct 2009 14:17:13 +0000]
To fully support IPv6 we need to be able to parse an IPv6 address out of the received curl data.

14 years agoLittle change in description and changed buildroot.
Bjoern Sikora [Thu, 15 Oct 2009 14:15:33 +0000]
Little change in description and changed buildroot.

14 years agoMoved into subfolder config.
Bjoern Sikora [Thu, 15 Oct 2009 14:14:56 +0000]
Moved into subfolder config.

14 years agoConfigure.in needed for make source tar file.
Bjoern Sikora [Thu, 15 Oct 2009 14:14:29 +0000]
Configure.in needed for make source tar file.

14 years agoFirst shot on spec file.
Bjoern Sikora [Thu, 15 Oct 2009 14:14:06 +0000]
First shot on spec file.

14 years agoMoved config file into subfolder config.
Bjoern Sikora [Thu, 15 Oct 2009 14:13:43 +0000]
Moved config file into subfolder config.

14 years agoAdded support for multiple interfaces.
Bjoern Sikora [Wed, 14 Oct 2009 15:47:39 +0000]
Added support for multiple interfaces.
Improved IPv6 Support.

14 years agoBugfix: Status code in curl data is delimited by carriage return + line feed, so...
Bjoern Sikora [Tue, 13 Oct 2009 11:24:22 +0000]
Bugfix: Status code in curl data is delimited by carriage return + line feed, so we need \r\n as delimiter.

14 years agoDon't try to update if dynamic hostname could not be found.
Bjoern Sikora [Mon, 12 Oct 2009 11:18:42 +0000]
Don't try to update if dynamic hostname could not be found.
Changed log level for "Host not found" to warning (doesn't lead to program exit).

14 years agoBugfix: Curl appends rather than overrites writedata buff, so we need to copy and...
Bjoern Sikora [Fri, 9 Oct 2009 15:27:47 +0000]
Bugfix: Curl appends rather than overrites writedata buff, so we need to copy and clear it.

14 years agoBugfix: User \n as delimiter for service tzo.
Bjoern Sikora [Tue, 22 Sep 2009 17:31:51 +0000]
Bugfix: User \n as delimiter for service tzo.

14 years agoBugfix: User \n as delimiter for easydns.
Bjoern Sikora [Tue, 22 Sep 2009 17:30:54 +0000]
Bugfix: User \n as delimiter for easydns.

14 years agoIncreased version in user agent info.
Bjoern Sikora [Tue, 22 Sep 2009 17:30:05 +0000]
Increased version in user agent info.

14 years agoChanged paths to the final locations.
Bjoern Sikora [Tue, 22 Sep 2009 15:21:11 +0000]
Changed paths to the final locations.

14 years agoClearly rearranged update algorithm.
Bjoern Sikora [Tue, 22 Sep 2009 15:14:40 +0000]
Clearly rearranged update algorithm.
Improved logging.

14 years agoRemoved version information from main.cpp.
Bjoern Sikora [Tue, 22 Sep 2009 15:13:57 +0000]
Removed version information from main.cpp.

14 years agoAdded version into agent string.
Bjoern Sikora [Tue, 22 Sep 2009 15:13:22 +0000]
Added version into agent string.

14 years agoAlso (de-)serialize object state (LastWebcheck) of IPAddrHelper.
Bjoern Sikora [Mon, 21 Sep 2009 14:41:40 +0000]
Also (de-)serialize object state (LastWebcheck) of IPAddrHelper.
This is needed to prevent massiv use of webcheck IP url's.

14 years agoDo not invoke any webcheck url to often (once every 10 minutes will be the default).
Bjoern Sikora [Mon, 21 Sep 2009 13:05:16 +0000]
Do not invoke any webcheck url to often (once every 10 minutes will be the default).

14 years agoUpdated macros to search for boost, curl and openssl libraries
Thomas Jarosch [Mon, 21 Sep 2009 10:19:14 +0000]
Updated macros to search for boost, curl and openssl libraries

14 years agoRestructured source file list. Created list for header files, so the program will...
Thomas Jarosch [Mon, 21 Sep 2009 09:58:51 +0000]
Restructured source file list. Created list for header files, so the program will recompile on header changes, too

14 years agoSplit into smaller cmake files
Thomas Jarosch [Mon, 21 Sep 2009 09:57:52 +0000]
Split into smaller cmake files

14 years agolint settings: Don't complain about redeclaration of Service::Ptr
Thomas Jarosch [Mon, 21 Sep 2009 09:29:03 +0000]
lint settings: Don't complain about redeclaration of Service::Ptr

14 years agoNo need for ; after a namespace declaration
Thomas Jarosch [Mon, 21 Sep 2009 09:26:04 +0000]
No need for ; after a namespace declaration

14 years agoDeleted example config files.
Bjoern Sikora [Mon, 21 Sep 2009 10:05:49 +0000]
Deleted example config files.

14 years agoCreated example config files for each service in examples_config/*.
Bjoern Sikora [Mon, 21 Sep 2009 10:02:52 +0000]
Created example config files for each service in examples_config/*.

14 years agoAdded compiler option -j2.
Bjoern Sikora [Mon, 21 Sep 2009 09:59:17 +0000]
Added compiler option -j2.

14 years agoBugfix: Catch also generic program_options error.
Bjoern Sikora [Mon, 21 Sep 2009 09:53:20 +0000]
Bugfix: Catch also generic program_options error.
Don't use pointer to std::list<int>, make a copy.

14 years agoBugfix: Don't test for NULL pointer of fixed sized character array.
Bjoern Sikora [Mon, 21 Sep 2009 09:32:37 +0000]
Bugfix: Don't test for NULL pointer of fixed sized character array.

14 years agoBugfix: We need a virtual destructor for the interface.
Bjoern Sikora [Mon, 21 Sep 2009 09:31:54 +0000]
Bugfix: We need a virtual destructor for the interface.

14 years agoImproved cmake CMakeLists.txt.
Bjoern Sikora [Fri, 18 Sep 2009 15:52:48 +0000]
Improved cmake CMakeLists.txt.

14 years agoFixed includes.
Bjoern Sikora [Fri, 18 Sep 2009 15:51:01 +0000]
Fixed includes.
Fixed BOOST::SERIALIZATION linking error after fixed includes.

14 years agoGet rid of the compiler warning about strict aliasing rule.
Bjoern Sikora [Fri, 18 Sep 2009 09:09:22 +0000]
Get rid of the compiler warning about strict aliasing rule.

14 years agoImproved shared_pointer handling. Use swap instead of copy and reset().
Bjoern Sikora [Fri, 18 Sep 2009 08:19:43 +0000]
Improved shared_pointer handling. Use swap instead of copy and reset().

14 years agoAdded logging for external logging failures and removed unneccessary statements.
Bjoern Sikora [Thu, 17 Sep 2009 16:16:56 +0000]
Added logging for external logging failures and removed unneccessary statements.

14 years agoLast steps on DHS service.
Bjoern Sikora [Thu, 17 Sep 2009 15:35:49 +0000]
Last steps on DHS service.

14 years agoBugfix: Avoid curl from segfaulting when CurlErrBuff is filled. Allocate CurlErrBuff...
Bjoern Sikora [Thu, 17 Sep 2009 15:17:31 +0000]
Bugfix: Avoid curl from segfaulting when CurlErrBuff is filled. Allocate CurlErrBuff with CURL_ERROR_SIZE.

14 years agoDo not use ostringstream if not really needed.
Bjoern Sikora [Thu, 17 Sep 2009 14:43:19 +0000]
Do not use ostringstream if not really needed.

14 years agoUpdate A record. An update operation is not available, an IP update must be done...
Bjoern Sikora [Thu, 17 Sep 2009 13:30:53 +0000]
Update A record. An update operation is not available, an IP update must be done through DELRR and ADDRR.

14 years agoAvoid typedefs in header files if not really necessary.
Bjoern Sikora [Wed, 16 Sep 2009 09:59:58 +0000]
Avoid typedefs in header files if not really necessary.

14 years agoImplemented ODS protocol.
Bjoern Sikora [Tue, 15 Sep 2009 15:36:32 +0000]
Implemented ODS protocol.
Added net_helper and corresponding classes.

14 years agoAdded Util::parse_status_code().
Bjoern Sikora [Tue, 15 Sep 2009 15:35:29 +0000]
Added Util::parse_status_code().

14 years agoGeneralized print_http_not_authorized to print_service_not_authorized.
Bjoern Sikora [Tue, 15 Sep 2009 15:30:09 +0000]
Generalized print_http_not_authorized to print_service_not_authorized.
Added Log messages.

14 years agoBugfix: Free up memory in httphelper.
Bjoern Sikora [Tue, 15 Sep 2009 15:28:23 +0000]
Bugfix: Free up memory in httphelper.
Bugfix: Init ProxyPort in config.cpp.

14 years agoRefactoring: Renamed class IPHelper to a more meaningful name IPAddrHelper.
Bjoern Sikora [Wed, 9 Sep 2009 13:55:02 +0000]
Refactoring: Renamed class IPHelper to a more meaningful name IPAddrHelper.

14 years agoAdded error handling in Util::compute_md5_digest and avoided using of C functions...
Bjoern Sikora [Wed, 9 Sep 2009 12:55:11 +0000]
Added error handling in Util::compute_md5_digest and avoided using of C functions like sprintf.

14 years agoAdded implementation of gnudip protocol.
Bjoern Sikora [Tue, 8 Sep 2009 17:08:55 +0000]
Added implementation of gnudip protocol.
Added util class to compute md5 sum (wrapper class which uses high level C interface openssl/evp.h).
Adapted all perform_update member functions.

14 years agoAdded regex tests to test if given IP is within a private range.
Bjoern Sikora [Mon, 7 Sep 2009 16:37:50 +0000]
Added regex tests to test if given IP is within a private range.

14 years agoRenamed within refactoring class naming.
Bjoern Sikora [Mon, 7 Sep 2009 16:37:03 +0000]
Renamed within refactoring class naming.

14 years agoRefactoring unexpected part two: Class naming adopted to I2N coding style ;-).
Bjoern Sikora [Mon, 7 Sep 2009 14:53:40 +0000]
Refactoring unexpected part two: Class naming adopted to I2N coding style ;-).

14 years agoRefactoring: Class renaming. All service implementaion classes should start with...
Bjoern Sikora [Mon, 7 Sep 2009 14:33:34 +0000]
Refactoring: Class renaming. All service implementaion classes should start with service_.

14 years agoAdded implementation of service zoneedit.
Bjoern Sikora [Mon, 7 Sep 2009 13:41:57 +0000]
Added implementation of service zoneedit.

14 years agoAdded implementation for tzo.
Bjoern Sikora [Mon, 7 Sep 2009 12:53:35 +0000]
Added implementation for tzo.

14 years agoNormalized perform_update method. Improved readability.
Bjoern Sikora [Mon, 7 Sep 2009 11:32:50 +0000]
Normalized perform_update method. Improved readability.

14 years agoUse boost::algorithm::string::split for splitting strings into tokens.
Bjoern Sikora [Mon, 7 Sep 2009 09:48:50 +0000]
Use boost::algorithm::string::split for splitting strings into tokens.

14 years agoFirst shot on easydns.
Bjoern Sikora [Fri, 4 Sep 2009 15:59:44 +0000]
First shot on easydns.
Implemented checking of configured hostname for service, must contain at least a domain part and a tld.

14 years agoAdded implementation of dyns service.
Bjoern Sikora [Thu, 3 Sep 2009 14:41:11 +0000]
Added implementation of dyns service.

14 years agoNo need to initialize strings with "".
Bjoern Sikora [Thu, 3 Sep 2009 12:34:11 +0000]
No need to initialize strings with "".
Init basic member variables via initializer list.

14 years agoInit member variables via initializer list in object constructor
Thomas Jarosch [Thu, 3 Sep 2009 11:14:57 +0000]
Init member variables via initializer list in object constructor

14 years agoNo need to init empty string classes - they already contain an empty string
Thomas Jarosch [Thu, 3 Sep 2009 11:12:02 +0000]
No need to init empty string classes - they already contain an empty string

14 years agoAdded constructor to use if auth options are encoded into the url.
Bjoern Sikora [Thu, 3 Sep 2009 10:58:57 +0000]
Added constructor to use if auth options are encoded into the url.

14 years agoDynDNS config.
Bjoern Sikora [Thu, 3 Sep 2009 10:48:59 +0000]
DynDNS config.

14 years agoImplemented dyndns service.
Bjoern Sikora [Thu, 3 Sep 2009 10:46:57 +0000]
Implemented dyndns service.
Added user agent info to curl operations.
Added access to CurlWritedataBuff.
Bug fix: Do not append IP to member BaseUrl.

14 years agoImplemented curl error handling. Improved httphelper. Enhanced dhs protocol handling.
Bjoern Sikora [Thu, 3 Sep 2009 08:35:10 +0000]
Implemented curl error handling. Improved httphelper. Enhanced dhs protocol handling.

14 years agoFirt shot on DHS Protocol implementation. At this point only Error handling is missing.
Bjoern Sikora [Wed, 2 Sep 2009 10:01:17 +0000]
Firt shot on DHS Protocol implementation. At this point only Error handling is missing.

14 years agoConcetptionally each service needs it's own HTTPHelper class.
Bjoern Sikora [Tue, 1 Sep 2009 10:01:15 +0000]
Concetptionally each service needs it's own HTTPHelper class.

14 years agoIntroduced HTTPHelper class to easily perform HTTP operations within services.
Bjoern Sikora [Tue, 1 Sep 2009 09:38:21 +0000]
Introduced HTTPHelper class to easily perform HTTP operations within services.
Ensured that config reload will re-init all helper classes.

14 years agoAdded ability to log warnings to external program defined via config.
Bjoern Sikora [Thu, 27 Aug 2009 16:03:35 +0000]
Added ability to log warnings to external program defined via config.

14 years agoImproved conf file and cmd option parsing and corresponding logging.
Bjoern Sikora [Wed, 26 Aug 2009 09:45:11 +0000]
Improved conf file and cmd option parsing and corresponding logging.

14 years agoCURLOPT_PROXY is avaiting a NULL terminated C string (char *), so we have to give...
Bjoern Sikora [Wed, 26 Aug 2009 08:25:51 +0000]
CURLOPT_PROXY is avaiting a NULL terminated C string (char *), so we have to give it in the old-fashioned way.

14 years agoImplemented first part of http proxy ability.
Bjoern Sikora [Tue, 25 Aug 2009 16:01:08 +0000]
Implemented first part of http proxy ability.

14 years agoImproved logging and added code to handle failed dns lookup of cached dns record.
Bjoern Sikora [Tue, 25 Aug 2009 14:56:42 +0000]
Improved logging and added code to handle failed dns lookup of cached dns record.

14 years agoAdded DNS Rechecking of DynDNS Hostname after DNS record ttl timeout.
Bjoern Sikora [Tue, 25 Aug 2009 14:05:31 +0000]
Added DNS Rechecking of DynDNS Hostname after DNS record ttl timeout.

14 years agoNamed all parameters in headers' function prototypes.
Bjoern Sikora [Tue, 25 Aug 2009 09:46:13 +0000]
Named all parameters in headers' function prototypes.

14 years agoImproved shut down behaviour.
Bjoern Sikora [Tue, 25 Aug 2009 08:55:37 +0000]
Improved shut down behaviour.

14 years agoFirst steps in redesign:
Bjoern Sikora [Tue, 18 Aug 2009 12:37:35 +0000]
First steps in redesign:
    - Config is loading config only and holding configuration members
    - Updater is the gateway between all classes
    - Serviceholder from now on holds Services and OldServices and is responsible for serialization and deserialization
    - SerializeServiceContainer adopted the operations from Serviceholder and is only familiar to Serviceholder

14 years agoAdded cmake search for curl.
Bjoern Sikora [Mon, 17 Aug 2009 16:19:56 +0000]
Added cmake search for curl.

14 years agoIntroduced new Service members: UpdateInterval and MaxUpdatesWithinInterval.
Bjoern Sikora [Mon, 17 Aug 2009 15:53:43 +0000]
Introduced new Service members: UpdateInterval and MaxUpdatesWithinInterval.
Implemented logic to avoid too much updates within interval.

14 years agoSmall STL usage improvement
Thomas Jarosch [Mon, 17 Aug 2009 09:14:14 +0000]
Small STL usage improvement

14 years agoImplemented determining IP through WEBCHECK URL.
Bjoern Sikora [Thu, 13 Aug 2009 15:57:11 +0000]
Implemented determining IP through WEBCHECK URL.

14 years agoIndroduced new config options for use of ipv6 and ip webcheck url's.
Bjoern Sikora [Wed, 12 Aug 2009 14:43:27 +0000]
Indroduced new config options for use of ipv6 and ip webcheck url's.

14 years agoSeparated Service update into update and perform_update.
Bjoern Sikora [Tue, 11 Aug 2009 15:27:43 +0000]
Separated Service update into update and perform_update.
Improved logging.
Prepared support for IPv6.

14 years agoIntroduced new class IPHelper which should perform DNS and webcheck IP queries.
Bjoern Sikora [Tue, 11 Aug 2009 14:36:47 +0000]
Introduced new class IPHelper which should perform DNS and webcheck IP queries.

14 years agoFinally a string manipulating boost header was found ;-).
Bjoern Sikora [Tue, 11 Aug 2009 07:55:53 +0000]
Finally a string manipulating boost header was found ;-).
Replaced own insecure to_lower with boost::algorithm::string::to_lower_copy.

14 years agoDeclared all non member manipulating methods as const, so compiler can optimize.
Bjoern Sikora [Tue, 11 Aug 2009 07:43:04 +0000]
Declared all non member manipulating methods as const, so compiler can optimize.

14 years agoCommented all config options for testing purposes and added next TODO's.
Bjoern Sikora [Mon, 10 Aug 2009 16:09:03 +0000]
Commented all config options for testing purposes and added next TODO's.

14 years agoSeparated init of daemon mode into extra function.
Bjoern Sikora [Mon, 10 Aug 2009 15:39:07 +0000]
Separated init of daemon mode into extra function.

14 years agoConvert protocol to lower case.
Bjoern Sikora [Mon, 10 Aug 2009 15:20:34 +0000]
Convert protocol to lower case.

14 years agoGeneralized return values. 0 indicates success, -1 failure.
Bjoern Sikora [Mon, 10 Aug 2009 14:40:06 +0000]
Generalized return values. 0 indicates success, -1 failure.

14 years agoAdded and improved some error handling.
Bjoern Sikora [Mon, 10 Aug 2009 14:35:06 +0000]
Added and improved some error handling.

14 years agoFixed variable naming to I2N coding style.
Bjoern Sikora [Mon, 10 Aug 2009 10:50:02 +0000]
Fixed variable naming to I2N coding style.
Now we have camel's as MemBer.
      _
  .--' |
 / _ ^ |
(_/ `\ |     .--.   .--.
     ) |    /    \ /    \
    /  |  /`      `      '.
   |   '-'           /     \
   \                |      |\
    \    /          \      /\|
     \  / `'-----'``.\    /
     |||              \\ |
     ((|               ((|
     |||               |||
    //_(              //_(

14 years agoImproved readability (bool online_mode becomes is_online).
Bjoern Sikora [Mon, 10 Aug 2009 10:29:13 +0000]
Improved readability (bool online_mode becomes is_online).
Replaced numeric representation for bool with true/false keywords.

14 years agoCorrected include's in header files.
Bjoern Sikora [Mon, 10 Aug 2009 10:25:41 +0000]
Corrected include's in header files.
Corrected typedef's in header files.

14 years agoStarted with boost/serialization error handling.
Bjoern Sikora [Mon, 10 Aug 2009 08:36:47 +0000]
Started with boost/serialization error handling.

14 years agoStart PC-lint 9.00c options file
Thomas Jarosch [Mon, 10 Aug 2009 08:26:01 +0000]
Start PC-lint 9.00c options file

14 years agoAdded some code remarks
Thomas Jarosch [Mon, 10 Aug 2009 08:13:45 +0000]
Added some code remarks

14 years agoImplemented logic to avoid recently redefined Services from expiring their update...
Bjoern Sikora [Fri, 7 Aug 2009 15:53:23 +0000]
Implemented logic to avoid recently redefined Services from expiring their update timeout.
This is done by holding (serialize/deserialize) old (not active) Services in a internal list,
until their update timeout is expired or the same Service is redefined (values copied from old service).

14 years agoReplaced Options_description * with shared_ptr.
Bjoern Sikora [Fri, 7 Aug 2009 14:38:28 +0000]
Replaced Options_description * with shared_ptr.

14 years agoNow serializing list of shared pointers instead of list of Service*.
Bjoern Sikora [Fri, 7 Aug 2009 14:20:44 +0000]
Now serializing list of shared pointers instead of list of Service*.