DLPI DL_IOC_HDR_INFO IOCTL

DLPI DL_IOC_HDR_INFO IOCTL

Post by stad.. » Thu, 18 Jul 1996 04:00:00



Hi,

Can anyone point me to documentation for the Solaris DL_IOC_HDR_INFO
IOCTL.  It is defined in the dlpi.h header file, but I cannot find
anything describing what information is sent or what information is
requested in the M_IOCACK message.  It appears to be returning an
Ethernet address.  

When ifconfig is used to set an ip address on an interface, this
IOCTL is called multiple times.  A sample exchange of the STREAMS
messages follows.

LEN=71 WRITE M_IOCTL ioc_cmd=17418 ioc_count=0 ioc_error=0 ioc_rval=0
 0  0  0  7  0  0  0  8  0  0  |..........|
 0 14  0  0  0  0  0  0  0  0  |..........|
ff ff ff ff ff ff  8  0  |........|
LEN=85 READ M_IOCACK ioc_cmd=17418 ioc_count=42 ioc_error=0 ioc_rval=0
 0  0  0  7  0  0  0  8  0  0  |..........|
 0 14  0  0  0  0  0  0  0  0  |..........|
ff ff ff ff ff ff  8  0 ff ff  |..........|
ff ff ff ff  8  0 20 11 48 d7  |........H.|
 8  0  |..|

Note that on the IOCTL sends a data portion even though the ioc_count=0.
The only explaination I have for this is that they are reusing a buffer
and are needlessly sending old info.  If that is the case, the return
message only consists of an ethernet address followed by an 8 and a 0
(i.e. the last 8 bytes).  

Any info on the above problem would be a big help.

Thanks,
Scott

 
 
 

1. Why is IP sending me DL_IOC_HDR_INFO?

: Is there an example DLPI-conformant Solaris 2.x driver out there somewhere?
: I've retrieved a bunch of sample Solaris drivers, but none of them are
: DLPI network drivers as far as I can see.  I have the "Using DLPI" package.
: Any more pointers?

Sorry, I was being a bozo.  There is a sample: "psli -- sample STREAMS
Multithreaded DLPI driver".

I would still appreciate any info on DL_IOC_HDR_INFO though...

Brendan
--
********************************************************************************

Department of Computer Science                          Tel: 44 (0)280 828335
University of Buckingham, Buckingham, MK18 1EG, UK      Fax: 44 (0)280 828322
********************************************************************************

2. Adminntool

3. dm-ioctl.h - device-mapper ioctl packet fixes

4. Term gymnastics

5. getting 'ioctl failed: Inappropriate ioctl for device'

6. Magic Number

7. Error: ftp: ioctl I_FIND ttcompat: Inappropriate ioctl for device

8. Netscape + Solaris 2.5 (sparc)

9. getting - "ioctl failed: Inappropriate ioctl for device"

10. /dev/le stats (collisions), ioctl? DLPI? code

11. DLPI programs in dltest.tar

12. Solaris DLPI programming?

13. DLPI & STREAMS: How...