*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> ifnet (7)              
Title
Content
Arch
Section
 

ifnet(7)

Contents


NAME    [Toc]    [Back]

       ifnet  -  STREAMS ifnet module for bridging STREAMS device
       drivers to sockets

SYNOPSIS    [Toc]    [Back]

       #include <sys/stropts.h> #define  PIFNET_IOCTL_UNIT 1236

       int ioctl(
               type fildes,
               type command,
               type arg ); int fildes, command;

DESCRIPTION    [Toc]    [Back]

       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  number.  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    [Toc]    [Back]

       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 number.

       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    [Toc]    [Back]

      
      
       Commands: pause(3)

       Network Programmer's Guide



                                                         ifnet(7)
[ Back ]
 Similar pages
Name OS Title
dlb Tru64 STREAMS pseudodevice driver for bridging BSD Drivers to STREAMS
dlpi Tru64 STREAMS pseudodevice driver for bridging BSD Drivers to STREAMS
pseudo Tru64 Starts a non-STREAMS pty interface for a STREAMS device
strmod_add Tru64 Add STREAMS modules and drivers
strsetup.conf Tru64 Configuration file for STREAMS drivers
strmod_del Tru64 Delete STREAMS modules and drivers
alpq IRIX query the alp STREAMS module
ldterm Tru64 STREAMS line discipline module
ptem Tru64 Null STREAMS module for pseudoterminal emulation
putnext Tru64 STREAMS: Sends a message to the next module in the stream
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service