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

📄 if_ulip.html

📁 vxworks相关论文
💻 HTML
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/if_ulip.html - generated by refgen from if_ulip.c --> <title> if_ulip </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>if_ulip</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>if_ulip</strong> - network interface driver for User Level IP (VxSim) </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./if_ulip.html#ulipInit">ulipInit</a></i>(&nbsp;)</b>  -  initialize the ULIP interface (VxSim)<br><b><i><a href="./if_ulip.html#ulattach">ulattach</a></i>(&nbsp;)</b>  -  attach a ULIP interface to a list of network interfaces (VxSim)<br><b><i><a href="./if_ulip.html#ulipDelete">ulipDelete</a></i>(&nbsp;)</b>  -  delete a ULIP interface (VxSim)<br><b><i><a href="./if_ulip.html#ulStartOutput">ulStartOutput</a></i>(&nbsp;)</b>  -  push packets onto "interface"<br><b><i><a href="./if_ulip.html#ulipDebugSet">ulipDebugSet</a></i>(&nbsp;)</b>  -  Set debug flag in UNIX's ULIP driver<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This module implements the VxWorks User Level IP (ULIP) network driver.The ULIP driver allows VxWorks under UNIX to talk to other machinesby handing off IP packets to the UNIX host for processing.<p>The ULIP driver is automatically included and initialized by the VxSimBSPs; normally there is no need for applications to use these routinesdirectly.<p></blockquote><h4>USER CALLABLE ROUTINES</h4><blockquote><p>When initializing the device, it is necessary to specifythe Internet address for both sides of the ULIP point-to-pointlink (local side and the remote side of the connection) using <b><i><a href="./if_ulip.html#ulipInit">ulipInit</a></i>(&nbsp;)</b>.<p><pre>    STATUS ulipInit        (        int unit,       /* ULIP unit number (0 - NULIP-1) */        char *myAddr,   /* IP address of the interface */        char *peerAddr, /* IP address of the remote peer interface */        int procnum     /* processor number to map to ULIP interface */        )</pre>For example, the following initializes a ULIP device whoseInternet address is 127.0.1.1:<pre>    ulipInit (0, "127.0.1.1", "147.11.1.132", 1);</pre>The standard network interface call is:<pre>    STATUS ulattach        (        int unit  /* unit number */        )</pre>However, it should not be called.  The following call will deletethe first ULIP interface from the list of network interfaces:<pre>    ulipDelete (0);     /* unit number */</pre>Up to NULIP(2) units may be created.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./if_ulip.html#top">if_ulip</a></b>, <i>VxWorks Programmer's Guide: VxSim</i><hr><a name="ulipInit"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>ulipInit</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>ulipInit</i>(&nbsp;)</strong> - initialize the ULIP interface (VxSim)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS ulipInit    (    int    unit,     /* ULIP unit number (0 - NULIP-1) */    char * myAddr,   /* IP address of the interface */    char * peerAddr, /* IP address of the remote peer interface */    int    procnum   /* processor number to map to ULIP interface */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine initializes the ULIP interface and sets the Internetaddress as a function of the processor number.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the device cannot be opened or there isinsufficient memory.<p></blockquote><h4>ERRNO</h4><blockquote><p>S_if_ul_INVALID_UNIT_NUMBER<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./if_ulip.html#top">if_ulip</a></b>, <i>VxSim User's Guide </i><hr><a name="ulattach"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>ulattach</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>ulattach</i>(&nbsp;)</strong> - attach a ULIP interface to a list of network interfaces (VxSim)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS ulattach    (    int unit /* ULIP unit number */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine is called by <b><i><a href="./if_ulip.html#ulipInit">ulipInit</a></i>(&nbsp;)</b>.  It inserts a pointerto the ULIP interface data structure into a linked list of availablenetwork interfaces.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK or ERROR.<p></blockquote><h4>ERRNO</h4><blockquote><p>S_if_ul_UNIT_ALREADY_INITIALIZED<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./if_ulip.html#top">if_ulip</a></b>, <i>VxSim User's Guide </i><hr><a name="ulipDelete"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>ulipDelete</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>ulipDelete</i>(&nbsp;)</strong> - delete a ULIP interface (VxSim)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS ulipDelete    (    int unit /* ULIP unit number */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine detaches the ULIP unit and frees up system resources taken upby this ULIP interface.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the unit number is invalid or the interfaceis uninitialized.<p></blockquote><h4>ERRNO</h4><blockquote><p>S_if_ul_INVALID_UNIT_NUMBER, S_if_ul_UNIT_UNINITIALIZED<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./if_ulip.html#top">if_ulip</a></b>, <i>VxSim User's Guide </i><hr><a name="ulStartOutput"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>ulStartOutput</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>ulStartOutput</i>(&nbsp;)</strong> - push packets onto "interface"</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>#ifdef BSD43_DRIVER LOCAL STATUS ulStartOutput    (    int unit    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./if_ulip.html#top">if_ulip</a></b><hr><a name="ulipDebugSet"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>ulipDebugSet</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>ulipDebugSet</i>(&nbsp;)</strong> - Set debug flag in UNIX's ULIP driver</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS ulipDebugSet    (    int debugFlag    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This function uses an ioctl call to UNIX's (Solaris's) ULIP driver to set that driver's debugging flag to the value in debugFlag.  Because there is no simple way for the caller to assertain the unit number of the interface in use, all unit numbers are looped over and each receives the ioctl.  Possible values for the debug flag are discussed above in this file, although all thelevels have not been implemented.<p>This is not the right place to put this function (user callable routineswould be more appropriately placed in <b>simLib.h</b>). Because of the requirement to use both Sun structures (to bundle ioctl data) and VxWorks structures (ul_softc), and given the same requirements when calling the FIOSETUSED ioctl, this seems the best place to put it.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK or ERROR if the ioctl fails</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./if_ulip.html#top">if_ulip</a></b></body></html>

⌨️ 快捷键说明

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