home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!mintaka.lcs.mit.edu!bloom-picayune.mit.edu!news.mit.edu!brian
- From: brian@kokom.mit.edu (Brian McAllister)
- Newsgroups: comp.unix.ultrix
- Subject: How to get phys-addr of ln0 if DECnet is running ?
- Message-ID: <BRIAN.92Aug14191951@kokom.mit.edu>
- Date: 15 Aug 92 00:19:51 GMT
- Sender: news@athena.mit.edu (News system)
- Organization: Bates LINAC, MIT
- Lines: 26
- Nntp-Posting-Host: kokom.mit.edu
-
-
- System: DS5000/200, Ultrix 4.2
-
- Normally, if one wishes to get the physical address of the ethernet
- interface, one can do something like this:
-
- ioctl(socket_id, SIOCRPHYSADDR, &ifreq_struct);
-
- When DECnet is running, it changes the physical address to one that
- reflects the DECnet address of the system. However, the system call
- given above still returns the original address of the controller,
- which is useless.
-
- The only workaround we have found so far involves opening a
- packetfilter and making this call on it:
-
- ioctl(pfdev, EIOCDEVP, &endevp_struct);
-
- but this only works if the packetfilter is configured in the kernal.
-
- So: How does one get the real address when DECnet is running ?
-
- --
- ----
- Brian McAllister Internet: mcallister@mit.edu
- BITNET: BRIAN@MITBATES
-