On Thu, Aug 12, 2004 at 08:26:27AM +0900, Jon Keating wrote:
> Hmm, First time that I've heard this.  Do you have a patch or should I redo 
> it? ;)

The patch is attached, but I bet there are some who would like to see it
configurable.

  Daniel
--- licq/src/socket.cpp Sat Aug  7 00:13:45 2004
+++ /tmp/socket.cpp     Thu Aug 12 08:18:45 2004
@@ -484,6 +484,11 @@
       return(false);
     }
 
+#ifdef IP_RECVERR
+    int j=1;
+    setsockopt(m_nDescriptor, IPPROTO_IP, IP_RECVERR, &j, sizeof(j));
+#endif
+
 #ifdef IP_PORTRANGE
     int i=IP_PORTRANGE_HIGH;
     if (setsockopt(m_nDescriptor, IPPROTO_IP, IP_PORTRANGE, &i, sizeof(i))<0)
@@ -523,6 +528,11 @@
     m_nErrorType = SOCK_ERROR_errno;
     return (false);
   }
+
+#ifdef IP_RECVERR
+  int j=1;
+  setsockopt(m_nDescriptor, IPPROTO_IP, IP_RECVERR, &j, sizeof(j));
+#endif
 
 #ifdef IP_PORTRANGE
   int i=IP_PORTRANGE_HIGH;

Attachment: pgpPYfNrrMIXJ.pgp
Description: PGP signature

Reply via email to