VxWorks Reference Manual : Libraries

ipProto

NAME

ipProto - an interface between the BSD IP protocol and the MUX

ROUTINES

ipAttach( ) - a generic attach routine for the TCP/IP network stack
ipDetach( ) - a generic detach routine for the TCP/IP network stack

DESCRIPTION

This library provides an interface between the Berkeley protocol stack and the MUX interface for both NPT and END devices. The ipAttach( ) routine binds the IP protocol to a specific device. It is called automatically during network initialization if INCLUDE_END is defined. The ipDetach( ) routine removes an existing binding to an END device.

NOTE

The library can only transmit data to link-level destination addresses
      less than or equal to 64 bytes in length.

INCLUDE FILES

end.h muxLib.h etherMultiLib.h sys/ioctl.h

SEE ALSO

ipProto


Libraries : Routines

ipAttach( )

NAME

ipAttach( ) - a generic attach routine for the TCP/IP network stack

SYNOPSIS

int ipAttach
    (
    int    unit,   /* Unit number */
    char * pDevice /* Device name (i.e. ln, ei etc.). */
    )

DESCRIPTION

This routine takes the unit number and device name of an END or NPT driver (e.g., "ln0", "ei0", etc.) and attaches the IP protocol to the corresponding device. Following a successful attachment IP will begin receiving packets from the devices.

RETURNS

OK or ERROR

SEE ALSO

ipProto


Libraries : Routines

ipDetach( )

NAME

ipDetach( ) - a generic detach routine for the TCP/IP network stack

SYNOPSIS

STATUS ipDetach
    (
    int    unit,   /* Unit number */
    char * pDevice /* Device name (i.e. ln, ei etc.). */
    )

DESCRIPTION

This routine removes the TCP/IP stack from the MUX. If completed successfully, the IP protocol will no longer receive packets from the named END driver.

RETURNS

OK or ERROR

SEE ALSO

ipProto