Help Broadcasting a UDP packet on the LAN:URGENT
Lars Eggert
larse at ISI.EDU
Mon Oct 20 10:57:15 PDT 2003
W. Richard Stevens
UNIX Network Programming
Prentice Hall
sarat chandra Annadata wrote:
> Hai,
> I am need of some urgent techinical help to pull me out of a little problem. I have been
> trying to broadcast a UDP packet(actually it is a DHCP offer packet) but
> havent' successfully done it sofar. The following is the descripttion
> about how I have been trying to do it.
> 1) I am creating a socket with sock_dgram option.
> 2)Next I am filling up the sockaddr_in structure, with IP address
> 255.255.255.255 and port number as DHCP client port number.
> 3)I am using the setsockopt call with at SOL_SOCKET level, with
> SO_BROADCAST FLAG.
> This call is not successfully returning.
> moreover I am successfully setting the flag at the IP-level in either
> case my send or sendto system calls fail.
>
> I want some guidance regarding this, I want to use only socket
> interface, in UNIX with C.
> Please pull me out of this, and I shall be grateful to you.
> A working piece of code will be of great help
> Thank you,
>
> Sincerely
> Sarat Chandra.
>
>
> ---------------------------------
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
--
Lars Eggert <larse at isi.edu> USC Information Sciences Institute
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3529 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20031020/6d347320/smime.bin
More information about the freebsd-net
mailing list