I have a problem sending multicast packets in my linux system. I have a UDP
program which needs to send multicast packets addressed to 18.104.22.168 (which
is a clss D address). If I call 'sendto' with this address, i get a "network
unreachable" error. However, if I add this address to the router table with
route add -host 22.214.171.124 eth0
then it works ok.
My 'ifconfig' command shows 'multicast' enabled.
Shouldn't the system automatically figure out that this is a multicast
address and do the right thing. Why should I add each multicast address that
I am interested in to the router table.
Could somebody tell me what I am missing here?.