⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 c-dll3.html

📁 vxWorks网络协议驱动开发用户手册写协议栈时的好指引
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="wrs.css"><title>    Data Link Layer Network Components    </title></head><body bgcolor="FFFFFF"><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a><a href="c-dll.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="c-dll.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-dll2.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-dll4.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p><font face="Helvetica, sans-serif" class="sans"><h3 class="H2"><i><a name="84311">3.3  &nbsp;&nbsp;Serial Line IP Support </a></i></h3></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84313"> </a>The VxWorks target can support IP communication with the host operating system over serial connections using the following protocols:</p></dl><dl class="margin"><ul class="BulletSingle" type="disc"><li><a name="84315"> </a>Serial Line IP (SLIP)</li></ul><ul class="BulletSingle" type="disc"><li><a name="84317"> </a>Compressed Serial Line IP (CSLIP)</li></ul></dl><dl class="margin"><dd><p class="Body"><a name="84318"> </a>SLIP and CSLIP (SLIP with compressed headers) provide a simple form of encapsulation for IP datagrams on serial lines. Using SLIP or CSLIP as a network interface driver is a straightforward way to use TCP/IP software with point-to-point configurations such as long-distance telephone lines or RS-232 serial connections between machines.</p><dd><p class="Body"><a name="93650"> </a>PPP also provides a simple form of encapsulation for IP datagrams on serial lines. However, unlike SLIP or CSLIP, PPP provides support for multiple protocols on a single serial line, dynamic negotiation of the IP addresses at each end, and much more. Of course, it comes at the cost of additional overhead with each frame, and extra frames when the link is first created.</p></dl></dl><dl class="margin"><dd> <p class="table" callout><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td valign="top" width="40"><br><img border="0" alt="*" src="icons/caution.gif"></td><td><hr><div class="CalloutCell"><a name="93693"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">CAUTION:  </font></b></a>The VxWorks implementation of PPP supports only IP. For more information on PPP, see <a href="c-dll4.html#84371"><i class="title">3.4&nbsp;PPP, the Point-to-Point Protocol for Serial Line IP</i></a>.</div></td></tr><tr valign="top"><td></td><td><hr></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p callout></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="93703">3.3.1  &nbsp;&nbsp;Serial Line Driver Configuration</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="93815"> </a>Configuring your system for SLIP requires configuring both target and host systems.  See your host system's manual for information on configuring your host.</p></dl></dl><dl class="margin"><dd><p class="table" callout><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td valign="top" width="40"><br><img border="0" alt="*" src="icons/caution.gif"></td><td><hr><div class="CalloutCell"><a name="93441"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">CAUTION:  </font></b></a>If you choose to use CSLIP, remember to make sure your host is also using CSLIP.  If your host is configured for SLIP, the VxWorks target receives packets from the host, but the host cannot correctly decode the CSLIP packets from the target.  Eventually TCP resends the packets as SLIP packets, at which time the host receives and acknowledge them.  However, the whole process is slow. To avoid this, configure the host and target to use the same serial protocol.</div></td></tr><tr valign="top"><td></td><td><hr></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p callout><dl class="margin"><dd><p class="Body"><a name="91332"> </a>To use SLIP with your VxWorks target, make the following configuration changes (for more information on configuring VxWorks, see the <i class="title">Tornado User's Guide: Projects</i>):</p></dl><dl class="margin"><p><ol class="List"><li value="1."><a name="84347"> </a>Reconfigure VxWorks to include SLIP support.  The relevant configuration macro is  <b class="symbol_UC">INCLUDE_SLIP</b>. </li></ol></p><p><ol class="List"><li value="2."><a name="84349"> </a>Specify the device to be used for the SLIP connection, the SLIP Channel Identifier.  The relevant configuration macro is  <b class="symbol_UC">SLIP_TTY</b>.  By default this is set to <b class="symbol_UC">1</b>, which sets the serial device to <b class="file">/tyCo/1</b>. </li></ol></p><p><ol class="List"><li value="3."><a name="97339"> </a>Specify the baud rate or SLIP Channel Speed (optional).  The relevant configuration macro is   <b class="symbol_UC">SLIP_BAUDRATE</b>.  If this is not defined, SLIP uses the baud rate defined by your serial driver.</li></ol></p><p><ol class="List"><li value="4."><a name="97341"> </a>Specify the SLIP Channel Capacity (optional).  The relevant configuration macro is  <b class="symbol_UC">SLIP_MTU</b>.  If you do not set this, the default value (576) will be used.</li></ol></p><p><ol class="List"><li value="5."><a name="97342"> </a>You can force the use of CSLIP when communicating with the host by setting the Transmit Header Compression Flag.  The relevant configuration macro is  <b class="symbol_UC">CSLIP_ENABLE</b>.</li></ol></p><p><ol class="List"><li value="6."><a name="94600"> </a>Otherwise, you can allow the use of plain SLIP unless the VxWorks target receives a CSLIP packet (in which case the target also uses CSLIP) by setting the Receive Header Compression Flag.  The relevant configuration macro is  <b class="symbol_UC">CSLIP_ALLOW</b>.</li></ol></p></dl><dd><p class="table" callout><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td valign="top" width="40"><br><img border="0" alt="*" src="icons/caution.gif"></td><td><hr><div class="CalloutCell"><a name="93458"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">CAUTION:  </font></b></a>If you want to use VxSim for Solaris with PPP as the backend, you must reconfigure VxWorks to remove BSD 4.3 compatability. (The relevant configuration macro is  <b class="symbol_UC">BSD43_COMPATIBLE</b>). Otherwise, you get an exception in the WDB task when the target server tries to connect to the WDB agent. </div></td></tr><tr valign="top"><td></td><td><hr></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p callout></dl><a name="foot"><hr></a><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a><a href="c-dll.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="c-dll.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-dll2.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-dll4.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p></body></html><!---by WRS Documentation (), Wind River Systems, Inc.    conversion tool:  Quadralay WebWorks Publisher 4.0.11    template:         CSS Template, Jan 1998 - Jefro --->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -