📄 ipproto.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/ipProto.html - generated by refgen from ipProto.c --> <title> ipProto </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.htm"><i>VxWorks API Reference : OS Libraries</i></a></p></blockquote><h1>ipProto</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>ipProto</strong> - an interface between the BSD IP protocol and the MUX </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><a href="./ipProto.html#ipAttach">ipAttach</a>( )</b> - a generic attach routine for the TCP/IP network stack<br><b><a href="./ipProto.html#ipDetach">ipDetach</a>( )</b> - a generic detach routine for the TCP/IP network stack<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library provides an interface between the Berkeley protocol stackand the MUX interface for both NPT and END devices. The <b><a href="./ipProto.html#ipAttach">ipAttach</a>( )</b> routinebinds the IP protocol to a specific device. It is called automaticallyduring network initialization if <b>INCLUDE_END</b> is defined. The <b><a href="./ipProto.html#ipDetach">ipDetach</a>( )</b>routine removes an existing binding to an END device.<p></blockquote><h4>NOTE</h4><blockquote><p>The library can only transmit data to link-level destination addresses<br> less than or equal to 64 bytes in length.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>end.h</b> muxLib.h <b>etherMultiLib.h</b> sys/ioctl.h<hr><a name="ipAttach"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>ipAttach( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>ipAttach( )</strong> - a generic attach routine for the TCP/IP network stack</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int ipAttach ( int unit, /* Unit number */ char * pDevice /* Device name (i.e. ln, ei etc.). */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine takes the unit number and device name of an END or NPTdriver (e.g., "ln0", "ei0", etc.) and attaches the IP protocol tothe corresponding device. Following a successful attachment IP willbegin receiving packets from the devices.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK or ERROR</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ipProto.html#top">ipProto</a></b><hr><a name="ipDetach"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>ipDetach( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>ipDetach( )</strong> - a generic detach routine for the TCP/IP network stack</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS ipDetach ( int unit, /* Unit number */ char * pDevice /* Device name (i.e. ln, ei etc.). */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine removes the TCP/IP stack from the MUX. If completedsuccessfully, the IP protocol will no longer receive packetsfrom the named END driver. <p></blockquote><h4>RETURNS</h4><blockquote><p>OK or ERROR</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ipProto.html#top">ipProto</a></b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -