Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* bind assigning invalid source address to udp packet
@ 2003-03-21  3:54 wrapper
  2003-03-25 22:16 ` Vladislav Yasevich
  0 siblings, 1 reply; 2+ messages in thread
From: wrapper @ 2003-03-21  3:54 UTC (permalink / raw)


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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: bind assigning invalid source address to udp packet
  2003-03-21  3:54 bind assigning invalid source address to udp packet wrapper
@ 2003-03-25 22:16 ` Vladislav Yasevich
  0 siblings, 0 replies; 2+ messages in thread
From: Vladislav Yasevich @ 2003-03-25 22:16 UTC (permalink / raw)


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.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-03-25 22:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-21  3:54 bind assigning invalid source address to udp packet wrapper
2003-03-25 22:16 ` Vladislav Yasevich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox