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

📄 netshow.html

📁 Vxworks API操作系统和驱动程序设计API。压缩的HTML文件
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/netShow.html - generated by refgen from netShow.c --> <title> netShow </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>netShow</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>netShow</strong> - network information display routines </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><a href="./netShow.html#ifShow">ifShow</a>(&nbsp;)</b>  -  display the attached network interfaces<br><b><a href="./netShow.html#inetstatShow">inetstatShow</a>(&nbsp;)</b>  -  display all active connections for Internet protocol sockets<br><b><a href="./netShow.html#ipstatShow">ipstatShow</a>(&nbsp;)</b>  -  display IP statistics<br><b><a href="./netShow.html#netPoolShow">netPoolShow</a>(&nbsp;)</b>  -  show pool statistics<br><b><a href="./netShow.html#netStackDataPoolShow">netStackDataPoolShow</a>(&nbsp;)</b>  -  show network stack data pool statistics<br><b><a href="./netShow.html#netStackSysPoolShow">netStackSysPoolShow</a>(&nbsp;)</b>  -  show network stack system pool statistics<br><b><a href="./netShow.html#mbufShow">mbufShow</a>(&nbsp;)</b>  -  report mbuf statistics<br><b><a href="./netShow.html#netShowInit">netShowInit</a>(&nbsp;)</b>  -  initialize network show routines<br><b><a href="./netShow.html#arpShow">arpShow</a>(&nbsp;)</b>  -  display entries in the system ARP table<br><b><a href="./netShow.html#arptabShow">arptabShow</a>(&nbsp;)</b>  -  display the known ARP entries<br><b><a href="./netShow.html#routestatShow">routestatShow</a>(&nbsp;)</b>  -  display routing statistics<br><b><a href="./netShow.html#routeShow">routeShow</a>(&nbsp;)</b>  -  display all IP routes (summary information)<br><b><a href="./netShow.html#hostShow">hostShow</a>(&nbsp;)</b>  -  display the host table<br><b><a href="./netShow.html#mRouteShow">mRouteShow</a>(&nbsp;)</b>  -  display all IP routes (verbose information)<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library provides routines to show various network-relatedstatistics, such as configuration parameters for network interfaces,protocol statistics, socket statistics, and so on.<p>Interpreting these statistics requires detailed knowledge of Internetnetwork protocols.  Information on these protocols can be found inthe following books:<ul><li></li><i>Internetworking with TCP/IP Volume III, </i>by Douglas Comer and David Stevens<li></li><i>UNIX Network Programming, </i>by Richard Stevens<li></li><i>The Design and Implementation of the 4.3 BSD UNIX Operating System, </i>by Leffler, McKusick, Karels and Quarterman<p></ul><p>The <b><a href="./netShow.html#netShowInit">netShowInit</a>(&nbsp;)</b> routine links the network show facility into the VxWorkssystem.  This is performed automatically if <b>INCLUDE_NET_SHOW</b> is defined.If you want <b><a href="./netShow.html#inetstatShow">inetstatShow</a>(&nbsp;)</b> to display TCP socket status, then <b>INCLUDE_TCP_SHOW</b>needs to be included.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ifLib.html#top">ifLib</a></b>, <b><a href="./icmpShow.html#top">icmpShow</a></b>, <b><a href="./igmpShow.html#top">igmpShow</a></b>, <b><a href="./tcpShow.html#top">tcpShow</a></b>, <b><a href="./udpShow.html#top">udpShow</a></b> <p><hr><a name="ifShow"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries :  Routines</i></a></p></blockquote><h1>ifShow(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>ifShow(&nbsp;)</strong> - display the attached network interfaces</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void ifShow    (    char * ifName             /* name of the interface to show */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine displays the attached network interfaces for debugging anddiagnostic purposes.  If <i>ifName</i> is given, only the interfaces belongingto that group are displayed.  If <i>ifName</i> is omitted, all attachedinterfaces are displayed.<p>For each interface selected, the following are shown: Internetaddress, point-to-point peer address (if using SLIP), broadcast address,netmask, subnet mask, Ethernet address, route metric, maximum transferunit, number of packets sent and received on this interface, number ofinput and output errors, and flags (such as loopback, point-to-point,broadcast, promiscuous, ARP, running, and debug).<p></blockquote><h4>EXAMPLE</h4><blockquote><p><p>The following call displays all interfaces whose names begin with "ln",(such as "ln0", "ln1", and "ln2"):<pre>    -&gt; ifShow "ln"</pre>The following call displays just the interface "ln0":<pre>    -&gt; ifShow "ln0"</pre></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./netShow.html#top">netShow</a></b>, <b><a href="./netShow.html#routeShow">routeShow</a>(&nbsp;)</b>, <b><a href="./ifLib.html#top">ifLib</a></b><p><hr><a name="inetstatShow"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries :  Routines</i></a></p></blockquote><h1>inetstatShow(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>inetstatShow(&nbsp;)</strong> - display all active connections for Internet protocol sockets</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void inetstatShow (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine displays a list of all active Internet protocol sockets in aformat similar to the UNIX <b>netstat</b> command.<p>If you want <b><a href="./netShow.html#inetstatShow">inetstatShow</a>(&nbsp;)</b> to display TCP socket status, then<b>INCLUDE_TCP_SHOW</b> needs to be included.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./netShow.html#top">netShow</a></b><hr><a name="ipstatShow"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries :  Routines</i></a></p></blockquote><h1>ipstatShow(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>ipstatShow(&nbsp;)</strong> - display IP statistics</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void ipstatShow    (    BOOL zero                 /* TRUE = reset statistics to 0 */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine displays detailed statistics for the IP protocol.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./netShow.html#top">netShow</a></b><hr><a name="netPoolShow"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries :  Routines</i></a></p></blockquote><h1>netPoolShow(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>netPoolShow(&nbsp;)</strong> - show pool statistics</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void netPoolShow    (    NET_POOL_ID pNetPool    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine displays the distribution of <b>mBlk</b>s and clusters in a givennetwork pool ID.<p></blockquote><h4>EXAMPLE</h4><blockquote><p><p><pre>void endPoolShow   (   char * devName,    /* The inteface name: "dc", "ln" ...*/   int    unit        /* the unit number: usually 0       */   )   {   END_OBJ * pEnd;   if ((pEnd = endFindByName (devName, unit)) != NULL)       netPoolShow (pEnd-&gt;pNetPool);   else       printf ("Could not find device %s\n", devName);   return;   }</pre></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./netShow.html#top">netShow</a></b><hr><a name="netStackDataPoolShow"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries :  Routines</i></a></p></blockquote><h1>netStackDataPoolShow(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>netStackDataPoolShow(&nbsp;)</strong> - show network stack data pool statistics</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void netStackDataPoolShow (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine displays the distribution of <b>mBlk</b>s and clusters in athe network data pool.  The network data pool is used only for datatransfer through the network stack.<p>The "clusters" column indicates the total number of clusters of that sizethat have been allocated.  The "free" column indicates the number ofavailable clusters of that size (the total number of clusters minus thoseclusters that are in use).  The "usage" column indicates the number of timesclusters have been allocated (not, as you might expect, the number ofclusters currently in use).<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./netShow.html#top">netShow</a></b>, <b><a href="./netShow.html#netStackSysPoolShow">netStackSysPoolShow</a>(&nbsp;)</b>, <b><a href="./netBufLib.html#top">netBufLib</a></b><hr><a name="netStackSysPoolShow"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries :  Routines</i></a></p></blockquote><h1>netStackSysPoolShow(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>netStackSysPoolShow(&nbsp;)</strong> - show network stack system pool statistics</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void netStackSysPoolShow (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine displays the distribution of <b>mBlk</b>s and clusters in athe network system pool.  The network system pool is used only for systemstructures such as sockets, routes, interface addresses, protocol controlblocks, multicast addresses, and multicast route entries.<p>The "clusters" column indicates the total number of clusters of that sizethat have been allocated.  The "free" column indicates the number ofavailable clusters of that size (the total number of clusters minus thoseclusters that are in use).  The "usage" column indicates the number of timesclusters have been allocated (not, as you might expect, the number ofclusters currently in use).<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./netShow.html#top">netShow</a></b>, <b><a href="./netShow.html#netStackDataPoolShow">netStackDataPoolShow</a>(&nbsp;)</b>, <b><a href="./netBufLib.html#top">netBufLib</a></b><hr><a name="mbufShow"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries :  Routines</i></a></p></blockquote><h1>mbufShow(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>mbufShow(&nbsp;)</strong> - report mbuf statistics</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void mbufShow (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine displays the distribution of mbufs in the network.<p></blockquote><h4>RETURNS</h4><blockquote><p>

⌨️ 快捷键说明

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