CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2005
    Location
    Ellesmera
    Posts
    427

    Network Connection Test

    I am doing a network connection test program but I have no idea how to do the DHCP.

    For dns, gateway I am using ping command called by popen.
    For DHCP , i was told to to a dhcp discovery. Basically the DHCP client is already running in DHCP server.

    I read somewhere that ifdown, ifup command can be used to but have no idea how. Any idea ?

    I am making the program in C ( Linux 2.6 ).
    *** Con Tu Adios, Te Llevas, Mi Corazon***

    Traveling Encoder...

  2. #2
    Join Date
    May 2006
    Location
    Indonesia & Japan
    Posts
    399

    Re: Network Connection Test

    not really understand what you want to do and what you want to accomplish. Please be more specific when you post the question
    henky
    ----------------------------------
    henky@nok.co.id is not my email address anymore...
    Jangan Pernah Menyerah

  3. #3
    Join Date
    May 2005
    Location
    Ellesmera
    Posts
    427

    Re: Network Connection Test

    Quote Originally Posted by henky@nok.co.id View Post
    not really understand what you want to do and what you want to accomplish. Please be more specific when you post the question
    hello. I want to do a connection test on DHCP.

    I am trying to execute the following function:

    ifdown eth0
    ifup eth0

    then afterwards check if connection to DCHP server was successful. I tried it already but unfortunately the current internal ethernet on the board am working now is a bit defective, so it hangs up after i execute the down command.

    The next question is that, if the commands where successful, which file(s) tells me that the connection was successfully executed ?

    /etc/resolve.conf?



    Its a busybox , so commands and resources are very limited.

    The command : "udhcpc" might also be used but I am still trying to understand it now.
    *** Con Tu Adios, Te Llevas, Mi Corazon***

    Traveling Encoder...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured