From: Vladislav Yasevich <vlad@zk3.dec.com>
Subject: Re: bind assigning invalid source address to udp packet
Date: Tue, 25 Mar 2003 22:16:28 GMT [thread overview]
Message-ID: <3E80D53C.7020101@zk3.dec.com> (raw)
In-Reply-To: bb464ba4.0303201954.12b15dc3@posting.google.com
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.
prev parent reply other threads:[~2003-03-25 22:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-21 3:54 bind assigning invalid source address to udp packet wrapper
2003-03-25 22:16 ` Vladislav Yasevich [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox