Query: ifnet
OS: osf1
Section: 7
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
ifnet(7) Miscellaneous Information Manual ifnet(7)NAMEifnet - STREAMS ifnet module for bridging STREAMS device drivers to socketsSYNOPSIS#include <sys/stropts.h> #define PIFNET_IOCTL_UNIT 1236 int ioctl( type fildes, type command, type arg ); int fildes, command;DESCRIPTIONifnet is a STREAMS-based module that provides a bridge between STREAMS-based device drivers written to the Data Link Provider Interface (DLPI) and sockets. By using ifnet, STREAMS-based DLPI device drivers can work with TCP/IP, or any other networking protocols, implemented using sockets. An application pushes the ifnet module onto a Stream opened to the device driver. The application must then send an I_STR ioctl with a command of IFNET_IOCTL_UNIT to notify ifnet of the driver's unit number. It must then send a DL_BIND_REQ downstream to bind the appropri- ate protocol. Once the Stream or Streams are set up, the application has no work to do but must stay around to keep the Streams alive. This can be done with the pause(3) function.EXAMPLESThe following example illustrates how to send an I_STR ioctl with a command of IFNET_IOCTL_UNIT to notify ifnet of the driver's unit num- ber. struct strioctl str; int unit; . . . str.ic_cmd = IFNET_IOCTL_UNIT; str.ic_dp = &unit; /* unit number of device */ ioctl(fd, I_STR, &str);RELATED INFORMATIONCommands: pause(3). Network Programmer's Guide delim off ifnet(7)
Related Man Pages |
---|
eucioctl(7) - osf1 |
ifnet(7) - osf1 |
timod(7m) - sunos |
timod(7m) - opensolaris |
drbr_inuse(9) - freebsd |
Similar Topics in the Unix Linux Community |
---|
Hardware and drivers |
hi.. |
ioctl whats a "STREAMS device"? |
Binding the same port number on different interfaces |
Any equalant command for KUDZU in RHEL6 |