Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - broadcast using 255.255.255.255 actually sends 192.168.0.255: Page 1 of 9 (9 Items)
   
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