home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / hp / 14523 < prev    next >
Encoding:
Text File  |  1993-01-05  |  2.2 KB  |  50 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.93Jan5213613@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: Tue, 5 Jan 1993 20:36:13 GMT
  10. Lines: 38
  11.  
  12. I posted this one right before Christmas, and didn't get a single response
  13. (except for one "me too, please"). Maybe I'll have better luck now that we
  14. are all back at work again :-)
  15.  
  16. Steinar
  17. ----------------------------------------------------------------------
  18. I'm trying to send Ethernet packets from a user level process, using the
  19. interface defined in lan(7). The system is a 433s, running 8.0. I have tried
  20. the examples in /usr/netdemo/LLA, and these work just fine. But as soon as I
  21. try to send Ethernet packets instead of 802.3 packets, I get an EINVAL. What
  22. I'm doing:
  23.  
  24.     - The machine has 2 ethernet interfaces. lanscan shows that lan0 is
  25.     configured for Ether and 802.3, lan1 is configured for Ether only.
  26.  
  27.     - I'm trying to use the example from /usr/netdemo/LLA/nput.c, and
  28.     substituting LOG_TYPE_FIELD instead of LOG_DSAP in the ioctl. The
  29.     ioctl call returns EINVAL.
  30.  
  31.     - The Ether type field that I'm using is legal according to the
  32.     lan(7) man page, it is *not* one of the reserved ones. I have tried
  33.     several different Ether types, but always get the same error.
  34.  
  35.     - lan(7) specifies that EINVAL will be returned for several reasons,
  36.     one of them being that a LOG_TYPE_FIELD was sent to an 802.3 device.
  37.     I'm speculating that this may be what the system is trying to tell
  38.     me, but I don't really know...
  39.  
  40. I have assumed that one simply needs to use LOG_TYPE_FIELD, and specify an
  41. interface that has Ether encapsulation enabled, in order to send Ethernet
  42. packets as opposed to 802.3 packets. Is there something else that needs to
  43. be done also? Does somebody have a working example of how to send Ethernet
  44. packets?
  45.  
  46. Steinar Haug, system/networks administrator
  47. SINTEF DELAB, University of Trondheim, NORWAY
  48. Email: Steinar.Haug@delab.sintef.no, 
  49.     sthaug@idt.unit.no, steinar@tosca.er.sintef.no
  50.