From e8f8f096a2cd3a49e904aa1218ce29e05413f283 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Sun, 29 Jan 2006 10:26:48 +0000 Subject: [PATCH] Added logging for possible IBC neighbour address change --- ChangeLog | 4 ++++ mbtask/taskibc.c | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index d6b5e61d..9796ad65 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,10 @@ $Id$ v0.83.11 28-Jan-2006 + mbtask: + Added logging for possible detection of dialup IBC neighbour + address change. + v0.83.10 25-Jan-2006 - 28-Jan-2006 diff --git a/mbtask/taskibc.c b/mbtask/taskibc.c index 3f293c43..bf178acd 100644 --- a/mbtask/taskibc.c +++ b/mbtask/taskibc.c @@ -1785,6 +1785,14 @@ void receiver(struct servent *se) * FQDN to the one from the setup, so we continue to use the * dynamic FQDN. */ + if (strcmp(tnsl->resolved, hostname)) { + Syslog('r', "IBC: old resolved %s new resolved %s state %s", + tnsl->resolved, hostname, ncsstate[tnsl->state]); + /* + * This would be the moment to reset this neighbour + * Double check state: waitpwd or call ? + */ + } strncpy(tnsl->resolved, hostname, 63); inlist = TRUE; Syslog('r', "IBC: setting '%s' to dynamic dns '%s'", tnsl->resolved, tnsl->server);