VxWorks Reference Manual : Libraries
ipProto - an interface between the BSD IP protocol and the MUX
ipAttach( ) - a generic attach routine for the TCP/IP network stack
ipDetach( ) - a generic detach routine for the TCP/IP network stack
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.
The library can only transmit data to link-level destination addresses
less than or equal to 64 bytes in length.
end.h muxLib.h etherMultiLib.h sys/ioctl.h
ipAttach( ) - a generic attach routine for the TCP/IP network stack
int ipAttach ( int unit, /* Unit number */ char * pDevice /* Device name (i.e. ln, ei etc.). */ )
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.
OK or ERROR
ipDetach( ) - a generic detach routine for the TCP/IP network stack
STATUS ipDetach ( int unit, /* Unit number */ char * pDevice /* Device name (i.e. ln, ei etc.). */ )
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.
OK or ERROR