[syslog-ng]source unix-dgram - Unsupported address family

Carlos Velasco carlosev@newipnet.com
Fri, 10 Jan 2003 12:35:14 +0100


More into this,

I have added a message whenever function sockaddr2address_info is invoked:

struct address_info *sockaddr2address_info(size_t addr_len,
                                           struct sockaddr *addr)
{
werror("io.c: sockaddr2info(): PASA");
        if (addr_len =3D=3D 0)
                return NULL;

And it match in all cases. Whenever a message is sent to syslog with=
 unix-dgram, both lines are logged.
If I use unix-stream only the "PASA" line is logged.
Something looks like wrong with unix-dgram, can anyone help me with the=
 purpose of this sockaddr2address_info function?

Jan 10 12:30:05 syslog:err syslog-ng: syslog-ng[21398]: io.c:=
 sockaddr2info(): PASA
Jan 10 12:30:05 syslog:err syslog-ng: syslog-ng[21398]: io.c:=
 sockaddr2info(): Unsupported address family 26144 (addrlen=3D256).
Jan 10 12:30:05 syslog:err syslog-ng: syslog-ng[21398]: io.c:=
 sockaddr2info(): PASA
Jan 10 12:30:05 syslog:err syslog-ng: syslog-ng[21398]: io.c:=
 sockaddr2info(): Unsupported address family 26144 (addrlen=3D256).
Jan 10 12:30:09 syslog:err syslog-ng: syslog-ng[21398]: io.c:=
 sockaddr2info(): PASA
Jan 10 12:30:09 syslog:err syslog-ng: syslog-ng[21398]: io.c:=
 sockaddr2info(): Unsupported address family 26144 (addrlen=3D256).

Regards,
Carlos Velasco

*********** REPLY SEPARATOR  ***********

On 09/01/2003 at 20:18 Carlos Velasco wrote:

>Hi,
>
>I have successfully compiled libol-0.3.6 and syslog-ng-1.5.24
>
>All works ok, messages are logged.
>However, when I use source unix-dgram for /dev/log, I see these messages
>in the syslog logs
>
>Jan  9 17:07:26 syslog:err syslog-ng: syslog-ng[179]: io.c:
>sockaddr2info(): Unsupported address family 64000 (addrlen=3D256).
>Jan  9 17:07:36 syslog:err syslog-ng: syslog-ng[179]: io.c:
>sockaddr2info(): Unsupported address family 64000 (addrlen=3D256).
>Jan  9 17:07:36 syslog:err syslog-ng: syslog-ng[179]: io.c:
>sockaddr2info(): Unsupported address family 64000 (addrlen=3D256).
>Jan  9 17:07:37 syslog:notice syslog-ng: syslog-ng[179]: syslog-ng version
>1.5.24 going down
>Jan  9 17:00:29 syslog:notice syslog-ng: syslog-ng[4220]: syslog-ng
>version 1.5.24 starting
>Jan  9 17:00:30 syslog:err syslog-ng: syslog-ng[4220]: io.c:
>sockaddr2info(): Unsupported address family 35703 (addrlen=3D256).
>Jan  9 17:00:30 syslog:err syslog-ng: syslog-ng[4220]: io.c:
>sockaddr2info(): Unsupported address family 62912 (addrlen=3D256).
>Jan  9 17:00:31 syslog:err syslog-ng: syslog-ng[4220]: io.c:
>sockaddr2info(): Unsupported address family 62912 (addrlen=3D256).
>Jan  9 17:00:31 syslog:err syslog-ng: syslog-ng[4220]: io.c:
>sockaddr2info(): Unsupported address family 62912 (addrlen=3D256).
>Jan  9 17:00:31 syslog:err syslog-ng: syslog-ng[4220]: io.c:
>sockaddr2info(): Unsupported address family 62912 (addrlen=3D256).
>Jan  9 17:01:44 syslog:err syslog-ng: syslog-ng[4220]: io.c:
>sockaddr2info(): Unsupported address family 62912 (addrlen=3D256).
>
>As you can see, numbers change when I stop and start syslog-ng.
>Also, if I use unix-stream, it works, but I'm using klogd 1.4.1 and need
>dgram.
>
>My system is:
>Linux 2.4.20
>glibc 2.3.1
>
>Any suggestions?
>
>Regards,
>Carlos Velasco
>
>
>
>_______________________________________________
>syslog-ng maillist  -  syslog-ng@lists.balabit.hu
>https://lists.balabit.hu/mailman/listinfo/syslog-ng
>Frequently asked questions at http://www.campin.net/syslog-ng/faq.html