Added logging for possible IBC neighbour address change

This commit is contained in:
Michiel Broek 2006-01-29 10:26:48 +00:00
parent d0adc2869c
commit e8f8f096a2
2 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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);