home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / internal / 2061 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  3.8 KB

  1. Path: sparky!uunet!spool.mu.edu!uwm.edu!caen!uflorida!travis.csd.harris.com!gcx1.ssd.csd.harris.com!donh
  2. From: donh@gcx1.ssd.csd.harris.com (Don Holzworth)
  3. Newsgroups: comp.unix.internals
  4. Subject: Re: if(7) network driver info needed
  5. Message-ID: <1gnipvINNfqq@travis.csd.harris.com>
  6. Date: 16 Dec 92 15:42:55 GMT
  7. References: <1992Dec11.193348.6590@sfu.ca> <1992Dec15.220621.15826@spectrum.xerox.com>
  8. Reply-To: donh@gcx1.ssd.csd.harris.com (Don Holzworth)
  9. Distribution: ssd
  10. Organization: Harris Computer Systems Division, Fort Lauderdale, FL
  11. Lines: 76
  12. NNTP-Posting-Host: gcx1.ssd.csd.harris.com
  13.  
  14. In article <1992Dec15.220621.15826@spectrum.xerox.com>, collins.escp10@xerox.com (Anthony Collins) writes:
  15. |> In article 6590@sfu.ca, tdyck@fraser.sfu.ca (tReVoR) writes:
  16. |> > I am developing a STREAMS device driver under Microport Unix SVR4 on a
  17. |> > 486 machine.  The driver is for a network card (ISDN).
  18. |> > 
  19.         (Stuff deleted)  
  20. |> > 
  21. |> > In the manual page for if(7), it says that "network interfaces used by the
  22. |> > Internet Protocol (IP) must be STREAMS devices conforming to the Datalink
  23. |> > Provider Interface (DLPI)."  Does anyone know what the DLPI is and where
  24. |> > more information can be found about it?
  25. |> > 
  26.                 (More stuff deleted)
  27. |> 
  28. |> [Back to my words now]This document describes an interface between the data link
  29. |> layer and the network layer in the OSI seven layer model.  I got the specification
  30. |> from its publisher, Unix International, for free.  You can call Unix International
  31. |> at 1-800-848-6495 or 1-201-263-8400.  Their address is:
  32. |> 
  33. |> Unix International
  34. |> Worldwide Headquarters
  35. |> Waterview Corporate Centre
  36. |> 20 Waterview Boulevard
  37. |> Parsippany, NJ 07054
  38. |> U.S.A.
  39. |> 
  40. |> The specification gives a thorough description of the interface, but it doesn't do
  41. |> much to tell how to use the interface (i.e. when certain calls should be made or
  42. |> expected, etc.)  It serves as a good reference manual if you already have a good idea
  43. |> on how the network layer should connect to the data link layer.  I don't know of any
  44. |> books that specifically explain this interaction, but any good computer networking 
  45. |> book that references the OSI 7 layer model should.
  46. |> 
  47. |> Hope this helps,
  48. |> 
  49. |> ---
  50. |> Anthony Collins
  51. |> Xerox Corporation
  52. |> Internet: collins.escp10@xerox.com
  53. |> 
  54. |> 
  55.  
  56. Please also note the version of DLPI. The latest is 2.0, however
  57. any current IP implementation is probably coded to 1.3. Actually,
  58. it's probably coded to 1.2 and 1.3 is just a release that
  59. corrected typos in the documentation. 
  60.  
  61. As for what you do, the first thing a data link layer device driver
  62. writer must decide is if the driver is a style 1 or style 2 driver.
  63. Style 1 uses the minor number to choose a physical interface,
  64. while style 2 uses a specific DLPI command (attach) to choose the
  65. interface. Assuming a style 2 provider, the commands the
  66. user would issue are:
  67.    open
  68.    bind
  69.    attach
  70.    dlunitdata_req  (for IP which uses connectionless link layer)
  71.  
  72. Of course, a dl_info_req may be thrown in at any time.
  73.  
  74. The real problem with writing the driver is knowing what ioctl commands
  75. the network layer (IP) is going to send. For that you need info from
  76. the IP developer, or maybe you can just look at the include files (I've
  77. done that successfully, once).
  78.  
  79. Good Luck,
  80. ------------------------------------------------------------------------------
  81.  #####    ####   #    #  #    #    |  Don Holzworth
  82.  #    #  #    #  ##   #  #    #    |  Harris Computer Systems Division
  83.  #    #  #    #  # #  #  ######    |  2101 W. Cypress Creek Rd.
  84.  #    #  #    #  #  # #  #    #    |  Ft. Lauderdale, Fl. 33309
  85.  #    #  #    #  #   ##  #    #    |  (305) 977-5563
  86.  #####    ####   #    #  #    #    |  e-mail: donh@travis.csd.harris.com
  87.                                    |
  88.                   "Sow the wind, reap the whirlwind."
  89. ------------------------------------------------------------------------------
  90.