Tim Gessner
|
broadcast using 255.255.255.255 actually sends 192.168.0.255
|
Tim Gessner
09/23/2008 5:27 PM
post13908
|
broadcast using 255.255.255.255 actually sends 192.168.0.255
Ok, I really need help on this one. I have two nics and I want to broadcast to "255.255.255.255". What happens is that
when I use INADDR_BROADCAST I get 192.168.0.255, which is en0. The source address is 192.168.0.29.
I can deliberately broadcast using en1 in sendto with the broadcast address of en1, 192.168.75.255. But that is not
what I want to do.
What I want is to have a source IP of 192.168.75.80 (en1) and dest IP of 255.255.255.255. At least that is what I think
I want.
I have tried binding and IP_MULTICAST_IF. Nothing seems to change the source to en1 and nothing seems to make any
difference to the dest IP with the exception of changing sendto to the specific subnet. I have tried to sendto "255.255
.255.255" and it still sends to 192.168.0.255. This does not seem correct to me at all.
Can anyone help? Thanx
Tim
|
|
|