VxWorks 6.x equivalents for sysctl_rtable


    Sponsored Links


  • 1. How to use BIOS INT 15 for memory sizing
    Hello, I'm starting to develop under VxWorks 6.1 on a Pentium BSP. I would like to modify the bootloader, replacing the sysPhysMemTop() code with something that calls BIOS INT15/E801 for memory sizing. So, the questions: 1) Are there VXworks related BIOS INT calls and register passing examples on the net? 2) is it possible to make that BIOS call from sysPhysMemTop() without switching to real mode? Are there examples showing how to do it? Thank you in advance Best Regards
  • 2. VxWorks 6.2 Workbench licensing..
    In changinig the license on my box from a local file (used during and after the installation) for Eclipse Workbench software to our license server, I changed the system date forwards. This was done to emulate the eval license expiring (above) - however when WB saw that the local license file was no longer valid it picked up the network license server with the future date. Now, if I set my system date back two days (to today) WindRiver Workbench grumbles that the license doesn't match data on the computer and won't start. Setting the date forward by two days solves the problem and the software launches fine. Does anyone have experience resetting the local license information on my box so that it attempts a 'clean' fetch from the server? Cheers, Duncan
  • 3. writing a pci bus driver
    hi all, i am new to writing a pci driver on vxworks.im stuck at "howto start" itself as far as codingis considered.i mean im unable to know how to use the interfaces though many are saying it is quite easy in vxworks.so can any of you please teach me the "starting steps" in writing a pci driver? thanks in advance, Ramakrishnaprasad.A
  • 4. Why dont RealTime Embedded programmers use Exception Handling?
    I have seen at several places that C++ programmers writing for RealTime Embedded applications dont use Exception Handling. They dont like Throw/catch concept. WHY?
  • 5. tt implementation
    Hi, I want to implement the "tt" command , so that I can get the list of nested routines. 21 tasks are running currently on my system, and I want to get the tasks transition status without going to shell. It would be of great help if you could point out how do I proceed for this. Please also let me know available links where it is implemented, if exists. best regards, Gaurav

VxWorks 6.x equivalents for sysctl_rtable

Postby softrealtime » Sat, 09 Jun 2007 04:05:12 GMT

Hello All,

Does anyone know if there is an equivalent sysctl (or other way) to
retrieve interface information in 6.x for vxworks 5.x call to
sysctl_rtable? This one just get the size for a later call to fill the
interface info.
 int mib[3];
 size_t data_size;

  mib[0] = AF_INET;
  mib[1] = NET_RT_IFLIST;
  mib[2] = 0;

  sysctl_rc = sysctl_rtable(mib, 3, NULL, &data_size, NULL, 0);

I have tried the following (and a couple of minor permutations) but
get an error ...

 int mib[6];
 size_t data_size;

  mib[0] = CTL_NET;
  mib[1] = PF_ROUTE;
  mib[2] = 0;
  mib[3] = AF_INET; /* Tried 0 here for all interfaces as well */
  mib[4] = NET_RT_IFLIST;
  mib[5] = 0;

  sysctl_rc = sysctl(mib, 6, NULL, &data_size, NULL, 0);



Return to VxWorks


Who is online

Users browsing this forum: No registered users and 13 guest