If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Broadcast with RAW Socket ???

Can we send a Broadcast Packet via RAW Socket ?? I am unable to send it as "sendto" is returning err-101(Network Unreachable). I already Enabled the Broadcast Socket Option and IPHDR_INCL Options. Any Suggestions ??

Re: Broadcast with RAW Socket ???

Thanks S_M_A for the link. That's informational.I am following all the Rules mentioned in the link. Socket type was DGRAM & Machine is having Valid IP Address & I am filling the IPHEADER with that IP Address and also enabled BROADCAST Option & IPHDR_INCL Options. Destination address was also filled up as "BROADCAST" Address & trying to send the packet via "sendto". Still; no Luck for me .Please let me know ; if U want me to send the code ?

Re: Broadcast with RAW Socket ???

Finally able to send the Broadcast via RAW Socket. Actual issue is not with Code. It is with System not having Default Gateway. Another Query was; How can I send the VLAN Information to application via RAW Sockets ?? Kernel is removing the 4 bytes VLAN Information and sending the remaining Ether/IP/UDP information. VLAN ID is not going to application.

* The Perfect Platform for Game Developers: Android
Developing rich, high performance Android games from the ground up is a daunting task. Intel has provided Android developers with a number of tools that can be leveraged by Android game developers.

* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.