Help Broadcasting a UDP packet on the LAN:URGENT

From: sarat chandra Annadata (saratchandra_a_at_yahoo.com)
Date: 10/20/03

  • Next message: Lars Eggert: "Re: Help Broadcasting a UDP packet on the LAN:URGENT"
    Date: Mon, 20 Oct 2003 10:47:51 -0700 (PDT)
    To: freebsd-net@freebsd.org
    
    

    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"


  • Next message: Lars Eggert: "Re: Help Broadcasting a UDP packet on the LAN:URGENT"

    Relevant Pages

    • Help Broadcasting a UDP packet on the LAN:URGENT
      ... I am need of some urgent techinical help to pull me out of a little problem. ... SO_BROADCAST FLAG. ... Do you Yahoo!? ...
      (freebsd-net)
    • Liberals save freedom of speech by one vote
      ... assumption that burning a flag kills people, or gets them mad enough to ... Real world consequenses A, B, C, D, E, F and G result from flag ... That is a flat out lie. ... Last time I had to pull up examples you lied about not ...
      (rec.martial-arts)
    • Re: Help Broadcasting a UDP packet on the LAN:URGENT
      ... UNIX Network Programming ... > I am need of some urgent techinical help to pull me out of a little problem. ... > Sarat Chandra. ...
      (freebsd-net)
    • Re: Please pull x86-64 bug fixes
      ... Please pull 'for-linus' from ... Ignore alignment checks in kernel ... be in violation of the whole definition of the AC flag. ...
      (Linux-Kernel)
    • RE: Windows auditing
      ... script go through and pull that information out for ... several audits we go through annually. ... scripts to pull the info they asked for... ... Do you Yahoo!? ...
      (Security-Basics)