home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / hp / 14262 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.9 KB  |  44 lines

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!mcsun!sunic!aun.uninett.no!Steinar.Haug
  3. From: Steinar.Haug@delab.sintef.no (Steinar Haug)
  4. Subject: How can I send Ethernet packets from a user process?
  5. Message-ID: <STEINAR.HAUG.92Dec19224835@delab.sintef.no>
  6. Sender: news@aun.uninett.no
  7. Nntp-Posting-Host: tosca.er.sintef.no
  8. Organization: SINTEF DELAB, Trondheim, Norway.
  9. Date: Sat, 19 Dec 1992 21:48:35 GMT
  10. Lines: 32
  11.  
  12. I'm trying to send Ethernet packets from a user level process, using the
  13. interface defined in lan(7). The system is a 433s, running 8.0. I have tried
  14. the examples in /usr/netdemo/LLA, and these work just fine. But as soon as I
  15. try to send Ethernet packets instead of 802.3 packets, I get an EINVAL. What
  16. I'm doing:
  17.  
  18.     - The machine has 2 ethernet interfaces. lanscan shows that lan0 is
  19.     configured for Ether and 802.3, lan1 is configured for Ether only.
  20.  
  21.     - I'm trying to use the example from /usr/netdemo/LLA/nput.c, and
  22.     substituting LOG_TYPE_FIELD instead of LOG_DSAP in the ioctl. The
  23.     ioctl call returns EINVAL.
  24.  
  25.     - The Ether type field that I'm using is legal according to the
  26.     lan(7) man page, it is *not* one of the reserved ones. I have tried
  27.     several different Ether types, but always get the same error.
  28.  
  29.     - lan(7) specifies that EINVAL will be returned for several reasons,
  30.     one of them being that a LOG_TYPE_FIELD was sent to an 802.3 device.
  31.     I'm speculating that this may be what the system is trying to tell
  32.     me, but I don't really know...
  33.  
  34. I have assumed that one simply needs to use LOG_TYPE_FIELD, and specify an
  35. interface that has Ether encapsulation enabled, in order to send Ethernet
  36. packets as opposed to 802.3 packets. Is there something else that needs to
  37. be done also? Does somebody have a working example of how to send Ethernet
  38. packets?
  39.  
  40. Steinar Haug, system/networks administrator
  41. SINTEF DELAB, University of Trondheim, NORWAY
  42. Email: Steinar.Haug@delab.sintef.no, 
  43.     sthaug@idt.unit.no, steinar@tosca.er.sintef.no
  44.