* DLPI interface on DEC OSF/1
@ 1995-03-28 17:58 Andrew Gabriel
1995-03-29 5:00 ` David A. Dubois
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Andrew Gabriel @ 1995-03-28 17:58 UTC (permalink / raw)
I'm looking at the DLPI interface on DEC Alpha OSF/1 V2.0 as a means
of accessing LLC1 over Ethernet. There is a man page for dlpi/dlb
indicating the DEC implementation is a "Style 2" implementation, which
requires the use of DL_ATTACH_REQ to identify the Physical Point of
Attachment (PPA), i.e. which hardware interface on the machine you
wish to access.
This PPA identification is passed as a value on the DL_ATTACH_REQ,
and is system/manufacturer dependent. I want to access the Ethernet
port on the back of the machine, but nowhere can I find what value
I should give in the DL_ATTACH_REQ for this (or any other) interface
in DEC's implementation.
Does anyone know how DEC map hardware interfaces to PPA values?
--
Andrew Gabriel Home: Andrew@cucumber.demon.co.uk
Consultant Software Engineer Work: Andrew.Gabriel@net-tel.co.uk
Net-Tel Computer Systems Ltd. Tel: +44 1582 834222
4, Place Farm, Wheathapstead, Herts, AL4 8SB, UK
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: DLPI interface on DEC OSF/1
1995-03-28 17:58 DLPI interface on DEC OSF/1 Andrew Gabriel
1995-03-29 5:00 ` David A. Dubois
@ 1995-03-29 5:00 ` Simon Rosenthal
1995-04-03 4:00 ` Andrew.Gabriel
2 siblings, 0 replies; 4+ messages in thread
From: Simon Rosenthal @ 1995-03-29 5:00 UTC (permalink / raw)
Andrew Gabriel (Andrew@cucumber.demon.co.uk) wrote:
: I'm looking at the DLPI interface on DEC Alpha OSF/1 V2.0 as a means
: of accessing LLC1 over Ethernet. There is a man page for dlpi/dlb
: indicating the DEC implementation is a "Style 2" implementation, which
: requires the use of DL_ATTACH_REQ to identify the Physical Point of
: Attachment (PPA), i.e. which hardware interface on the machine you
: wish to access.
: This PPA identification is passed as a value on the DL_ATTACH_REQ,
: and is system/manufacturer dependent. I want to access the Ethernet
: port on the back of the machine, but nowhere can I find what value
: I should give in the DL_ATTACH_REQ for this (or any other) interface
: in DEC's implementation.
: Does anyone know how DEC map hardware interfaces to PPA values?
It's documented in the Network Programmer's Guide, section 2.5 on DLPI,
including an example program with the Streams ioctl required to identify
the PPAs. I've incorporated this code into applications and can verify
that it works.
- Simon
: --
: Andrew Gabriel Home: Andrew@cucumber.demon.co.uk
: Consultant Software Engineer Work: Andrew.Gabriel@net-tel.co.uk
: Net-Tel Computer Systems Ltd. Tel: +44 1582 834222
: 4, Place Farm, Wheathapstead, Herts, AL4 8SB, UK
--
_________________________________________________________________________
Simon Rosenthal: (simon@locus.com)
Locus Computing Corporation
Burlington, MA 01803
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: DLPI interface on DEC OSF/1
1995-03-28 17:58 DLPI interface on DEC OSF/1 Andrew Gabriel
@ 1995-03-29 5:00 ` David A. Dubois
1995-03-29 5:00 ` Simon Rosenthal
1995-04-03 4:00 ` Andrew.Gabriel
2 siblings, 0 replies; 4+ messages in thread
From: David A. Dubois @ 1995-03-29 5:00 UTC (permalink / raw)
In article <796413525snz@cucumber.demon.co.uk>, Andrew@cucumber.demon.co.uk (Andrew Gabriel) writes:
|> This PPA identification is passed as a value on the DL_ATTACH_REQ,
|> and is system/manufacturer dependent. I want to access the Ethernet
|> port on the back of the machine, but nowhere can I find what value
|> I should give in the DL_ATTACH_REQ for this (or any other) interface
|> in DEC's implementation.
|>
|> Does anyone know how DEC map hardware interfaces to PPA values?
There is an ioctl() you can use to list the device names and PPA numbers.
Here's a simple program to do just that, making use of the "dl_ifnames"
ioctl():
#include <sys/ioctl.h>
#include <stropts.h>
#include <errno.h>
#include <fcntl.h>
#include <string.h>
#define ND_GET ('N' << 8 + 0)
#define BUFSIZE 256
char devName[] = "/dev/streams/dlb";
main()
{
int i;
int fd;
char *buf;
struct strioctl stri;
if ((buf = (char *) malloc (BUFSIZE)) == NULL)
{
perror ("malloc");
exit (-1);
}
fd = open(devName, O_RDWR, 0);
if (fd < 0)
{
perror ("open");
exit (-1);
}
strcpy (buf, "dl_ifnames");
stri.ic_cmd = ND_GET;
stri.ic_timout = -1;
stri.ic_len = BUFSIZE;
stri.ic_dp = buf;
if (ioctl(fd, I_STR, &stri) < 0)
{
perror ("ioctl");
exit (-1);
}
printf("Valid PPA names on this system are ... \n\t");
for (i=0; i<stri.ic_len; i++)
{
if (buf[i] == 0)
printf(", ");
else
printf("%c",buf[i]);
}
printf("\n");
}
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: DLPI interface on DEC OSF/1
1995-03-28 17:58 DLPI interface on DEC OSF/1 Andrew Gabriel
1995-03-29 5:00 ` David A. Dubois
1995-03-29 5:00 ` Simon Rosenthal
@ 1995-04-03 4:00 ` Andrew.Gabriel
2 siblings, 0 replies; 4+ messages in thread
From: Andrew.Gabriel @ 1995-04-03 4:00 UTC (permalink / raw)
In article <796413525snz@cucumber.demon.co.uk>
Andrew.Gabriel@net-tel.co.uk "Andrew Gabriel" writes:
> Does anyone know how DEC map hardware interfaces to PPA values?
>
Thanks to all those who responded, and particularly Ian Burton of DEC UK.
--
Andrew Gabriel Home: Andrew@cucumber.demon.co.uk
Consultant Software Engineer Work: Andrew.Gabriel@net-tel.co.uk
Net-Tel Computer Systems Ltd. Tel: +44 1582 834222
4, Place Farm, Wheathapstead, Herts, AL4 8SB, UK
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1995-04-03 4:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-03-28 17:58 DLPI interface on DEC OSF/1 Andrew Gabriel
1995-03-29 5:00 ` David A. Dubois
1995-03-29 5:00 ` Simon Rosenthal
1995-04-03 4:00 ` Andrew.Gabriel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox