Date: Mon, 20 Oct 2003 10:57:12 -0700 From: Lars Eggert <larse@ISI.EDU> To: sarat chandra Annadata <saratchandra_a@yahoo.com> Cc: julian@elischer.org Subject: Re: Help Broadcasting a UDP packet on the LAN:URGENT Message-ID: <3F9421F8.7050101@isi.edu> In-Reply-To: <20031020174751.60464.qmail@web20805.mail.yahoo.com> References: <20031020174751.60464.qmail@web20805.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" -- Lars Eggert <larse@isi.edu> USC Information Sciences Institute [-- Attachment #2 --] 0 *H 010 + 0 *H 080fErtcvE.0 *H 010 UZA10UWestern Cape10U Cape Town10U Thawte Consulting1(0&UCertification Services Division1$0"UThawte Personal Freemail CA1+0) *H personal-freemail@thawte.com0 000830000000Z 040827235959Z010 UZA10UWestern Cape10U Cape Town10 U Thawte10UCertificate Services1(0&UPersonal Freemail RSA 2000.8.3000 *H 0 32c %E>nx'gڈD)c5*mp<ܮto034qmOe KaU5u'rװ|CBPQ<9TIf - ki N0L0)U"0 010UPrivateLabel1-2970U0 0U0 *H 1KG]qSl]y=&b""I'{9$ *8PUl LGlX1B li+@]jy.%݊ Z<D&iHΥbb090 vo0 *H 010 UZA10UWestern Cape10U Cape Town10 U Thawte10UCertificate Services1(0&UPersonal Freemail RSA 2000.8.300 030801172929Z 040731172929Z0T10 UEggert1 0U*Lars10ULars Eggert10 *H larse@isi.edu0"0 *H 0 >ן~H(ԢGV׆־25B03ݰת^RIH =%J kA^R)y H80P~qrU|c~\;ҋ^哪!֍&d@Cd"O"f$FrGe|r<z"%h+Z`3<}̘}9ʮcnb6RX ٫e~XgK7,ìEYU? V0T0*+e!0 00L2uMyffBNUbNJJcdZ2s0U0 larse@isi.edu0U0 0 *H 5Kkt[@jj:Fg Xj(8yPo!})5M[ ش]wʼnQd!GyFRiKd!8h\7γSD`a[qiY+Gqn?!090 vo0 *H 010 UZA10UWestern Cape10U Cape Town10 U Thawte10UCertificate Services1(0&UPersonal Freemail RSA 2000.8.300 030801172929Z 040731172929Z0T10 UEggert1 0U*Lars10ULars Eggert10 *H larse@isi.edu0"0 *H 0 >ן~H(ԢGV׆־25B03ݰת^RIH =%J kA^R)y H80P~qrU|c~\;ҋ^哪!֍&d@Cd"O"f$FrGe|r<z"%h+Z`3<}̘}9ʮcnb6RX ٫e~XgK7,ìEYU? V0T0*+e!0 00L2uMyffBNUbNJJcdZ2s0U0 larse@isi.edu0U0 0 *H 5Kkt[@jj:Fg Xj(8yPo!})5M[ ش]wʼnQd!GyFRiKd!8h\7γSD`a[qiY+Gqn?!100010 UZA10UWestern Cape10U Cape Town10 U Thawte10UCertificate Services1(0&UPersonal Freemail RSA 2000.8.30 vo0 + 0 *H 1 *H 0 *H 1 031020175712Z0# *H 1B5D0ngU0R *H 1E0C0 *H 0*H 0 *H @0+0 *H (0 +710010 UZA10UWestern Cape10U Cape Town10 U Thawte10UCertificate Services1(0&UPersonal Freemail RSA 2000.8.30 vo0*H 1010 UZA10UWestern Cape10U Cape Town10 U Thawte10UCertificate Services1(0&UPersonal Freemail RSA 2000.8.30 vo0 *H &O a@b[Y<vrV˹MTTurmpr01ꏀ> HV"H*Q頔*I<nZ/3[JcOL+05`#7eAT4N"4=>+=οE )_p"_;xr_-9PL>iCroFFՠD]Zh5O~>Qox%trtȏk
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F9421F8.7050101>
