On Tue, 20 Apr 1999, I. Forbes wrote:
>Hello Mike 
>
>I have got diamon-0.7 up and running together with diald 0.16.5. on 
>a Debian 2.0 Linux dial-up box.  The client is from the 
>"win95/release" directory in the dialmon-0.7.tgz file and is running 
>on a Windows 98 client machine. Everything works well except for 
>the log file feature.  
>
>If I telnet into the linux box and give it an "I" command, it responds 
>with a lines "LOG START"  a number of lines  of the format "LOG 
>nnn|nnn||nnn|nnn" and then "LOG END" (this syntax may not be 
>100%).

This is a bijou bugette (ok, is a bug :-) with 0.7. I use dialmon
with multiple dialmon configs, so lines are like

LOG nnn|nnn|config|nnn|nnn

The line is parsed using strtok, with treats the || as a single
separator - so the code thinks the line is duff and drops it. If
you are using the source, have a look at the sprintf at about line
129 in logging.c, and change it to :
 
       sprintf (line, "%ld|%ld|%s|%d|%d\n",
                        stamp,
                        duration,
                        ((conf == NULL) || (conf[0] == 0)) ? "Unknown" : conf,
                        tx, rx) ;

This ensures that there are never two |s next to each other. 

>
>>From the man page this would appear to be the correct behaviour, 
>so I suspect the problem is with the Win 95 client.
>
>The client has the default string "%a %b %d %H:%M" in the "Log 
>Format" configuration box.
>
>Am I doing something wrong?  Is anybody using this feature?
>

Regards
Mike

-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]

Reply via email to