How to Get Host Ip Address programmatically

VxWorks

    Sponsored Links

    Next

  • 1. [VxW] Asking for sample codes for VxWorks
    Thank you the link provided by you was very helpful. Thanks and Regards Vikram.
  • 2. [VxW] about optimization in ppc604gnu
    I am programming with Tornado2.02 & vxWorks5.4.My code compiled by ppc604gnu with optimization level 3 takes 40us less than level none while running. Though it seems normally while running with optimized code, I am still afraid that there would be latent exception. How can I find the balance between speed and reliability? Or how do you think of the optimization of ppc604gnu? Thanks, Zhu Haitao
  • 3. Problems networking with vxsim on solaris
    Hi, I'm running a vxsim kernel on Solaris 2.8 on a Ultrasparc architecture (Ultra 80). I'm trying to establish a stream socket connection between the vxsim and a windows box. For some reason my networking on the vxsim side is not working. I thought I compiled the kernel to include all the necessary network support, but it still doesn't work. I can call hostAdd() to add my windows box to the host table, but every routeAdd() call I make returns ERROR. When I try to use the socket calls using hardcoded IP addresses, the connect(...) call also always returns error. Does anyone have any insight? Is the problem my kernel configuration? Thanks in advance. -- Ricardo J. Hassan II Software Engineering Technology Infusion Group Jet Propulsion Laboratory XXXX@XXXXX.COM
  • 4. visual studio integration
    In the FAQ, section 1.13, there is a description of using MS Visual Studio for building and managing VxWorks projects. Does anyone use this technique? Does it still work? Drawbacks? Comments? I would be using VS6. Thanks, Mark Zvilius

How to Get Host Ip Address programmatically

Postby gr8cric » Fri, 29 May 2009 19:02:01 GMT

Hi NetWorkers,

I know that with arpShow i can know the host (ipAddress) connected
with the target.

-> arpShow

LINK LEVEL ARP TABLE
destination      gateway            flags  Refcnt  Use
Interface
-------------------------------------------------------------------------------------------------
192.168.50.110     00:xx:xx:35:ca:1f  33686533  0       39
vxIf0
---------------------------------------------------------------------------------------------------
value = 0 = 0x0
->


Now my requirement is to use this host ip Address in my program. Since
this is just a print on the console, i dont know how to use this ip.
The host could be changing, so cannot hardcode to one particular
ipAddress.

Kindly suggest how to retreive the ipAddress programmatically.

Thanks,
Nesta


Return to VxWorks

 

Who is online

Users browsing this forum: No registered users and 6 guest