X-Spam-Check-By: sourceware.org Message-ID: <44E424EE.4070700@sh.cvut.cz> Date: Thu, 17 Aug 2006 10:12:30 +0200 From: =?ISO-8859-1?Q?V=E1clav_Haisman?= User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Is cygwin-ml softwere altering message content? Content-Type: multipart/mixed; boundary="------------090003070608070102060209" X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com --------------090003070608070102060209 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have noticed that sometimes my PGP signed messages do not arrive intact from cygwin-ml. The attached two files show the difference between good message, that was sent as Bcc to myself, and bad message that I got from cygwin-ml. If you diff the two text files you will notice additional =2D escape sequences in the bad message. Is this a cygwin-ml software problem? - -- Vaclav Haisman -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEVAwUBROQk7UNOZDESBK8FAQI1twf/fbbnbBIt4NKOg+nHu2YXPLNBJJONjlxi BE2uZX83QX1vNMVr5JpNBmjijhfX9nU2H9O5hAZB4y8vb+U4zrLflaqMuMNxwaN4 UOfdmcOSbzO+hLnyJPGUl9EIWB+1UlycNnNQ73L02bGLnxF1kIQFixNTEufTQ8g8 PHK9rjCtuVTsDpPcQfrwAGEbZvxqAVAkKpNCTqJqSKZvjlgwOE7F7JFEWSuWpP56 zUSHHmZOE3b48oTgiTyvxZs9/1oqVfLfMmiFDXFlyuOKR384LIA95kvdy86E3Qfx MZ8ELAFK3m5qOtaWCFq+onTs4E+x8hQ1rpD/sNGCET4UAwM3RdSArw== =MRr4 -----END PGP SIGNATURE----- --------------090003070608070102060209 Content-Type: text/plain; name="msg-bad.msg" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="msg-bad.msg" From - Thu Aug 17 09:50:42 2006 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: X-Original-To: wilx AT logout DOT sh DOT cvut DOT cz Delivered-To: wilx AT logout DOT sh DOT cvut DOT cz Received: from service.sh.cvut.cz (service.sh.cvut.cz [147.32.127.214]) by logout.sh.cvut.cz (Postfix) with ESMTP id F172D61D02 for ; Thu, 17 Aug 2006 09:42:56 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by service.sh.cvut.cz (Postfix) with ESMTP id E3EFD1A33C8 for ; Thu, 17 Aug 2006 09:42:56 +0200 (CEST) Received: from service.sh.cvut.cz ([127.0.0.1]) by localhost (service [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06278-07 for ; Thu, 17 Aug 2006 09:42:52 +0200 (CEST) Received: from sourceware.org (sourceware.org [209.132.176.174]) by service.sh.cvut.cz (Postfix) with SMTP id 6332D1A335B for ; Thu, 17 Aug 2006 09:42:49 +0200 (CEST) Received: (qmail 12158 invoked by alias); 17 Aug 2006 07:42:45 -0000 Received: (qmail 12143 invoked by uid 22791); 17 Aug 2006 07:42:44 -0000 X-Spam-Check-By: sourceware.org Received: from service.sh.cvut.cz (HELO service.sh.cvut.cz) (147.32.127.214) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 17 Aug 2006 07:42:37 +0000 Received: from localhost (localhost [127.0.0.1]) by service.sh.cvut.cz (Postfix) with ESMTP id A2F251A33C8; Thu, 17 Aug 2006 09:42:35 +0200 (CEST) Received: from service.sh.cvut.cz ([127.0.0.1]) by localhost (service [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06278-06; Thu, 17 Aug 2006 09:42:32 +0200 (CEST) Received: from logout.sh.cvut.cz (logout.sh.cvut.cz [147.32.127.203]) by service.sh.cvut.cz (Postfix) with ESMTP id 3E0C01A335B; Thu, 17 Aug 2006 09:42:32 +0200 (CEST) Received: from [192.168.111.24] (localhost [127.0.0.1]) by logout.sh.cvut.cz (Postfix) with ESMTP id A4B1861D02; Thu, 17 Aug 2006 09:42:30 +0200 (CEST) Message-ID: <44E41DD8 DOT 6070205 AT sh DOT cvut DOT cz> Date: Thu, 17 Aug 2006 09:42:16 +0200 From: =?ISO-8859-1?Q?V=E1clav_Haisman?= User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Cygwin 1.5.18: Problem using setsockopt() for multicast References: In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig5519F22C9E9E873C4177F451" X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Virus-Scanned: by amavisd-new at sh.cvut.cz X-Spam-Status: No, hits=-2.6 tagged_above=-255.0 required=5.0 tests=BAYES_00 X-Spam-Level: --------------enig5519F22C9E9E873C4177F451 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Alessandro Saffiotti wrote: > Hi there, > > I ran into the following problem when using setsockopt to create a > multicast receiver in my own application. Here is the relevant part > of the code: > > ---------------------------------------------------------------------- > . > . > . > tcp_broadcast_receiver =3D socket(PF_INET,SOCK_DGRAM,IPPROTO_IP); > > memset(&imreq, 0, sizeof(struct ip_mreq)); > imreq.imr_multiaddr.s_addr =3D inet_addr("227.1.3.5"); > imreq.imr_interface.s_addr =3D INADDR_ANY; > > if(setsockopt(tcp_broadcast_receiver, IPPROTO_IP, IP_ADD_MEMBERSHIP,=20 > (const void *)&imreq, sizeof(struct ip_mreq)) !=3D 0) > perror("Error joining multicast group"); > . > . > . > ---------------------------------------------------------------------- > > It compiles ok, but when I run it setsockopt fails producing the > following report: > > Error joining multicast group: Invalid argument > > I have noted that a similar problem was reported long time ago, when > support for multicast was not implemented, but I understand that this > support is not available. > > I have also read the discussion about the conflicting values for > constants between winsock1 and winsock2. I have tried to replace > IP_ADD_MEMBERSHIP by hardcoding either 5 (winsock1) or 12 (winsok2), > but I get the same behavior. > > I run Cygwin 1.5.18 on Windows XP pro SP2. > > Any hints? > Thanks! > > Alessandro Saffiotti >=20=20=20 I do not know whether it works with 1.5.21 but you should always test with the latest version before you create a problem report. -- Vaclav Haisman --------------enig5519F22C9E9E873C4177F451 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEVAwUBROQd5UNOZDESBK8FAQJerQgAlNvx1qF2naSGz3ZnS+N24RYFtX9NTTBp HcdQch4LRlX9aZ97oZ0Fn5Cv3VhisnVTNyahN+NjnBNkY82mO1nh5LTN6tuk6GO4 2XRMtk/wa9PDoFn8tT8/M1q6/ETsn/sNx1h2gNxFnu71Fd5LwXJLdaXBOM1FME7N 61GzSEVEiOmym6gNJOHiom/l6B4Tkg1r6zM71jRDc32V4tVGhJynj2jXEMdFDJ0Y /s6aaWuE0YR6NIGQN/F89F5uTnUeKAXMIeDLhhEDC4/k8VzD+AB+jtyQzGETsnF5 uhNFbZPBW7SHDbR5tAC+yblSzVQt5WnANvpIN2D5GvtcSfSAImwZiQ== =WlAp -----END PGP SIGNATURE----- --------------enig5519F22C9E9E873C4177F451-- --------------090003070608070102060209 Content-Type: text/plain; name="msg-good.msg" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="msg-good.msg" From - Thu Aug 17 09:50:45 2006 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: X-Original-To: wilx AT logout DOT sh DOT cvut DOT cz Delivered-To: wilx AT logout DOT sh DOT cvut DOT cz Received: from service.sh.cvut.cz (service.sh.cvut.cz [147.32.127.214]) by logout.sh.cvut.cz (Postfix) with ESMTP id AF30461E87 for ; Thu, 17 Aug 2006 09:42:35 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by service.sh.cvut.cz (Postfix) with ESMTP id A2F251A33C8; Thu, 17 Aug 2006 09:42:35 +0200 (CEST) Received: from service.sh.cvut.cz ([127.0.0.1]) by localhost (service [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06278-06; Thu, 17 Aug 2006 09:42:32 +0200 (CEST) Received: from logout.sh.cvut.cz (logout.sh.cvut.cz [147.32.127.203]) by service.sh.cvut.cz (Postfix) with ESMTP id 3E0C01A335B; Thu, 17 Aug 2006 09:42:32 +0200 (CEST) Received: from [192.168.111.24] (localhost [127.0.0.1]) by logout.sh.cvut.cz (Postfix) with ESMTP id A4B1861D02; Thu, 17 Aug 2006 09:42:30 +0200 (CEST) Message-ID: <44E41DD8 DOT 6070205 AT sh DOT cvut DOT cz> Date: Thu, 17 Aug 2006 09:42:16 +0200 From: =?ISO-8859-1?Q?V=E1clav_Haisman?= User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Cygwin 1.5.18: Problem using setsockopt() for multicast References: In-Reply-To: X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig5519F22C9E9E873C4177F451" X-Virus-Scanned: by amavisd-new at sh.cvut.cz X-Spam-Status: No, hits=-5.9 tagged_above=-255.0 required=5.0 tests=ALL_TRUSTED, BAYES_00 X-Spam-Level: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig5519F22C9E9E873C4177F451 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Alessandro Saffiotti wrote: > Hi there, > > I ran into the following problem when using setsockopt to create a > multicast receiver in my own application. Here is the relevant part > of the code: > > ---------------------------------------------------------------------- > . > . > . > tcp_broadcast_receiver =3D socket(PF_INET,SOCK_DGRAM,IPPROTO_IP); > > memset(&imreq, 0, sizeof(struct ip_mreq)); > imreq.imr_multiaddr.s_addr =3D inet_addr("227.1.3.5"); > imreq.imr_interface.s_addr =3D INADDR_ANY; > > if(setsockopt(tcp_broadcast_receiver, IPPROTO_IP, IP_ADD_MEMBERSHIP, = > (const void *)&imreq, sizeof(struct ip_mreq)) !=3D 0) > perror("Error joining multicast group"); > . > . > . > ---------------------------------------------------------------------- > > It compiles ok, but when I run it setsockopt fails producing the > following report: > > Error joining multicast group: Invalid argument > > I have noted that a similar problem was reported long time ago, when > support for multicast was not implemented, but I understand that this > support is not available. > > I have also read the discussion about the conflicting values for > constants between winsock1 and winsock2. I have tried to replace > IP_ADD_MEMBERSHIP by hardcoding either 5 (winsock1) or 12 (winsok2), > but I get the same behavior. > > I run Cygwin 1.5.18 on Windows XP pro SP2. > > Any hints? > Thanks! > > Alessandro Saffiotti > =20 I do not know whether it works with 1.5.21 but you should always test with the latest version before you create a problem report. -- Vaclav Haisman --------------enig5519F22C9E9E873C4177F451 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEVAwUBROQd5UNOZDESBK8FAQJerQgAlNvx1qF2naSGz3ZnS+N24RYFtX9NTTBp HcdQch4LRlX9aZ97oZ0Fn5Cv3VhisnVTNyahN+NjnBNkY82mO1nh5LTN6tuk6GO4 2XRMtk/wa9PDoFn8tT8/M1q6/ETsn/sNx1h2gNxFnu71Fd5LwXJLdaXBOM1FME7N 61GzSEVEiOmym6gNJOHiom/l6B4Tkg1r6zM71jRDc32V4tVGhJynj2jXEMdFDJ0Y /s6aaWuE0YR6NIGQN/F89F5uTnUeKAXMIeDLhhEDC4/k8VzD+AB+jtyQzGETsnF5 uhNFbZPBW7SHDbR5tAC+yblSzVQt5WnANvpIN2D5GvtcSfSAImwZiQ== =WlAp -----END PGP SIGNATURE----- --------------enig5519F22C9E9E873C4177F451-- --------------090003070608070102060209 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ --------------090003070608070102060209--