From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,3675cdd524134fba,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-03-20 19:54:53 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dhalser@yahoo.com (wrapper) Newsgroups: comp.unix.tru64 Subject: bind assigning invalid source address to udp packet Date: 20 Mar 2003 19:54:52 -0800 Organization: http://groups.google.com/ Message-ID: NNTP-Posting-Host: 64.178.96.44 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1048218893 19720 127.0.0.1 (21 Mar 2003 03:54:53 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 21 Mar 2003 03:54:53 GMT Xref: archiver1.google.com comp.unix.tru64:9743 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.