home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.misc
- Path: sparky!uunet!dynsim1!hoang1
- From: hoang1@litwin.com (Dave Jackson)
- Subject: ioctl request SIOCGARP fail in SCO (ARP protocol)
- Message-ID: <1992Aug28.145427.128@litwin.com>
- Organization: Litwin Process Automation
- Date: Fri, 28 Aug 1992 14:54:27 GMT
- Lines: 34
-
- Hi,
- I'm writing a program to read the ARP cache.
- But I have the problem when using SIOCGARP in SCO/ODT ver 2.0:
-
- .
- .
- .
- int soc;
- struct arpreq ar;
- .
- .
- .
- /*
- ** Execute the IOCTL to read the ARP cache, if the host is not
- ** currently in the cache, this ioctl will fail.
- */
- if ((i = ioctl( soc, SIOCGARP, &ar )) != 0)
-
- It's always failed and return:
- errno == ENXIO
- ioctl: No such device or address
-
- But if I test in DEC5000/200 Ultrix 4.2 or SUN/sparc OS 4.1.1 is ok.
-
- Do I miss anything in SCO env.
-
- I will post or mail my source code if you request.
-
- Thanks in advance,
-
- Ted Hoang
- Litwin Process Automation
- Email:hoang1@dynsim1.litwin.com
-
-