cleanup
资源名称:cli.rar [点击查看]
上传用户:hujq123
上传日期:2016-04-10
资源大小:153k
文件大小:23k
源码类别:
Telnet服务器
开发平台:
Unix_Linux
- ffs_tst.c: * brief -
- ffs_tst.c:/*-----------------------------------------------------------*
- ffs_tst.c:/*------------------------------ Includes ------------------------------------*/
- ffs_tst.c:/*---------------------------- Test parameters -------------------------------*/
- ffs_tst.c: FfsTstPrintf(FfsTstHandle, " [%d] ----------- %20s == %dn", i, #command, command );
- ffs_tst.c: exit(-1);
- ffs_tst.c:/*----------------------- Directory creating / deletion ----------------------*/
- ffs_tst.c:/*------------------------ Recursive directory printing ----------------------*/
- ffs_tst.c: if (fd != -1 && close(fd)) {
- ffs_tst.c: return -1;
- ffs_tst.c:/*------------------------------- Event handler ------------------------------*/
- ffs_tst.c: exit(-1);
- ffs_tst.c: exit(-1);
- ffs_tst.c:/*-------------------------- Cycles handler ----------------------------*/
- ffs_tst.c: add_hi = pCycles->hi + pCyclesAccum->hi ;
- ffs_tst.c: add_lo = pCycles->lo + pCyclesAccum->lo ;
- ffs_tst.c: if ((add_lo < pCycles->lo) || (add_lo < pCyclesAccum->lo))
- ffs_tst.c: FfsTstPrintf(FfsTstHandle, "CyclesAdd #0 %08x %08xn", pCycles->hi, pCycles->lo) ;
- ffs_tst.c: FfsTstPrintf(FfsTstHandle, "CyclesAdd #1 %08x %08xn", pCyclesAccum->hi, pCyclesAccum->lo) ;
- ffs_tst.c: pCyclesAccum->hi = add_hi ;
- ffs_tst.c: pCyclesAccum->lo = add_lo ;
- ffs_tst.c: sub_hi = pCycles->hi - pCyclesAccum->hi ;
- ffs_tst.c: sub_lo = pCycles->lo - pCyclesAccum->lo ;
- ffs_tst.c: if (pCycles->lo < pCyclesAccum->lo)
- ffs_tst.c: sub_hi-- ;
- ffs_tst.c: FfsTstPrintf(FfsTstHandle, "CyclesSub #0 %08x %08xn", pCycles->hi, pCycles->lo) ;
- ffs_tst.c: FfsTstPrintf(FfsTstHandle, "CyclesSub #1 %08x %08xn", pCyclesAccum->hi, pCyclesAccum->lo) ;
- ffs_tst.c: pCyclesAccum->hi = sub_hi ;
- ffs_tst.c: pCyclesAccum->lo = sub_lo ;
- ffs_tst.c: pCycles->hi = 0 ;
- ffs_tst.c: pCycles->lo = 0 ;
- ffs_tst.c: pCycles->hi = hicycles() ;
- ffs_tst.c: pCycles->lo = cycles() ;
- ffs_tst.c: FfsTstPrintf(FfsTstHandle, "CyclesStart %08x %08xn", pCycles->hi, pCycles->lo) ;
- ffs_tst.c: FfsTstPrintf(FfsTstHandle, "CyclesDone %08x %08xn", pCyclesStart->hi, pCyclesStart->lo) ;
- ffs_tst.c: fLo = (float) pCycles->lo ;
- ffs_tst.c: fHi = pow(2.0, 32.0) * ((float) pCycles->hi) ;
- ffs_tst.c:/*-------------------------- File read/write test ----------------------------*/
- ffs_tst.c: if (fp == -1)
- ffs_tst.c: bytes_left -= transfer_size ;
- ffs_tst.c: if (fp == -1)
- ffs_tst.c: bytes_left -= transfer_size ;
- ffs_tst.c:/*------------------------------ Main program --------------------------------*/
- ffs_tst.c: FfsTstPrintf(FfsTstHandle, "--------------------------------------------------n");
- ffs_tst.c: FfsTstPrintf(FfsTstHandle, "--------------------------------------------------n");
- ffs_tst.c: while (nbytes-- != 0)
- ffs_tst.c: bytes_per_line-- ;
- Binary file libIB_NAME.a matches
- Makefile: rm ../lib/lib$(LIB_NAME).a -f
- Makefile: rm ../lib/lib$(LIB_NAME).so -f
- Makefile: $(CC) $(VM_INCLUDE) $(CFLAGS) -o $@ -c $<
- Makefile: $(CC) $(VM_INCLUDE) $(CFLAGS) -o $@ -c $<
- Makefile: $(CC) -o test main.cpp $(OBJS) $(CFLAGS) $(VM_INCLUDE) $(VM_LIBS)
- Makefile: rm $(OBJS) -f
- Makefile: rm $(LIBSO) -f
- Makefile: rm $(LIB) -f
- tw_cli.c: * brief -
- tw_cli.c:/*-----------------------------------------------------------*
- tw_cli.c:* ---------------
- tw_cli.c: * "CliXXXVoproc" (handler with arguments - variations and options). Help
- tw_cli.c: "--",
- tw_cli.c: "+---------------------------------------+n"
- tw_cli.c: "+---------------------------------------+n";
- tw_cli.c:* pSess - a pointer to a command session
- tw_cli.c:* str - a character string
- tw_cli.c:* len - length of the character string.
- tw_cli.c:* 0 - OK
- tw_cli.c:* -1 - Failed
- tw_cli.c: if (pSess->skipPrinting)
- tw_cli.c: /* If it's carriage return, perform end-of-line conversion. */
- tw_cli.c: if (cr || (idx == (len - 1))) {
- tw_cli.c: PrintLen = &(str[idx]) - pStrStart + 1;
- tw_cli.c: PrintLen -= cr;
- tw_cli.c: pSess->pSessFuns->write(pStrStart, PrintLen);
- tw_cli.c: pSess->pSessFuns->write(cr_buf, 2);
- tw_cli.c: pSess->pSessFuns->yield();
- tw_cli.c: if (pSess->pSessFuns->cleanup)
- tw_cli.c: pSess->pSessFuns->cleanup(pSess);
- tw_cli.c:* 0 if OK, -1 if failed.
- tw_cli.c: pSess->pSessFuns = NULL;
- tw_cli.c:* nsock - socket number returned by accept() or other equipvalent procedure.
- tw_cli.c: if (pSessFuns->init)
- tw_cli.c: pSessFuns->init();
- tw_cli.c: pSess->pSessFuns = pSessFuns;
- tw_cli.c: pSess->cmdSessionType = pSessFuns->sessionType;
- tw_cli.c: pSess->cmdState = CLI_ACCESS_CMD_NULL;
- tw_cli.c: pSess->historyNextNumber = 1;
- tw_cli.c: pSess->currentCmdMode = CLI_ACCESS_NO_MODE;
- tw_cli.c: pSess->myProductType = CLI_ACCESS_PRODUCT_1;
- tw_cli.c: pSess->pageLength = CLI_DEFAULT_PAGE_LENGTH;
- tw_cli.c:* Jcon_CLI_Task -
- tw_cli.c: pSessFuns->log("Can't initialize CLI.n");
- tw_cli.c: myChar = pCli_Session->pSessFuns->read_char();
- tw_cli.c: pSessFuns->yield();
- tw_cli.c: } while (Cli_ProcessCmd(&myChar, 1, pCli_Session) != -1);
- tw_cli.c:* Cli_Initialize - Initialize CLI for a JCON session.
- tw_cli.c:* int - 0 if no error, nonzero otherwise.
- tw_cli.c: RetVal = pSessFuns->create_task("jcli", Jcon_CLI_Task, 0, 8192, (void*)pSessFuns);
- tw_cli.c: pSessFuns->log("ERROR: Jcon_CLI_Task(jcli) failed! status = %dn", RetVal);
- tw_cli.c:* pSess - the pointer to the command session
- tw_cli.c:* 0 if OK, -1 if failed.
- tw_cli.c: pSess->currentRow++;
- tw_cli.c: pSess->currentRow = 0;
- tw_cli.c: pSess->scrollPause = 0;
- tw_cli.c: pSess->scrollPause = 1;
- tw_cli.c: OldLen = pSess->pageLength;
- tw_cli.c: pSess->pageLength = NewPageLen;
- tw_cli.c: *PageLen = pSess->pageLength;
- tw_cli.c: return (pSess->scrollPause);
- tw_cli.c:* 0 if OK, -1 if failed.
- tw_cli.c: pSess->skipPrinting = 0;
- tw_cli.c: return (Cli_Printf(pSess, "%s%d>", pSess->prompt, pSess->historyNextNumber));
- tw_cli.c:* 0 if OK, -1 if bad. A return of -1 must trigger a shutdown of this
- tw_cli.c: switch (pSess->cmdState)
- tw_cli.c: /* Add any special pre-loggin processing code here. Otherwise
- tw_cli.c: if (pSess->cmdSessionType == CLI_SERIAL_SESSION)
- tw_cli.c: memcpy(pSess->myUserName, CLI_LOGIN_OPERATOR, strlen(CLI_LOGIN_OPERATOR));
- tw_cli.c: pSess->cmdState = CLI_ACCESS_CMD_OPEN;
- tw_cli.c: pSess->cmdState = CLI_ACCESS_CMD_INIT;
- tw_cli.c: if (pSess->cmdBufIdx == 0) {
- tw_cli.c: return -1;
- tw_cli.c: pSess->cmdState = CLI_ACCESS_CMD_PROMPT_USER;
- tw_cli.c: pSess->cmdBuf[pSess->cmdBufIdx] = 0;
- tw_cli.c: if ( (pSess->cmdBufIdx == 0) || (pSess->cmdBufIdx > MAX_USERPASS_LEN) )
- tw_cli.c: return -1;
- tw_cli.c: memcpy(pSess->myUserName, pSess->cmdBuf, pSess->cmdBufIdx);
- tw_cli.c: pSess->myUserName[pSess->cmdBufIdx] = 0;
- tw_cli.c: return -1;
- tw_cli.c: pSess->cmdState = CLI_ACCESS_CMD_PROMPT_PASS;
- tw_cli.c: pSess->cmdBuf[pSess->cmdBufIdx] = 0;
- tw_cli.c: if ((pSess->cmdBufIdx > MAX_USERPASS_LEN) ||
- tw_cli.c: Cli_VerifyPassword(pSess, pSess->cmdBuf, pSess->cmdBufIdx) == -1)
- tw_cli.c: return -1;
- tw_cli.c: pSess->cmdState = CLI_ACCESS_CMD_INIT;
- tw_cli.c: pSess->loginFailedCount++;
- tw_cli.c: if (pSess->loginFailedCount > MAX_LOGIN_FAILURE)
- tw_cli.c: return -1;
- tw_cli.c: pSess->cmdState = CLI_ACCESS_CMD_OPEN;
- tw_cli.c: return -1;
- tw_cli.c: pSess->cmdBuf[pSess->cmdBufIdx] = 0;
- tw_cli.c: if(pSess->cmdBufIdx == 0)
- tw_cli.c: Cli_UpdateCmdHistory(pSess, pSess->cmdBuf, pSess->cmdBufIdx);
- tw_cli.c: if (Cli_ParseCmd(pSess, pSess->cmdBuf, pSess->cmdBufIdx) == -1)
- tw_cli.c: return -1;
- tw_cli.c: return -1;
- tw_cli.c: pSess->cmdBufIdx = 0;
- tw_cli.c: (pSess->cmdState == CLI_ACCESS_CMD_OPEN))
- tw_cli.c: pSess->cmdBuf[pSess->cmdBufIdx] = 't';
- tw_cli.c: pSess->cmdBufIdx++;
- tw_cli.c: pSess->cmdBuf[pSess->cmdBufIdx] = 0;
- tw_cli.c: return -1;
- tw_cli.c: Cli_UpdateCmdHistory(pSess, pSess->cmdBuf, pSess->cmdBufIdx);
- tw_cli.c: if ((j = Cli_ParseCmd(pSess, pSess->cmdBuf, pSess->cmdBufIdx)) == -1)
- tw_cli.c: return -1;
- tw_cli.c: return -1;
- tw_cli.c: if (j != -2)
- tw_cli.c: pSess->cmdBufIdx--;
- tw_cli.c: pSess->cmdBuf[pSess->cmdBufIdx] = 0;
- tw_cli.c: if (Cli_Printf(pSess, pSess->cmdBuf) < 0)
- tw_cli.c: return -1;
- tw_cli.c: pSess->cmdBufIdx = 0;
- tw_cli.c: if (pSess->cmdBufIdx > 0)
- tw_cli.c: pSess->cmdBufIdx--;
- tw_cli.c: return -1;
- tw_cli.c: if ( pSess->cmdBufIdx >= (CLI_ACCESS_CMDSTR_SIZE - 2) )
- tw_cli.c: if (pSess->cmdState == CLI_ACCESS_CMD_NULL)
- tw_cli.c: pSess->cmdBufIdx = 0;
- tw_cli.c: pSess->cmdBuf[pSess->cmdBufIdx] = msgbuf[i];
- tw_cli.c: pSess->cmdBufIdx++;
- tw_cli.c: if ((pSess->cmdState != CLI_ACCESS_CMD_INIT) &&
- tw_cli.c: (pSess->cmdState != CLI_ACCESS_CMD_PROMPT_PASS))
- tw_cli.c: return -1;
- tw_cli.c:* Cli_PrepareOpenSession - Displays session banner and initializes mode
- tw_cli.c:* int - 0 on success, -1 on failure.
- tw_cli.c: return -1;
- tw_cli.c: pSess->pageLength);
- tw_cli.c: return -1;
- tw_cli.c: if (baseCmdObj->optionList == NULL)
- tw_cli.c: while (baseCmdObj->optionList[i] != NULL)
- tw_cli.c: if ( (strlen(baseCmdObj->optionList[i]->name) == (unsigned int) thisCmdLen) &&
- tw_cli.c: !memcmp(baseCmdObj->optionList[i]->name, thisCmd, thisCmdLen))
- tw_cli.c: return baseCmdObj->optionList[i];
- tw_cli.c:* 0 if OK, -1 if failed.
- tw_cli.c: myAccessFlags = TO_ACCESS_FLAG(pSess->currentCmdMode) |
- tw_cli.c: TO_ACCESS_FLAG(pSess->myProductType);
- tw_cli.c: thisCmdLen = i - cmdPtr;
- tw_cli.c: if (baseCmdObj->optionList == NULL) {
- tw_cli.c: if (baseCmdObj->helpStr != NULL)
- tw_cli.c: if (Cli_Printf(pSess, baseCmdObj->helpStr) < 0)
- tw_cli.c: return -1;
- tw_cli.c: return -1;
- tw_cli.c: while (baseCmdObj->optionList[i] != NULL)
- tw_cli.c: if ((baseCmdObj->optionList[i]->accessFlag & myAccessFlags) == myAccessFlags)
- tw_cli.c: return -1;
- tw_cli.c: if (Cli_Printf(pSess, " %-16s ", baseCmdObj->optionList[i]->name) < 0)
- tw_cli.c: return -1;
- tw_cli.c: if (Cli_Printf(pSess, "%sn", baseCmdObj->optionList[i]->helpStr) < 0)
- tw_cli.c: return -1;
- tw_cli.c: if (baseCmdObj->helpFunc != NULL)
- tw_cli.c: return baseCmdObj->helpFunc(pSess, cmdStr, cmdPtr);
- tw_cli.c: if ((thisCmdObj->procFunc != NULL) &&
- tw_cli.c: ((thisCmdObj->accessFlag & myAccessFlags) == myAccessFlags))
- tw_cli.c: return -1 ;
- tw_cli.c: return thisCmdObj->procFunc(pSess, cmdStr, cmdPtr);
- tw_cli.c: return -1;
- tw_cli.c: if ((baseCmdObj->varOptFunc != NULL) &&
- tw_cli.c: ((baseCmdObj->accessFlag & myAccessFlags) == myAccessFlags))
- tw_cli.c: return -1 ;
- tw_cli.c: baseCmdObj->varOptFunc(pSess, cmdStr, oldCmdPtr);
- tw_cli.c: return -1;
- tw_cli.c: if (rootList[i]->accessFlag & accessflags)
- tw_cli.c: pSess->currentCmdMode = accessLevel;
- tw_cli.c: sprintf(pSess->prompt, "[%s]", modePrompt[accessLevel]);
- tw_cli.c:* 0 if verified OK, -1 if failed.
- tw_cli.c: if (!memcmp(pSess->myUserName, CLI_LOGIN_USER, strlen(CLI_LOGIN_USER)))
- tw_cli.c: else if (!memcmp(pSess->myUserName, CLI_LOGIN_OPERATOR, strlen(CLI_LOGIN_OPERATOR)))
- tw_cli.c: else if ( (!memcmp(pSess->myUserName, CLI_LOGIN_ENG, strlen(CLI_LOGIN_ENG))) ||
- tw_cli.c: (!memcmp(pSess->myUserName, CLI_LOGIN_ENG2, strlen(CLI_LOGIN_ENG2))) )
- tw_cli.c: else if (!memcmp(pSess->myUserName, CLI_LOGIN_BLO, strlen(CLI_LOGIN_BLO)))
- tw_cli.c: return -1;
- tw_cli.c: return -1;
- tw_cli.c:* 0 if OK, -1 if bad thing happened and the socket and session must be
- tw_cli.c: hptr = (pSess->historyPtr + CLI_ACCESS_HISTORY_DEPTH - 1 )% CLI_ACCESS_HISTORY_DEPTH;
- tw_cli.c: if (Cli_Printf(pSess, pSess->historyBuf[hptr]) < 0)
- tw_cli.c: return -1;
- tw_cli.c: return -1;
- tw_cli.c: if(pSess->historyNum[hptr] == histNum)
- tw_cli.c: return -1;
- tw_cli.c: if (Cli_Printf(pSess, pSess->historyBuf[hptr]) < 0)
- tw_cli.c: return -1;
- tw_cli.c: Cli_UpdateCmdHistory(pSess, pSess->historyBuf[hptr], strlen(pSess->historyBuf[hptr]));
- tw_cli.c: return Cli_Cmdprocessing(pSess, &Cli_WorkingRootCmdObj, pSess->historyBuf[hptr], 0, 0);
- tw_cli.c: memcpy(pSess->historyBuf[pSess->historyPtr], cmdBuf, len);
- tw_cli.c: pSess->historyBuf[pSess->historyPtr][len] = 0;
- tw_cli.c: pSess->historyNum[pSess->historyPtr] = pSess->historyNextNumber;
- tw_cli.c: pSess->historyPtr = (pSess->historyPtr + 1) % CLI_ACCESS_HISTORY_DEPTH;
- tw_cli.c: pSess->historyNextNumber++;
- tw_cli.c:* This is the basic function that does ALL the in-context CLI text input.
- tw_cli.c:* An in-context CLI text input is used when during processing of a command,
- tw_cli.c:* pSess - a pointer to a command session
- tw_cli.c:* >= 0 - the character returned
- tw_cli.c:* -1 - Failed
- tw_cli.c: while ((MyChar = pSess->pSessFuns->read_char()) == 0)
- tw_cli.c: pSess->pSessFuns->yield();
- tw_cli.c: * CLI utility functions - based on Cli_PutStr()
- tw_cli.c: if ((str[StrIdx] == 'n') || (StrIdx == (len - 1)))
- tw_cli.c: PrintLen = &(str[StrIdx]) - pStrStart + 1;
- tw_cli.c: if ((str[StrIdx] == 'n') && pSess->scrollPause)
- tw_cli.c: pSess->currentRow++;
- tw_cli.c: if (pSess->currentRow >= (pSess->pageLength - 1))
- tw_cli.c: pSess->skipPrinting = 1;
- tw_cli.c: /* Check for -1 */
- tw_cli.c: if (KeyPressed == -1)
- tw_cli.c: return -1;
- tw_cli.c:* pCmdSession - opaque pointer to a command session
- tw_cli.c:* 0 - OK
- tw_cli.c: vsprintf(pSess->scratchBuf, fmt, ap);
- tw_cli.c: pSess->scratchBuf[SCRATCH_BUF_SIZE-2] = 0;
- tw_cli.c: return Cli_PutStr(pSess, pSess->scratchBuf, strlen(pSess->scratchBuf));
- tw_cli.c:* pCmdSession - opaque pointer to a command session
- tw_cli.c:* ch - the character.
- tw_cli.c:* 0 - OK
- tw_cli.c:* -1 - Failed
- tw_cli.c:* pSess - pointer to the session.
- tw_cli.c:* -1 if Failed, likely cause is a bad socket.
- tw_cli.c:* pSess - pointer to the session.
- tw_cli.c:* -1 if Failed, likely cause is a bad socket.
- tw_cli.c: if (Cli_SendCrLf(pSess) == -1) return -1;
- tw_cli.c: if (Cli_Printf(pSess, "%c", Character) == -1) return -1;
- tw_cli.c: if (Cli_SendCrLf(pSess) == -1) return -1;
- tw_cli.c:* pSess - pointer to the session.
- tw_cli.c:* FileName - pointer to a filename string.
- tw_cli.c:* -1 if Failed, likely cause is a bad socket.
- tw_cli.c: while (fgets(ScratchPadStr, (sizeof(ScratchPadStr) - 1), fp) != NULL )
- tw_cli.c: return -1;
- tw_cli.c:* Cli_PrintData - Utility function for dumping memory
- tw_cli.c:* void-
- tw_cli.c:* parameter determines whether a zero-based index is displayed or the absolute
- tw_cli.c:**-**************************************************************************/
- tw_cli.c:* 0 if OK, -1 if convertion error. Both addr & mask are returned in network
- tw_cli.c: return -1;
- tw_cli.c: return -1;
- tw_cli.c: return -1;
- tw_cli.c: return -1;
- tw_cli.c: return -1;
- tw_cli.c: return -1;
- tw_cli_fs.c: * brief -
- tw_cli_fs.c:/*-----------------------------------------------------------*
- tw_cli_fs.c:/*** 2nd level CLI Command Option - fs "copy"
- tw_cli_fs.c:/*** 2nd level CLI Command Option - fs "crc"
- tw_cli_fs.c:/*** 2nd level CLI Command Option - fs "dir"
- tw_cli_fs.c:/*** 2nd level CLI Command Option - fs "delete"
- tw_cli_fs.c:/*** 2nd level CLI Command Option - fs "dump"
- tw_cli_fs.c:/*** 2nd level CLI Command Option - fs "test"
- tw_cli_fs.c:/*** 2nd level CLI Command Option - fs "type"
- tw_cli_fs.c:/*** 1st level CLI Command Option - "fs"
- tw_cli_fs.c: sprintf(FullFileName, "%s/%s", DirName, pDirEntry->d_name);
- tw_cli_fs.c: Cli_Printf(pSess, "%-20s", pDirEntry->d_name);
- tw_cli_fs.c:* ffs_test_task - Flash file system test task
- tw_cli_fs.c:* ffs_test_start - Start flash file system test task
- tw_cli_fs.c:* ffs_test - test flash file system
- tw_cli.h: * brief -
- tw_cli.h:/*-----------------------------------------------------------*
- tw_cli.h:#define CLI_ACCESS_BLO_MODE 4 /* "BLO" - backdoor access */
- tw_cli.h: Cli_SessionFuns_t *pSessFuns; /* the socket, if -1 this entry is free */
- tw_cli_ints.c: * brief -
- tw_cli_ints.c:/*-----------------------------------------------------------*
- tw_cli_ints.c:* tw_cli_ints.c - Command line interface commands for interrupt management
- tw_cli_ints.c:** 2nd level CLI Command Option - vr "stats"
- tw_cli_ints.c:** 2nd level CLI Command Option - vr "log_threshold"
- tw_cli_ints.c:** 2nd level CLI Command Option - vr "offenders"
- tw_cli_ints.c:** 1st level CLI Command Option - "int"
- tw_cli_ints.c:* CliCoProc_IntMax - Display maximum interrupt disable interval
- tw_cli_ints.c:* int - 0 on success, -1 on failure.
- tw_cli_ints.c: return -1;
- tw_cli_ints.c: return -1;
- tw_cli_ints.c: return -1;
- tw_cli_ints.c: " -------------------------------------------------------------n") < 0)
- tw_cli_ints.c: return -1;
- tw_cli_ints.c:* CliCoVoProc_IntLogThreshold - Set logging threshold for interrupt disable interval
- tw_cli_ints.c:* int - 0 on success, -1 on failure.
- tw_cli_ints.c:* CliCoProc_Offenders - Print top interrupt disable offenders
- tw_cli_ints.c:* int - 0 on success, -1 on failure.
- tw_cli_ints.c:**-**************************************************************************/
- tw_cli_ip.c: * brief -
- tw_cli_ip.c:/*-----------------------------------------------------------*
- tw_cli_ip.c:/*** 3rd level CLI Command Option - ip arp "flush"
- tw_cli_ip.c:/*** 3rd level CLI Command Option - ip route "add"
- tw_cli_ip.c:/*** 3rd level CLI Command Option - ip route "del"
- tw_cli_ip.c:/*** 3rd level CLI Command Option - ip netdev "down"
- tw_cli_ip.c:/*** 3rd level CLI Command Option - ip netdev "up"
- tw_cli_ip.c:/*** 2nd level CLI Command Option - ip "arp"
- tw_cli_ip.c:/*** 2nd level CLI Command Option - ip "route"
- tw_cli_ip.c:/*** 1st level CLI Command Option - "ip"
- tw_cli_ip.c:/*** 3rd level CLI Command Option - show ip "arp"
- tw_cli_ip.c:/*** 3rd level CLI Command Option - show ip "netdev"
- tw_cli_ip.c:/*** 3rd level CLI Command Option - show ip "udp"
- tw_cli_ip.c:/*** 3rd level CLI Command Option - show ip "tcp"
- tw_cli_ip.c:/*** 3rd level CLI Command Option - show ip "heap"
- tw_cli_ip.c:/*** 3rd level CLI Command Option - show ip "route"
- tw_cli_ip.c:/*** 2nd level CLI Command Option - show "ip"
- tw_cli_ip.c:* 0 if OK, -1 if bad.
- tw_cli_ip.c: if (Cli_IpAndMask2int(GwIpStr, &GwIpAddress, NULL) == -1)
- tw_cli_ip.c: if (Cli_IpAndMask2int(IpAndMaskStr, &DstIpAddress, &DstIpMask) == -1)
- tw_cli_ip.c:* 0 if OK, -1 if bad.
- tw_cli_ip.c: if (Cli_IpAndMask2int(IpAndMaskStr, &DstIpAddress, &DstIpMask) == -1)
- tw_cli_ip.c:* 0 if OK, -1 if bad.
- tw_cli_ip.c: if (Cli_IpAndMask2int(pb, &ipaddress, &ipmask) == -1)
- tw_cli_ip.c:* 0 if OK, -1 if bad.
- tw_cli_ip.c: if (Cli_IpAndMask2int(pb, &ipaddress, &ipmask) == -1)
- tw_cli_ip.c:* 0 if OK, -1 if bad.
- tw_cli_ip.c:* 0 if OK, -1 if bad.
- tw_cli_ip.c:* 0 if OK, -1 if bad.
- tw_cli_ip.c: return -1;
- tw_cli_ip.c:* 0 if OK, -1 if bad.
- tw_cli_mem.c: * brief -
- tw_cli_mem.c:/*-----------------------------------------------------------*
- tw_cli_mem.c:/*** 2nd level CLI Command Option - mem "check"
- tw_cli_mem.c:/*** 2nd level CLI Command Option - mem "detail"
- tw_cli_mem.c:/*** 2nd level CLI Command Option - mem "summary"
- tw_cli_mem.c:/*** 2nd level CLI Command Option - mem "task"
- tw_cli_mem.c:/*** 2nd level CLI Command Option - mem "test"
- tw_cli_mem.c:/*** 2nd level CLI Command Option - mem "dump"
- tw_cli_mem.c:/*** 1st level CLI Command Option - "mem"
- tw_cli_mem.c: Cli_Printf(pSess, "test free() of non-sdramn") ;
- tw_cli_mem.c: tp[-1] = 0 ;
- tw_cli_misc_cmd.c: * brief -
- tw_cli_misc_cmd.c:/*-----------------------------------------------------------*
- tw_cli_misc_cmd.c:/*** 1st level CLI Command Option - "exit"
- tw_cli_misc_cmd.c:/*** 1st level CLI Command Option - "history"
- tw_cli_misc_cmd.c:* 0 if OK, -1 if bad.
- tw_cli_misc_cmd.c: return -1;
- tw_cli_misc_cmd.c:* 0 if OK, -1 if bad.
- tw_cli_misc_cmd.c: for (i = CLI_ACCESS_HISTORY_DEPTH; i >= 1; i--)
- tw_cli_misc_cmd.c: hptr = (pSess->historyPtr + CLI_ACCESS_HISTORY_DEPTH - i )% CLI_ACCESS_HISTORY_DEPTH;
- tw_cli_misc_cmd.c: if (pSess->historyNum[hptr] == 0)
- tw_cli_misc_cmd.c: sprintf(numStr, "%10d ", pSess->historyNum[hptr]);
- tw_cli_misc_cmd.c: cmd = pSess->historyBuf[hptr];
- tw_cli_misc_cmd.c: return -1;
- tw_cli_misc_cmd.c: return -1;
- tw_cli_page.c: * brief -
- tw_cli_page.c:/*-----------------------------------------------------------*
- tw_cli_page.c:/*** 2nd level CLI Command Option - page "length"
- tw_cli_page.c:/*** 2nd level CLI Command Option - page "off"
- tw_cli_page.c:/*** 2nd level CLI Command Option - page "on"
- tw_cli_page.c:/*** 1st level CLI Command Option - "page"
- tw_cli_page.c:* 0 if OK, -1 if bad.
- tw_cli_ping.c: * brief -
- tw_cli_ping.c:/*-----------------------------------------------------------*
- tw_cli_ping.c: byteval = (byteval * 10) + (*strbuf - '0');
- tw_cli_ping.c:* iadk_ping - Send an echo request to a host.
- tw_cli_ping.c:* int - 0 if no error, -1 otherwise.
- tw_cli_ping.c: result = -1;
- tw_cli_ping.c: printf("nPING: Param Count = %dn", FieldCount-1);
- tw_cli_ping.c: if (param[0] == '-')
- tw_cli_ping.c: if ((dstaddr = inet_addr(hostName)) == (unsigned int)-1)
- tw_cli_ping.c: memcpy(&dstaddr, h->h_addr, sizeof(dstaddr));
- tw_cli_show.c: * brief -
- tw_cli_show.c:/*-----------------------------------------------------------*
- tw_cli_show.c:/*** 2nd level CLI Command Option - show "system"
- tw_cli_show.c:/*** 2nd level CLI Command Option - show "sock"
- tw_cli_show.c:/*** 1st level CLI Command Option - show
- tw_cli_show.c:* 0 if OK, -1 if bad.
- tw_cli_show.c://FIXTHIS for non-Fusion
- tw_cli_show.c: if (Cli_Printf(pSess, "Router SysUptime(s) = %-10dn",
- tw_cli_show.c: return -1;
- tw_cli_show.c:* 0 if OK, -1 if bad.
- tw_cli_task.c: * brief -
- tw_cli_task.c:/*-----------------------------------------------------------*
- tw_cli_task.c:/*** 3rd level CLI Command Option - task profile "start"
- tw_cli_task.c:/*** 3rd level CLI Command Option - task profile "stop"
- tw_cli_task.c:/*** 3rd level CLI Command Option - task profile "freq"
- tw_cli_task.c:/*** 2nd level CLI Command Option - task "threshold"
- tw_cli_task.c:/*** 2nd level CLI Command Option - task "clr"
- tw_cli_task.c:/*** 2nd level CLI Command Option - task "max"
- tw_cli_task.c:/*** 2nd level CLI Command Option - task "list"
- tw_cli_task.c:/*** 2nd level CLI Command Option - task "calls"
- tw_cli_task.c:/*** 2nd level CLI Command Option - task "switches"
- tw_cli_task.c:/*** 2nd level CLI Command Option - task "stacks"
- tw_cli_task.c:/*** 2nd level CLI Command Option - task "profile"
- tw_cli_task.c:/*** 1st level CLI Command Option - "task"
- tw_cli_task.c:* CliCoVoProc_TaskLogThreshold - Set logging threshold for unpreempted CPU usage.
- tw_cli_task.c:* int - 0 on success, -1 on failure.
- tw_cli_webclnt.c: * brief -
- tw_cli_webclnt.c:/*-----------------------------------------------------------*
- tw_cli_webclnt.c: "usage: wget [-q] <url> [filename]",
- tw_cli_webclnt.c: return -1;
- tw_cli_webclnt.c: for(i=0; i<(argc-1); i++)
- tw_cli_webclnt.c: case '-':
- tw_cli_webclnt.c: bytes, loops, cycles()-start_cycles) ;
- tw_cli_webclnt.c:/* len -= sts;*/
- tw_cli_webclnt.c: len -= sts ;