Looks ok (although the changes in address.c, hash.c and pbuf.c are actually
different fixes).

I had been working on the code to create a separate module, syslog.c, which
would encapsulate is.  The advantage is that it lets us use the gcc version
to create the table if it's available.  Also the comments in the routine I
was working on 'splain why this is so ugly...

I've attached the code - I wasn't able to test it in a non-gcc environment,
but - perhaps with the USE_SYSLOG trick, it would work?  The advantage is
that we don't have to maintain the code except for the Solaris environment -
everything else I've seen has gcc and the facilitynames structure is
automatically created...

One thing - you MUST not include ntop.h - that include syslog.h without the
define set and then it won't work...

-----Burton

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
Of [EMAIL PROTECTED]
Sent: Monday, May 27, 2002 10:55 AM
To: [EMAIL PROTECTED]
Subject: [Ntop-dev] New ntop commit (author deri)


Update of /export/home/ntop/ntop
In directory jabber:/tmp/cvs-serv499

Modified Files:
        address.c globals-core.c hash.c main.c ntop.h pbuf.c
        webInterface.c
Log Message:
Added fix/workaround to the patch of Burton about the syslog.
As not every system has defined facilitynames I have defined it (it is named
facilityNames). This is somehow a risky operation but I can't find a better
solution.



_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Attachment: syslog.c
Description: Binary data

Reply via email to