[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Partysip-dev] sendto in udp.c
From: |
Jun Miyoshi |
Subject: |
[Partysip-dev] sendto in udp.c |
Date: |
Mon, 08 Mar 2004 21:02:47 +0900 |
Hello.
I'm sorry if it is a problem only in my environment.
I was not able to receive response to "REGISTER".
When the error was looked at, it was set to "invalid argument"
by "sendto."
I changed the line-895 of udp.c into the line-896.
Then, response can be received now.
It is set to "HAVE_GETADDRINFO is defined" in my environment.
It seems that the size of "struct ppl_sockaddr" is too large.
<partysip-2.1.1/plugin/udp/udp.c>
799 #ifdef HAVE_GETADDRINFO
800 struct addrinfo *addrinfo;
801 struct ppl_sockaddr addr;
802 #else
893 #else
894 sock = ctx->out_socket;
895 i = sendto (sock, (const void *) buf, strlen (buf), 0,
896 /* (struct sockaddr *) &addr, sizeof (addr)); */
897 (struct sockaddr *) &addr, sizeof (struct sockaddr));
898
899 #endif
<partysip-2.1.1/ppl/unix/ppl/ppl_dns.h>
89 #ifdef HAVE_GETADDRINFO
90 struct ppl_sockaddr {
91 u_char ss_len;
92 u_char ss_family;
93 u_char padding[128 - 2];
94 };
95 #endif
--- my environment ---
% uname -a
SunOS ultra25 5.9 Generic_112233-11 sun4u sparc SUNW,UltraAX-i2
% gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.3.2
- [Partysip-dev] sendto in udp.c,
Jun Miyoshi <=