home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / programm / 4488 < prev    next >
Encoding:
Text File  |  1992-08-30  |  976 b   |  44 lines

  1. Newsgroups: comp.unix.programmer
  2. Path: sparky!uunet!dynsim1!hoang1
  3. From: hoang1@litwin.com (Dave Jackson)
  4. Subject: ioctl request SIOCGARP fail in SCO (ARP protocol)
  5. Message-ID: <1992Aug28.145531.273@litwin.com>
  6. Organization: Litwin Process Automation
  7. Date: Fri, 28 Aug 1992 14:55:31 GMT
  8. Lines: 34
  9.  
  10. Hi,
  11. I'm writing a program to read the ARP cache.
  12. But I have the problem when using SIOCGARP in SCO/ODT ver 2.0:
  13.   
  14.   .
  15.   .
  16.   .
  17.   int soc;
  18.   struct arpreq ar;
  19.   .
  20.   .
  21.   .
  22.   /*
  23.   **  Execute the IOCTL to read the ARP cache, if the host is not
  24.   **  currently in the cache, this ioctl will fail.
  25.   */
  26.   if ((i = ioctl( soc, SIOCGARP, &ar )) != 0)
  27.  
  28.   It's always failed and return:
  29.     errno == ENXIO
  30.     ioctl: No such device or address
  31.  
  32. But if I test in DEC5000/200 Ultrix 4.2 or SUN/sparc OS 4.1.1 is ok.
  33.  
  34. Do I miss anything in SCO env.
  35.  
  36. I will post or mail my source code if you request.
  37.  
  38. Thanks in advance,
  39.  
  40. Ted Hoang
  41. Litwin Process Automation
  42. Email:hoang1@dynsim1.litwin.com
  43.  
  44.