📄 endlib.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/endLib.html - generated by refgen from endLib.c --> <title> endLib </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.html"><i>VxWorks Reference Manual : Libraries</i></a></p></blockquote><h1>endLib</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>endLib</strong> - support library for END-based drivers </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./endLib.html#mib2Init">mib2Init</a></i>( )</b> - initialize a MIB-II structure<br><b><i><a href="./endLib.html#mib2ErrorAdd">mib2ErrorAdd</a></i>( )</b> - change a MIB-II error count<br><b><i><a href="./endLib.html#endObjInit">endObjInit</a></i>( )</b> - initialize an <b>END_OBJ</b> structure<br><b><i><a href="./endLib.html#endObjFlagSet">endObjFlagSet</a></i>( )</b> - set the <b>flags</b> member of an <b>END_OBJ</b> structure<br><b><i><a href="./endLib.html#endEtherAddressForm">endEtherAddressForm</a></i>( )</b> - form an Ethernet address into a packet<br><b><i><a href="./endLib.html#endEtherPacketDataGet">endEtherPacketDataGet</a></i>( )</b> - return the beginning of the packet data<br><b><i><a href="./endLib.html#endEtherPacketAddrGet">endEtherPacketAddrGet</a></i>( )</b> - locate the addresses in a packet<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library contains support routines for Enhanced Network Drivers.These routines are common to ALL ENDs. Specialized routines should onlyappear in the drivers themselves.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./endLib.html#top">endLib</a></b><hr><a name="mib2Init"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>mib2Init</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>mib2Init</i>( )</strong> - initialize a MIB-II structure</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS mib2Init ( M2_INTERFACETBL * pMib, /* struct to be initialized */ long ifType, /* ifType from m2Lib.h */ UCHAR * phyAddr, /* MAC/PHY address */ int addrLength, /* MAC/PHY address length */ int mtuSize, /* MTU size */ int speed /* interface speed */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>Initialize a MIB-II structure. Set all error counts to zero. Assumea 10Mbps Ethernet device.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK or ERROR.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./endLib.html#top">endLib</a></b><hr><a name="mib2ErrorAdd"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>mib2ErrorAdd</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>mib2ErrorAdd</i>( )</strong> - change a MIB-II error count</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS mib2ErrorAdd ( M2_INTERFACETBL * pMib, int errCode, int value )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This function adds a specified value to one of the MIB-II error countersin a MIB-II interface table. The counter to be altered is specifiedby the errCode argument. Specifying a negative value reduces the errorcount, a positive value increases the error count.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK or ERROR.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./endLib.html#top">endLib</a></b><hr><a name="endObjInit"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>endObjInit</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>endObjInit</i>( )</strong> - initialize an <b>END_OBJ</b> structure</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS endObjInit ( END_OBJ * pEndObj, /* object to be initialized */ DEV_OBJ* pDevice, /* ptr to device struct */ char * pBaseName, /* device base name, for example, "ln" */ int unit, /* unit number */ NET_FUNCS * pFuncTable, /* END device functions */ char* pDescription )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine initializes an <b>END_OBJ</b> structure and fills it with data from the argument list. It also creates and initializes semaphores and protocol list.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK or ERROR.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./endLib.html#top">endLib</a></b><hr><a name="endObjFlagSet"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>endObjFlagSet</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>endObjFlagSet</i>( )</strong> - set the <b>flags</b> member of an <b>END_OBJ</b> structure</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS endObjFlagSet ( END_OBJ * pEnd, UINT flags )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>As input, this routine expects a pointer to an <b>END_OBJ</b> structure (the <i>pEnd</i> parameter) and a flags value (the <i>flags</i> parameter).This routine sets the <b>flags</b> member of the <b>END_OBJ</b> structureto the value of the <i>flags</i> parameter. <p>Because this routine assumes that the driver interface is now up, this routine also sets the <b>attached</b> member of the referenced <b>END_OBJ</b>structure to TRUE. <p></blockquote><h4>RETURNS</h4><blockquote><p>OK</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./endLib.html#top">endLib</a></b><hr><a name="endEtherAddressForm"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>endEtherAddressForm</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>endEtherAddressForm</i>( )</strong> - form an Ethernet address into a packet</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>M_BLK_ID endEtherAddressForm ( M_BLK_ID pMblk, /* pointer to packet mBlk */ M_BLK_ID pSrcAddr, /* pointer to source address */ M_BLK_ID pDstAddr /* pointer to destination address */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine accepts the source and destination addressing information through <i>pSrcAddr</i> and <i>pDstAddr</i> and returns an <b>M_BLK_ID</b> that points to the assembled link-level header. To do this, this routine prepends the link-level header into the cluster associated with <i>pMblk</i> if there is enough space available in the cluster. It then returns a pointer to the pointer referenced in <i>pMblk</i>. However, if there is not enough space in the cluster associated with <i>pMblk</i>, this routine reserves a new <b>mBlk</b>-<b>clBlk</b>-cluster construct for the header information. It then prepends the new <b>mBlk</b> to the <b>mBlk</b> passed in <i>pMblk</i>. As the function value, this routine then returns a pointer to the new <b>mBlk</b>, which the head of a chain of <b>mBlk</b> structures. The second element of this chain is the <b>mBlk</b> referenced in <i>pMblk</i>. <p></blockquote><h4>RETURNS</h4><blockquote><p><b>M_BLK_ID</b> or NULL.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./endLib.html#top">endLib</a></b><hr><a name="endEtherPacketDataGet"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>endEtherPacketDataGet</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>endEtherPacketDataGet</i>( )</strong> - return the beginning of the packet data</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS endEtherPacketDataGet ( M_BLK_ID pMblk, LL_HDR_INFO * pLinkHdrInfo )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine fills the given <i>pLinkHdrInfo</i> with the appropriate offsets.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK or ERROR.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./endLib.html#top">endLib</a></b><hr><a name="endEtherPacketAddrGet"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>endEtherPacketAddrGet</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>endEtherPacketAddrGet</i>( )</strong> - locate the addresses in a packet</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS endEtherPacketAddrGet ( M_BLK_ID pMblk, /* pointer to packet */ M_BLK_ID pSrc, /* pointer to local source address */ M_BLK_ID pDst, /* pointer to local destination address */ M_BLK_ID pESrc, /* pointer to remote source address (if any) */ M_BLK_ID pEDst /* pointer to remote destination address (if any) */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine takes a <b>M_BLK_ID</b>, locates the address information, and adjusts the <b>M_BLK_ID</b> structures referenced in <i>pSrc</i>, <i>pDst</i>, <i>pESrc</i>, and <i>pEDst</i> so that their pData members point to the addressing information in the packet. The addressing information is not copied. All <b>mBlk</b> structures share the same cluster.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK or ERROR.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./endLib.html#top">endLib</a></b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -