From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,3675cdd524134fba X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-03-25 14:16:29 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!nntp-relay.ihug.net!ihug.co.nz!news.compaq.com!news.cpqcorp.net!53ab2750!not-for-mail Message-ID: <3E80D53C.7020101@zk3.dec.com> From: Vladislav Yasevich User-Agent: Mozilla/5.0 (X11; U; OSF1 alpha; en-US; rv:0.9.9) Gecko/20020318 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.unix.tru64 Subject: Re: bind assigning invalid source address to udp packet References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 25 Mar 2003 22:16:28 GMT NNTP-Posting-Host: 16.140.64.49 X-Complaints-To: abuse@HP.com X-Trace: news.cpqcorp.net 1048630588 16.140.64.49 (Tue, 25 Mar 2003 14:16:28 PST) NNTP-Posting-Date: Tue, 25 Mar 2003 14:16:28 PST Organization: Hewlett-Packard Company Xref: archiver1.google.com comp.unix.tru64:9763 Yes, This is a known problem on Tru64 and will be fixed in the next patchkit for Tru64 V5.1A and V5.1B. Also, as the Stevens' Network Programming Book, recomends you should not really be binding to a multicast address. It is sufficient to bind to inaddr_any and simply join the multicast group using IP_ADDMEMBERSHIP socket option. If you do it this way, you'll be able to send and recieve on the socket correctly. A better way is to have a sender and a receiver socket. -vlad wrapper wrote: > I am having trouble getting tru64 to properly create udp multicast > packets for a particular application which needs to send and receive > multicast data on the same socket. The trouble seems to be in the > bind() socket call, as it seems be responsible in some fashion for > filling the source address of the udp packet. When I bind() to the > socket, and send that data to the network, it is not received by the > other hosts on the network. I did some digging (actually I used the > packet sniffer program ethereal) and it revealed that the packets are > on the network, but the source address of the packets is filled in > with the multicast address and port. According to RFC 1112, "an > incoming datagram with IP host group address in its source address > field is quietly discarded." So, by that logic, it seems that when a > kernel that follows the RFC sees my multicast data, it just drops it > on the floor. Therefore, it seems that tru64 is filling in my udp > packets with an invalid source address that their own kernel will > reject! Does anyone know a way around this, or why someone would make > bind do this? Just for comparison, linux is okay with bind() and it > fills in the interface unicast address instead of the multicast > address.