LLA to DLPI Migration GuideEdition 4B2355-90138HP 9000 NetworkingE0497Printed in: United States© Copyright 1997 Hewlett-Packard Company.
111 LLA to DLPI Migration
12 Chapter 1LLA to DLPI MigrationAs part of Hewlett-Packard’s movement toward industry standardnetworking, HP has discontinued the LLA/9000 product wi
Chapter 1 13LLA to DLPI MigrationDevice FilesDevice FilesDevice files are used to identify the LAN driver, Ethernet/IEEE 802.3interface card, and proto
14 Chapter 1LLA to DLPI Migrationioctl Requestsioctl RequestsAll general control requests (i.e. protocol logging, destination addresses,multicast addr
Chapter 1 15LLA to DLPI Migrationioctl RequestsLOG_READ_TIMEOUT Not definedLLA_SIGNAL_MASK Not definedFRAME_HEADER Frame headers are delivered with each
16 Chapter 1LLA to DLPI MigrationTransmitting DataTransmitting DataLLA requires the user to log a destination address (LOG_DEST_ADDR)and a destination
Chapter 1 17LLA to DLPI MigrationReceiving DataReceiving DataLLA does not automatically return LLC header information whenpackets are read by the user
18 Chapter 1LLA to DLPI MigrationReceiving Data
192 LLA and DLPI ExampleProgramsThis chapter contains two example programs.
2Legal NoticesThe information in this document is subject to change without notice.Hewlett-Packard makes no warranty of any kind with regard to thisma
20 Chapter 2LLA and DLPI Example ProgramsThe first example shows a data transfer program using DLPI. Thesecond example shows the same type of program u
Chapter 2 21LLA and DLPI Example ProgramsDLPI Example ProgramDLPI Example Program/********************************************************************
22 Chapter 2LLA and DLPI Example ProgramsDLPI Example Programstruct strbuf data_buf = { AREA_SIZE, /* maxlen = AREA_SIZE */ 0,
Chapter 2 23LLA and DLPI Example ProgramsDLPI Example Program /* did we get a control part */ if(ctrl_buf.len) {
24 Chapter 2LLA and DLPI Example ProgramsDLPI Example Program data_buf.len = length; /* call putmsg and check for an error */
Chapter 2 25LLA and DLPI Example ProgramsDLPI Example Programintattach() { int fd; /* file descriptor */ int ppa
26 Chapter 2LLA and DLPI Example ProgramsDLPI Example Program attach_req->dl_ppa = ppa; put_ctrl(fd, sizeof(dl_attach_req_t), 0);
Chapter 2 27LLA and DLPI Example ProgramsDLPI Example Program dl_subs_bind_req_t *subs_bind_req = (dl_subs_bind_req_t*)ctrl_area;
28 Chapter 2LLA and DLPI Example ProgramsDLPI Example Program char *rdlsap; int msg_res; msg_res = get_msg(fd); che
Chapter 2 29LLA and DLPI Example ProgramsDLPI Example Program/********************************************************************* main*******
3©copyright 1980, 1984, 1986 Novell, Inc. ©copyright 1986-1992 SunMicrosystems, Inc. ©copyright 1985-86, 1988 Massachusetts Institute ofTechnology. ©c
30 Chapter 2LLA and DLPI Example ProgramsDLPI Example Program } /* We're finished with PART 1. Now call cleanup to unbind,
Chapter 2 31LLA and DLPI Example ProgramsDLPI Example Program data_area[0] = i; /* Initialize data area */
32 Chapter 2LLA and DLPI Example ProgramsLLA Example ProgramLLA Example Program/**********************************************************************
Chapter 2 33LLA and DLPI Example ProgramsLLA Example Program /* * Read a packet from the device. */ /* call read and check
34 Chapter 2LLA and DLPI Example ProgramsLLA Example Program intfd; /* file descriptor */ char *mac_name; /* open t
Chapter 2 35LLA and DLPI Example ProgramsLLA Example Program /* Copy the address to ret_addr */ memcpy(ret_addr, (caddr_t)ctrl_buf.value.s, 6);}/*
36 Chapter 2LLA and DLPI Example ProgramsLLA Example Program/**************************************************************************** Close th
Chapter 2 37LLA and DLPI Example ProgramsLLA Example Program int dest_addr_len; /* length of dest_addr */{ int i; prin
38 Chapter 2LLA and DLPI Example ProgramsLLA Example Program /* Set the destination MAC and SAP address to the local address. This w
Chapter 2 39LLA and DLPI Example ProgramsLLA Example Program /* The following bind is not needed because we are running in loopback
40 Chapter 2LLA and DLPI Example ProgramsLLA Example Program
Index41DDLPI example program, 20Eexample programs, 20LLLA example program, 20LLA ioctls vs DLPI primitives,14LLA migration, 12Mmigrating to DLPI, 12
Contents51. LLA to DLPI MigrationDevice Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13ioctl R
6Contents
7Printing HistoryThe manual printing date and part number indicate its current edition.The printing date will change when a new edition is printed. Mi
9PrefaceLink Level Access for the HP 9000 (LLA/9000) is a Hewlett-Packard datacommunications and data management product supported on earlierHP-UX rel
Kommentare zu diesen Handbüchern