home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / ultrix / 6251 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  1.2 KB

  1. Path: sparky!uunet!olivea!mintaka.lcs.mit.edu!bloom-picayune.mit.edu!news.mit.edu!brian
  2. From: brian@kokom.mit.edu (Brian McAllister)
  3. Newsgroups: comp.unix.ultrix
  4. Subject: How to get phys-addr of ln0 if DECnet is running ?
  5. Message-ID: <BRIAN.92Aug14191951@kokom.mit.edu>
  6. Date: 15 Aug 92 00:19:51 GMT
  7. Sender: news@athena.mit.edu (News system)
  8. Organization: Bates LINAC, MIT
  9. Lines: 26
  10. Nntp-Posting-Host: kokom.mit.edu
  11.  
  12.  
  13. System: DS5000/200, Ultrix 4.2
  14.  
  15. Normally, if one wishes to get the physical address of the ethernet
  16. interface, one can do something like this:
  17.  
  18.     ioctl(socket_id, SIOCRPHYSADDR, &ifreq_struct);
  19.  
  20. When DECnet is running, it changes the physical address to one that
  21. reflects the DECnet address of the system.  However, the system call
  22. given above still returns the original address of the controller,
  23. which is useless.
  24.  
  25. The only workaround we have found so far involves opening a
  26. packetfilter and making this call on it:
  27.  
  28.     ioctl(pfdev, EIOCDEVP, &endevp_struct);
  29.  
  30. but this only works if the packetfilter is configured in the kernal.
  31.  
  32. So: How does one get the real address when DECnet is running ?
  33.  
  34. --
  35. ----
  36. Brian McAllister       Internet: mcallister@mit.edu
  37.                          BITNET: BRIAN@MITBATES
  38.