亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? pppshow.c

?? vxwork源代碼
?? C
字號:
/* pppShow.c - Point-to-Point Protocol show routines *//* Copyright 1995-1999 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------01j,14mar99,jdi  doc: removed refs to config.h and/or configAll.h (SPR 25663).01i,11jul95,dzb  more doc tweaks.01h,06jul95,dzb  doc tweaks.01g,23jun95,dzb  changed to pppInfoGet() to copy out structures.                 added PAP stats to pppInfoShow().01f,15jun95,dzb  header file consolidation.01e,08may95,dzb  Added pppSecretShow().01d,07mar95,dzb  Changed "ip packets" tp be  a real count of IP packets.                 additional doc/formatting.01c,09feb95,dab  changed pppInfoShow() format.  removed lcp_echo_fails_reached.                 included VJ, mtu, and mru info (SPR #4045).01b,13jan95,dzb  warnings cleanup.  changed to include pppShow.h.  ANSI-fied.01a,21dec94,dab  VxWorks port - first WRS version.	   +dzb  added: path for ppp header files, WRS copyright.*//*DESCRIPTIONThis library provides routines to show Point-to-Point Protocol (PPP) linkstatus information and statistics.  Also provided are routines thatprogrammatically access this same information.This library is automatically linked into the VxWorks system image whenthe configuration macro INCLUDE_PPP is defined.INCLUDE FILES: pppLib.hSEE ALSO: pppLib,.pG "Network"*//* includes */#include <vxWorks.h>#include <stdio.h>#include <ioctl.h>#include <net/mbuf.h>#include <sys/types.h>#include <sys/socket.h>#include <net/if.h>#include <netinet/in.h>#include <netinet/in_systm.h>#include <netinet/ip.h>#include <netinet/ip_var.h>#include "pppLib.h"/* pointer to the per task variables */extern PPP_TASK_VARS *ppp_if[];extern struct ppp_softc *ppp_softc[];static char *link_phase[] =    {    "DEAD",    "ESTABLISH",    "AUTHENTICATE",    "NETWORK",    "TERMINATE"    };static char *link_state[] =    {    "INITIAL",    "STARTING",    "CLOSED",    "STOPPED",    "CLOSING",    "STOPPING",    "REQUEST SENT",    "ACK RECEIVED",    "ACK SENT",    "OPENED"    };static char *client_pap_state[] =    {    "INITIAL",    "CLOSED",    "PENDING",    "AUTHENTICATION REQ",    "OPEN",    "BAD AUTHENTICATION"    };static char *server_pap_state[] =    {    "INITIAL",    "CLOSED",    "PENDING",    "LISTEN",    "OPEN",    "BAD AUTHENTICATION"    };static char *client_chap_state[] =    {    "INITIAL",    "CLOSED",    "PENDING",    "LISTEN",    "RESPONSE",    "OPEN"    };static char *server_chap_state[] =    {    "INITIAL",    "CLOSED",    "PENDING",    "INITIAL CHALLENGE",    "OPEN",    "RECHALLENGE",    "BAD AUTHENTICATION"    };/******************************************************************************** pppShowInit - initialize the PPP show facility** This routine links the PPP show facility into the VxWorks system image.* It is called from usrNetwork.c when the configuration macro INCLUDE_PPP* is defined.** RETURNS: N/A** NOMANUAL*/void pppShowInit (void)    {    }/********************************************************************************* pppInfoShow - display PPP link status information** This routine displays status information pertaining to each initialized* Point-to-Point Protocol (PPP) link, regardless of the link state.* State and option information is gathered for the Link Control Protocol* (LCP), Internet Protocol Control Protocol (IPCP), Password Authentication* Protocol (PAP), and Challenge-Handshake Authentication Protocol (CHAP).** RETURNS: N/A** SEE ALSO: pppLib*/void pppInfoShow (void)    {    FAST int i;    FAST PPP_TASK_VARS *tmp;    /* per task PPP variables */    int link_found = 0;    int n;    for (i = 0; i < NPPP; i++)	{	if ((tmp = ppp_if[i]) == NULL)	    continue;	link_found = 1;	printf ("ppp%d\r\n", i);	printf ("\tLCP Stats\r\n");	printf ("\t\t%-30.30s  %s\r\n", "LCP phase", link_phase[tmp->phase]);	printf ("\t\t%-30.30s  %s\r\n", "LCP state",		link_state[tmp->lcp_fsm.state]);	printf ("\t\t%-30.30s  %s\r\n", "passive",	        tmp->lcp_wantoptions.passive ? "ON" : "OFF");	printf ("\t\t%-30.30s  %s\r\n", "silent",	        tmp->lcp_wantoptions.silent ? "ON" : "OFF");	printf ("\t\t%-30.30s  %s\r\n", "restart",	        tmp->lcp_wantoptions.restart ? "ON" : "OFF");        if (tmp->lcp_fsm.state == OPENED)            {            ppptioctl (i, PPPIOCGMRU, (caddr_t) &n);            printf ("\t\t%-30.30s  %d\r\n", "mru", n);            ppptioctl (i, SIOCGIFMTU, (caddr_t) &n);            printf ("\t\t%-30.30s  %d\r\n", "mtu", n);            ppptioctl (i, PPPIOCGASYNCMAP, (caddr_t) &n);            printf ("\t\t%-30.30s  0x%x\r\n", "async map", n);            printf ("\t\t%-30.30s  0x%x\r\n", "local magic number",                    tmp->lcp_gotoptions.magicnumber);            printf ("\t\t%-30.30s  %s\r\n", "protocol field compression",                    tmp->lcp_gotoptions.neg_pcompression ? "ON" : "OFF");            printf ("\t\t%-30.30s  %s\r\n", "addr/ctrl field compression",                    tmp->lcp_gotoptions.neg_accompression ? "ON" : "OFF");            }	printf ("\t\t%-30.30s  %s\r\n", "lcp echo timer",	        tmp->lcp_echo_timer_running ? "ON" : "OFF");        if (tmp->lcp_echo_timer_running)            {	    printf ("\t\t%-30.30s  %d\r\n", "lcp echos pending",	            tmp->lcp_echos_pending);	    printf ("\t\t%-30.30s  %d\r\n", "lcp echo number",	            tmp->lcp_echo_number);    	    printf ("\t\t%-30.30s  %d\r\n", "lcp echo interval",	            tmp->lcp_echo_interval);            printf ("\t\t%-30.30s  %d\r\n", "lcp echo fails",	            tmp->lcp_echo_fails);            }        printf ("\tIPCP Stats\r\n");        printf ("\t\t%-30.30s  %s\r\n", "IPCP state",                link_state[tmp->ipcp_fsm.state]);             if (tmp->ipcp_fsm.state == OPENED)            {            printf ("\t\t%-30.30s  %s\r\n", "local IP address",                    ip_ntoa(tmp->ipcp_gotoptions.ouraddr));            printf ("\t\t%-30.30s  %s\r\n", "remote IP address",                    ip_ntoa(tmp->ipcp_hisoptions.hisaddr));            printf ("\t\t%-30.30s  %s\r\n", "vj compression protocol",                     tmp->ipcp_gotoptions.neg_vj ? "ON" : "OFF");            }	printf ("\tPAP Stats\r\n");	printf ("\t\t%-30.30s  %s\r\n", "client PAP state",	        client_pap_state[tmp->upap.us_clientstate]);	printf ("\t\t%-30.30s  %s\r\n", "server PAP state",	        server_pap_state[tmp->upap.us_serverstate]);	printf ("\tCHAP Stats\r\n");	printf ("\t\t%-30.30s  %s\r\n", "client CHAP state",	        client_chap_state[tmp->chap.clientstate]);	printf ("\t\t%-30.30s  %s\r\n", "server CHAP state",	        server_chap_state[tmp->chap.serverstate]);	printf ("\n");        }    if (!link_found)	printf ("No PPP links are present\r\n");    }/********************************************************************************* pppInfoGet - get PPP link status information** This routine gets status information pertaining to the specified* Point-to-Point Protocol (PPP) link, regardless of the link state.* State and option information is gathered for the Link Control Protocol* (LCP), Internet Protocol Control Protocol (IPCP), Password Authentication* Protocol (PAP), and Challenge-Handshake Authentication Protocol (CHAP).** The PPP link information is returned through a PPP_INFO structure, which* is defined in h/netinet/ppp/pppShow.h.** RETURNS: OK, or ERROR if <unit> is an invalid PPP unit number.** SEE ALSO: pppLib*/STATUS pppInfoGet    (    int unit,		/* PPP interface unit number to examine */    PPP_INFO *pInfo	/* PPP_INFO structure to be filled */    )    {    FAST PPP_TASK_VARS *tmp;    if (unit < 0 || unit > NPPP || (tmp = ppp_if[unit]) == NULL ||	pInfo == NULL)        return (ERROR);    /* LCP variables */    BCOPY (&tmp->lcp_wantoptions, &pInfo->lcp_wantoptions,	sizeof(struct lcp_options));    BCOPY (&tmp->lcp_gotoptions, &pInfo->lcp_gotoptions,	sizeof(struct lcp_options));    BCOPY (&tmp->lcp_allowoptions, &pInfo->lcp_allowoptions,	sizeof(struct lcp_options));    BCOPY (&tmp->lcp_hisoptions, &pInfo->lcp_hisoptions,	sizeof(struct lcp_options));    BCOPY (&tmp->lcp_fsm, &pInfo->lcp_fsm, sizeof(struct fsm));    pInfo->lcp_echos_pending = tmp->lcp_echos_pending;    pInfo->lcp_echo_number = tmp->lcp_echo_number;    pInfo->lcp_echo_timer_running = tmp->lcp_echo_timer_running;    pInfo->lcp_echo_interval = tmp->lcp_echo_interval;    pInfo->lcp_echo_fails = tmp->lcp_echo_fails;    /* IPCP variables */     BCOPY (&tmp->ipcp_wantoptions, &pInfo->ipcp_wantoptions,	sizeof(struct ipcp_options));    BCOPY (&tmp->ipcp_gotoptions, &pInfo->ipcp_gotoptions,	sizeof(struct ipcp_options));    BCOPY (&tmp->ipcp_allowoptions, &pInfo->ipcp_allowoptions,	sizeof(struct ipcp_options));    BCOPY (&tmp->ipcp_hisoptions, &pInfo->ipcp_hisoptions,	sizeof(struct ipcp_options));    BCOPY (&tmp->ipcp_fsm, &pInfo->ipcp_fsm, sizeof(struct fsm));    /* authentication variables */     BCOPY (&tmp->upap, &pInfo->upap, sizeof(struct upap_state));    BCOPY (&tmp->chap, &pInfo->chap, sizeof(struct chap_state));    return (OK);    }/********************************************************************************* pppstatShow - display PPP link statistics** This routine displays statistics for each initialized Point-to-Point* Protocol (PPP) link.  Detailed are the numbers of bytes and packets received * and sent through each PPP interface.** RETURNS: N/A** SEE ALSO: pppLib*/void pppstatShow (void)    {    FAST int i;    FAST struct ppp_softc *tmp;    int link_found = 0;    for (i = 0; i < NPPP; i++)	{	if ((tmp = ppp_softc[i]) == NULL)	    continue;	link_found = 1;	printf ("ppp%d\r\n", i);	printf ("\tInput\r\n");	printf ("\t\t%-30.30s  %d\r\n", "total bytes ", tmp->sc_bytesrcvd);	printf ("\t\t%-30.30s  %d\r\n", "total packets ",	        tmp->sc_if.if_ipackets);	printf ("\t\t%-30.30s  %d\r\n", "ip packets ", tmp->sc_iprcvd);	printf ("\t\t%-30.30s  %d\r\n", "VJ compressed packets ",	        tmp->sc_comp.sls_compressedin);	printf ("\t\t%-30.30s  %d\r\n", "VJ uncompressed packets ",	        tmp->sc_comp.sls_uncompressedin);	printf ("\t\t%-30.30s  %d\r\n", "VJ uncompress errors",	        tmp->sc_comp.sls_errorin);	printf ("\tOutput\r\n");	printf ("\t\t%-30.30s  %d\r\n", "total bytes ", tmp->sc_bytessent);	printf ("\t\t%-30.30s  %d\r\n", "total packets ",		tmp->sc_if.if_opackets);	printf ("\t\t%-30.30s  %d\r\n", "ip packets ", tmp->sc_ipsent);	printf ("\t\t%-30.30s  %d\r\n", "VJ compressed packets ",	        tmp->sc_comp.sls_compressed);	printf ("\t\t%-30.30s  %d\r\n", "VJ uncompressed packets ",	        tmp->sc_comp.sls_packets - tmp->sc_comp.sls_compressed);        }    if (!link_found)        printf ("No PPP links are present\r\n");    }/********************************************************************************* pppstatGet - get PPP link statistics** This routine gets statistics for the specified Point-to-Point Protocol* (PPP) link.  Detailed are the numbers of bytes and packets received * and sent through the PPP interface.** The PPP link statistics are returned through a PPP_STAT structure, which* is defined in h/netinet/ppp/pppShow.h.** RETURNS: OK, or ERROR if <unit> is an invalid PPP unit number.** SEE ALSO: pppLib*/STATUS pppstatGet    (    int unit,			/* PPP interface unit number to examine */    PPP_STAT *pStat		/* PPP_STAT structure to be filled */    )    {    FAST struct ppp_softc *tmp;    if (unit < 0 || unit > NPPP || (tmp = ppp_softc[unit]) == NULL ||	pStat == NULL)	return (ERROR);    pStat->in_bytes = tmp->sc_bytesrcvd;    pStat->in_pkt = tmp->sc_if.if_ipackets;    pStat->in_ip_pkt = tmp->sc_iprcvd;    pStat->in_vj_compr_pkt = tmp->sc_comp.sls_compressedin;    pStat->in_vj_uncompr_pkt = tmp->sc_comp.sls_uncompressedin;    pStat->in_vj_compr_error = tmp->sc_comp.sls_errorin;        pStat->out_bytes = tmp->sc_bytessent;    pStat->out_pkt = tmp->sc_if.if_opackets;    pStat->out_ip_pkt = tmp->sc_ipsent;    pStat->out_vj_compr_pkt = tmp->sc_comp.sls_compressed;    pStat->out_vj_uncompr_pkt = tmp->sc_comp.sls_packets -	tmp->sc_comp.sls_compressed;    return (OK);    }/********************************************************************************* pppSecretShow - display the PPP authentication secrets table** This routine displays the Point-to-Point Protocol (PPP) authentication* secrets table.  The information in the secrets table may be used by the* Password Authentication Protocol (PAP) and Challenge-Handshake Authentication* Protocol (CHAP) user authentication protocols.** RETURNS: N/A** SEE ALSO: pppLib, pppSecretAdd(), pppSecretDelete()*/void pppSecretShow (void)    {    PPP_SECRET *	pSecret = pppSecretHead;    if (pSecret == NULL)				/* list empty ? */	return;    /* printout header */    printf ("PPP AUTHENTICAITON SECRETS:\n");    printf ("client            server            secret            address list\n");    printf ("-------------------------------------------------------------------------------\n");    /* printout secrets */    for (; pSecret != NULL; pSecret = pSecret->secretNext)	{	printf ("%-17.17s ", pSecret->client);	printf ("%-17.17s ", pSecret->server);	printf ("%-17.17s ", pSecret->secret);	printf ("%-25.25s\n", pSecret->addrs);	}    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精彩视频一区二区| 欧美视频精品在线| 国产一区免费电影| 国产精品一二三四区| 亚洲成人综合网站| 亚洲综合清纯丝袜自拍| 亚洲欧美日本韩国| 中文字幕亚洲电影| 日韩欧美电影一区| 欧美草草影院在线视频| 91精品国产综合久久香蕉的特点| 国产盗摄视频一区二区三区| 国产精品一区二区久久不卡 | 日韩一区二区在线观看视频播放| 国产精品一区二区在线播放| 高清日韩电视剧大全免费| 国产在线不卡一区| 国产激情精品久久久第一区二区| 国产精品99久久久久久似苏梦涵| 国产又粗又猛又爽又黄91精品| 日本在线播放一区二区三区| 麻豆一区二区在线| 久久爱另类一区二区小说| 精品一区二区三区免费毛片爱| 日韩av高清在线观看| 久久国产成人午夜av影院| 欧美丝袜丝交足nylons| 欧美日韩国产精品成人| 欧美一级视频精品观看| 精品裸体舞一区二区三区| 久久综合九色综合97婷婷女人 | 麻豆国产欧美日韩综合精品二区| 美女视频黄久久| 久久福利视频一区二区| 国产在线精品一区二区夜色| 国产精一区二区三区| 成人久久视频在线观看| 成人av手机在线观看| 国产不卡高清在线观看视频| av不卡免费在线观看| 在线免费亚洲电影| 欧美一区二区性放荡片| 国产人伦精品一区二区| 国产精品午夜春色av| 亚洲男人的天堂在线观看| 婷婷久久综合九色国产成人| 免费亚洲电影在线| 国产精品亚洲а∨天堂免在线| 韩国成人精品a∨在线观看| 91啪九色porn原创视频在线观看| 欧美亚洲尤物久久| 日韩一区二区在线播放| 亚洲免费在线观看| 丝袜诱惑制服诱惑色一区在线观看 | 国产在线日韩欧美| 91免费在线播放| 欧美精选午夜久久久乱码6080| 精品国产乱码久久久久久1区2区 | 国产欧美一区二区三区沐欲| 一区二区三区不卡视频| 精品伊人久久久久7777人| 不卡一区二区在线| 日韩欧美一区二区视频| 亚洲视频免费在线观看| 日本成人在线视频网站| 香蕉久久夜色精品国产使用方法 | 欧美在线免费播放| 欧美韩日一区二区三区| 亚洲午夜精品久久久久久久久| 国内外成人在线| 欧美精品电影在线播放| 国产精品天干天干在线综合| 午夜影院在线观看欧美| 韩国三级电影一区二区| 欧美性猛交xxxx乱大交退制版| 欧美精品一区二区不卡| 亚洲一区二区三区四区五区黄 | 国产成人亚洲综合色影视| 欧美在线看片a免费观看| 久久色在线视频| 美女性感视频久久| 91福利国产精品| 久久九九久久九九| 久久精品国产99国产| 欧美优质美女网站| 欧美激情艳妇裸体舞| 久久国产尿小便嘘嘘| 欧美亚洲国产一区在线观看网站| 国产日韩欧美制服另类| 午夜精品久久久久久久久| 色综合av在线| 亚洲午夜私人影院| 波多野结衣的一区二区三区| 亚洲国产高清aⅴ视频| 麻豆精品一区二区综合av| 欧美亚洲国产怡红院影院| 亚洲狠狠丁香婷婷综合久久久| 国产aⅴ综合色| 精品不卡在线视频| 中文字幕一区在线观看视频| 国产成人免费视| 精品国产自在久精品国产| 日本欧美久久久久免费播放网| 欧美日韩一区在线观看| 最新热久久免费视频| 国产精品资源站在线| 欧美不卡一区二区三区四区| 亚洲国产成人精品视频| 在线观看视频一区二区欧美日韩| 国产精品久线观看视频| 国产一区福利在线| 国产亚洲精品超碰| 国产一区二区久久| 精品国产乱码久久久久久浪潮| 免费精品视频最新在线| 91丨porny丨中文| 中文字幕制服丝袜成人av| 成人污污视频在线观看| 日韩毛片精品高清免费| 91丨porny丨在线| 亚洲欧美日韩国产一区二区三区 | 成人激情午夜影院| 中文字幕一区在线观看视频| 成人v精品蜜桃久久一区| 国产精品色在线观看| 一本大道久久a久久精二百 | 福利一区在线观看| 亚洲欧洲日韩在线| 色综合亚洲欧洲| 亚洲一区二区三区视频在线播放| www.亚洲在线| 性感美女极品91精品| 91精品欧美一区二区三区综合在| 亚洲成人www| 精品国产免费视频| 国产成人在线色| 最好看的中文字幕久久| 欧美日韩一区二区不卡| 三级在线观看一区二区| 日韩视频免费观看高清完整版| 日韩精品五月天| 久久亚洲一级片| 成人性视频免费网站| 中文字幕av一区二区三区免费看| 色偷偷久久一区二区三区| 亚洲一二三区在线观看| 这里只有精品免费| 懂色av中文一区二区三区| 国产精品久久99| 欧美艳星brazzers| 狠狠色2019综合网| 亚洲色图制服诱惑 | 成人免费视频视频| 中文字幕一区二区三区色视频 | 国产欧美视频在线观看| 欧美日精品一区视频| 国产一区二区91| 一区二区三区视频在线观看| 久久嫩草精品久久久精品一| 欧美在线视频日韩| 成人一区二区三区视频在线观看| 亚洲风情在线资源站| 国产精品天干天干在观线| 7777精品伊人久久久大香线蕉经典版下载 | 日韩成人伦理电影在线观看| 欧美激情一二三区| 日韩欧美国产小视频| 在线观看免费亚洲| 国产91在线|亚洲| 麻豆国产精品官网| 亚洲va国产天堂va久久en| 国产精品久久久久久久裸模| 精品sm在线观看| 91精品国产综合久久婷婷香蕉| 色综合久久天天| 成人动漫一区二区三区| 精品无人区卡一卡二卡三乱码免费卡| 亚洲国产视频一区二区| 18欧美亚洲精品| 国产精品女人毛片| 久久你懂得1024| 欧美刺激脚交jootjob| 欧美日韩一区二区在线观看| 波多野结衣中文一区| 国产乱对白刺激视频不卡| 麻豆精品一区二区| 午夜精品影院在线观看| 一区二区三区欧美日| 国产精品久久久久久久蜜臀| 国产午夜精品一区二区| 精品国产露脸精彩对白| 欧美一区二区在线视频| 制服视频三区第一页精品| 欧美私人免费视频| 欧美吞精做爰啪啪高潮| 精品视频在线看| 欧美调教femdomvk| 欧美日韩国产精品自在自线| 欧美视频完全免费看| 欧美色图天堂网|