*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: ifnet | Section: 7 | Source: Digital UNIX | File: ifnet.7.gz
ifnet(7) Miscellaneous Information Manual ifnet(7) NAME ifnet - STREAMS ifnet module for bridging STREAMS device drivers to sockets SYNOPSIS #include <sys/stropts.h> #define PIFNET_IOCTL_UNIT 1236 int ioctl( type fildes, type command, type arg ); int fildes, command; DESCRIPTION ifnet 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 de- vice driver. The application must then send an I_STR ioctl with a com- mand 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 appropriate pro- tocol. 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. EXAMPLES The 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 INFORMATION Commands: pause(3). Network Programmer's Guide delim off ifnet(7)

Navigation Options