Hello Federico,

thanks, that is only a change of log level, it does not harm, just an error message in the log. I will update the sources.

Cheers,
Daniel


On 10/30/05 19:41, Federico Giannici wrote:
I just installed OpenSER 1.0.0 on OpenBSD 3.7 amd64. Previously I was using SER 0.9.4.

When I launched OpenSER it give the following error:

 0(0) ERROR: udp_init: setsockopt(IP_MULTICAST_LOOP): Invalid argument


Comparing your source with the SER one, I tryed the attached patch and it solved the problem.


Bye.

------------------------------------------------------------------------

--- udp_server.c-orig   Sun Oct 30 18:33:14 2005
+++ udp_server.c        Sun Oct 30 18:33:17 2005
@@ -314,8 +314,10 @@
        if (addr->s.sa_family==AF_INET){
                if (setsockopt(sock_info->socket, IPPROTO_IP, IP_MULTICAST_LOOP,
                                                &mcast_loopback, 
sizeof(mcast_loopback))==-1){
-                       LOG(L_ERR, "ERROR: udp_init: setsockopt(IP_MULTICAST_LOOP): 
%s\n",
-                                               strerror(errno));
+                       LOG(L_WARN, "WARNING: udp_init: 
setsockopt(IP_MULTICAST_LOOP):"
+                                               " %s\n", strerror(errno));
+                       /* it's only a warning because we might get this error 
if the
+                         network interface doesn't support multicasting -- 
andrei */
                        goto error;
                }
                if (mcast_ttl>=0){
------------------------------------------------------------------------

_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel

_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel

Reply via email to