ifnet man page on DigitalUNIX

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
DigitalUNIX logo
[printable version]

ifnet(7)							      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
       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  num‐
       ber. It must then send a DL_BIND_REQ downstream to bind the appropriate
       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.

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);

SEE ALSO
       Commands: pause(3)

       Network Programmer's Guide

								      ifnet(7)
[top]

List of man pages available for DigitalUNIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net