Find a DLPI Streams Reference

Find a DLPI Streams Reference

Post by Peter Howlet » Thu, 04 Apr 1996 04:00:00



Howdy, I am wondering how one goes about getting a reference
I found in a Solaris man page for DLPI stream. It is listed
at the bottom of the page as:

     For details on this  interface  refer  to  the  <sys/dlpi.h>
     header and to the STREAMS DLPI Specification, 800-6915-01.

The sys/dlpi.h file has all the typedefs and defines, very nice,
but I would like to find the mentioned reference as well. Any
idea what that number means?

--------------------------------------------------------------------
Peter Howlett                           Atlantic Systems Group

http://www.ASG.unb.ca/personal/ph.html       Phone: (506) 447-3050
PGP Key ID: 60F2EEC1                    Fax:   (506) 453-5004

 
 
 

Find a DLPI Streams Reference

Post by Doug Hugh » Fri, 05 Apr 1996 04:00:00


|> Howdy, I am wondering how one goes about getting a reference
|> I found in a Solaris man page for DLPI stream. It is listed
|> at the bottom of the page as:
|>
|>      For details on this  interface  refer  to  the  <sys/dlpi.h>
|>      header and to the STREAMS DLPI Specification, 800-6915-01.
|>
|> The sys/dlpi.h file has all the typedefs and defines, very nice,
|> but I would like to find the mentioned reference as well. Any
|> idea what that number means?
|>

I've got a copy at ftp.eng.auburn.edu:pub/doug/dlpi.ps.gz

--
____________________________________________________________________________
Doug Hughes                                     Engineering Network Services
System/Net Admin                                Auburn University


 
 
 

Find a DLPI Streams Reference

Post by Steve Ra » Fri, 05 Apr 1996 04:00:00




Quote:>Howdy, I am wondering how one goes about getting a reference
>I found in a Solaris man page for DLPI stream. It is listed
>at the bottom of the page as:

>     For details on this  interface  refer  to  the  <sys/dlpi.h>
>     header and to the STREAMS DLPI Specification, 800-6915-01.

>The sys/dlpi.h file has all the typedefs and defines, very nice,
>but I would like to find the mentioned reference as well. Any
>idea what that number means?

It looks like a document order number.  Check with your Sun sales
rep.

The spec used to be available from Unix International.  I don't
know who controls it now (maybe SCO?).  Alternate sources of
information on the DLPI are
        - The "STREAMS Modules and Drivers" manual published by
          USL/Univel in 1992 (the spec is reproduced in Chapter 11).
        - My book, Unix System V Network Programming (Addison-Wesley,
          1993.  ISBN # 0-201-56318-5).

Steve Rago

 
 
 

Find a DLPI Streams Reference

Post by Peter Howlet » Sat, 06 Apr 1996 04:00:00




> |> Howdy, I am wondering how one goes about getting a reference
> |> I found in a Solaris man page for DLPI stream. It is listed
> |> at the bottom of the page as:
> |>
> |>      For details on this  interface  refer  to  the  <sys/dlpi.h>
> |>      header and to the STREAMS DLPI Specification, 800-6915-01.
> |>
> |> The sys/dlpi.h file has all the typedefs and defines, very nice,
> |> but I would like to find the mentioned reference as well. Any
> |> idea what that number means?
> |>

> I've got a copy at ftp.eng.auburn.edu:pub/doug/dlpi.ps.gz

Many thanks for all the reply's. The above mentioned document
is _very_ complete. Also, Mr. Bobby Krupczak mentioned some
code from

  ftp://opcom.sun.ca/pub/drivers/dltest.tar.gz

which has some handy examples and a ps file with very nice
descriptions as well.

Although I have not seen Steve Rago's Unix System V network
programming book in the stores, it's also on my list of
'must get' lit.

--------------------------------------------------------------------
Peter Howlett                           Atlantic Systems Group

http://www.ASG.unb.ca/personal/ph.html  Phone: (506) 447-3050
PGP Key ID: 60F2EEC1                    Fax:   (506) 453-5004

 
 
 

Find a DLPI Streams Reference

Post by Peter Rad » Sun, 07 Apr 1996 04:00:00



Quote:>Howdy, I am wondering how one goes about getting a reference
>I found in a Solaris man page for DLPI stream. It is listed
>at the bottom of the page as:
>     For details on this  interface  refer  to  the  <sys/dlpi.h>
>     header and to the STREAMS DLPI Specification, 800-6915-01.
>The sys/dlpi.h file has all the typedefs and defines, very nice,
>but I would like to find the mentioned reference as well. Any
>idea what that number means?

These may be some sources for you:

1. Streams Modules And Drivers, UNIX SVR4.2, UNIX Press, 1992.
   (out of the UNIX SVR4.2 documentation set by USL; it contains
   all you want to know about DLPI - the Solaris 2.x is only
   a slightly modified version with upward compatibility).
   There is also a PostScript-Version of that text contained
   on the Solaris Driver Developer Kit.

2. How To Use DLPI, Neal Nuckolls, Sun White Paper, 1992.
   use archie, one reference is:
   ftp://ftp.ms.mff.cuni.cz/MIRRORS/ftp.std.com/obi/Standards/DLPI

cu,
Peter

 
 
 

1. DLPI & STREAMS: How...

The intention is to write a packet sniffer for svr4.
[ UnixWare SVR4.2 v1.0.3 +upbnu4, ne2k (ne200) or ee16 (intel EtherExpress) ]

It's known that svr4 implementations of network drivers are conformant to
DLPI specs (more or less).
The idea was to register all possible for my network DLSAPs
(i.e. "type" field of Ethernet packets; 8137 for Novell's,
0x800 and 0x806 for IP and arp respectivly) that would guarantee, as I thought,
those packets would come rigth to my application.
But after requesting info (DL_INFO_REQ), succesfully binding 8137 SAP and
turning on PROMISC ( ioctl ) mode I was trying to "getmsg" , but it hung...
What's wrong ?

PS: I dont have any books (or examples) on SVR4 Network Programming :(

__

Details:

  bind_req=(dl_bind_req_t*)malloc(sizeof(dl_bind_req_t));
  bind_req->dl_primitive=DL_BIND_REQ;
  bind_req->dl_sap=  8137; /* (media_sp->promisc_sap);*/
  bind_req->dl_service_mode = DL_CLDLS ; /* connectionless mode */

[ DL_BIND_ACK returns my_ether_addr:c9:1f ]

  if (ioctl(fd,DLIOCSPROMISC)<0){
[ OK. I see it at the NE2000 LED as well ]

  do {
    if ((ret_val=getmsg(fd , Ctl_M, Dat_M, &Flgs)) < 0){
      printf("getmsg failed\n");
      exit(1);
    }  
    printf(": %s\n | %s\n", Ctl_M->buf, Dat_M->buf );
  } while (ret_val != 0);

2. Writing new filesystem

3. DLPI Stream Pseudo Driver Problem

4. Trashed text after exiting XFree86-3.1 on CL-GD5434 Chipset.

5. DLPI: How do I increase my STREAMS high-water mark?

6. Makefile for NCSA Mosaic 2.4 under Linux 1.1.19

7. STREAMS, DLPI, Structure padding ? problem

8. Big Brother Systems & Network Monitor update

9. DLPI/Streams Questions

10. Fine Tune Stream Buffer for DLPI

11. Anyone know where I can get the STREAMS DLPI spec?

12. Streams driver using DLPI

13. STREAMS DLPI specification