[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
multicast sendto bug???
Hello!
Attched file is a very simple program to send a multicast packet, it can NOT work in OpenBSD, but works fine in FreeBSD.
I had src/sys updated to the main branch last night, and recompiled the kernel, but
it doesnot work.
obsd34:/temp>gcc xxx.c
obsd34:/temp>./a.out
IP_MULTICAST_TTL = 1
IP_MULTICAST_LOOP = 0
IP_MULTICAST_IF =10.0.0.226
sendto: Host is down
obsd34:/temp>route add 224.0.0.55 10.0.0.226
add host 224.0.0.55: gateway 10.0.0.226
obsd34:/temp>./a.out
IP_MULTICAST_TTL = 1
IP_MULTICAST_LOOP = 0
IP_MULTICAST_IF =10.0.0.226
obsd34:/temp>route delete 224.0.0.55
delete host 224.0.0.55
obsd34:/temp>./a.out
IP_MULTICAST_TTL = 1
IP_MULTICAST_LOOP = 0
IP_MULTICAST_IF =10.0.0.226
sendto: Host is down
It seems that the route dest 224.0.0.55 must be add, why?
I do NOT have to add this route in FreeBSD,
and no document says I have to add it.
Any suggestion?
Thanks
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
[demime 0.98d removed an attachment of type application/octet-stream which had a name of xxx.c]