home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / sysv386 / 12568 < prev    next >
Encoding:
Internet Message Format  |  1992-07-28  |  2.3 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!ncar!noao!arizona!menze
  2. From: menze@cs.arizona.edu (Ed Menze)
  3. Newsgroups: comp.unix.sysv386
  4. Subject: direct ethernet access in Dell SVR4
  5. Message-ID: <19762@optima.cs.arizona.edu>
  6. Date: 29 Jul 92 04:08:52 GMT
  7. Sender: news@cs.arizona.edu
  8. Organization: U of Arizona, CS Dept, Tucson
  9. Lines: 50
  10.  
  11. Last week I wrote:
  12.  
  13. | I'm using Dell Unix (SVR4) on a 386 and am trying to write a
  14. | user-level program which can access all ethernet packets received by
  15. | my host.  I talked to Dell technical support and they pointed me at an
  16. | ethernet device file which they said provided such access via a
  17. | STREAMS interface.
  18. | I haven't made much use of STREAMS before, so please let me know if
  19. | this question itself doesn't make sense.
  20. | After reading some of the SVR4 STREAMS documentation and poking around
  21. | some header files, I'm guessing that this ethernet device file
  22. | probably uses the STREAMS "Data Link Provider Interface," but I can't
  23. | find a description of this interface beyond a header file which
  24. | defines some DLPI structures.  
  25. |
  26. | ...
  27.  
  28. Several people directed me to Unix International who claim they will
  29. send me a DLPI document within a week or so.  I thank you for your
  30. help.  But I'd like to back up for a second.
  31.  
  32. In the third paragraph of my previous message, I mention that "I'm
  33. guessing" about the link between the ethernet device file (/dev/eth0)
  34. and DLPI.  I haven't actually confirmed this, so before I embark on
  35. trying to figure out the DLPI spec, I'd like to re-ask my question
  36. more generally:
  37.  
  38.     I'm using Dell Unix (SVR4) on a 386 and am trying to write a
  39.     user-level program which can access all (or a selected subset)
  40.     of the ethernet packets received by my host.  How can I do
  41.     this?
  42.     
  43. I.e., can someone either confirm that accessing /dev/eth0 via DLPI is
  44. the right way to go or else point me at another possible solution?
  45.  
  46. I got a couple of responses suggesting tcpdump.  I took a look at it,
  47. but it seems to require either the Berkeley Packet Filter or Sun's
  48. Network Interface Tap.  Nothing in the BPF documentation would seem to
  49. imply that it is feasible to install it in a SVR4 system.
  50.  
  51. So if anyone would care to address the above more-general question in
  52. a SVR4/Dell Unix context, I would greatly appreciate it.
  53.  
  54. Thanks,
  55.  
  56. Ed Menze
  57. menze@cs.arizona.edu
  58.  
  59.