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

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

?? pppshow.c

?? vxworks的完整的源代碼
?? 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一区二区三区免费野_久草精品视频
亚洲最新视频在线观看| 国产精品欧美经典| 欧美日精品一区视频| 波多野结衣欧美| 大尺度一区二区| 国产成人综合精品三级| 国产精品1区2区3区| 国产河南妇女毛片精品久久久| 精品综合久久久久久8888| 青草国产精品久久久久久| 日本成人在线电影网| 日韩激情一区二区| 免费观看在线综合| 精品中文av资源站在线观看| 国产精品一区在线| 成人一区二区三区在线观看| 成人黄色a**站在线观看| 成人高清av在线| 91丨九色丨蝌蚪丨老版| 欧洲精品在线观看| 欧美疯狂性受xxxxx喷水图片| 欧美人动与zoxxxx乱| 91精品麻豆日日躁夜夜躁| 欧美刺激午夜性久久久久久久| 欧美成人一区二区三区片免费 | 中文字幕亚洲一区二区av在线| 中国av一区二区三区| 一区二区三区成人| 性做久久久久久| 国产真实乱子伦精品视频| 成人h动漫精品一区二| 欧美在线短视频| 精品国产一区二区亚洲人成毛片 | 日韩精品一区二区三区视频在线观看 | 欧美影院一区二区三区| 欧美日韩aaa| 国产视频911| 亚洲久草在线视频| 日韩电影一二三区| 成人app在线观看| 欧美群妇大交群中文字幕| 精品va天堂亚洲国产| 中文字幕一区视频| 日日噜噜夜夜狠狠视频欧美人| 国产一二三精品| 91国模大尺度私拍在线视频| 日韩一区二区在线看| 国产精品不卡视频| 日韩av电影免费观看高清完整版 | 国产在线乱码一区二区三区| 99精品视频在线播放观看| 欧美剧情片在线观看| 国产日韩三级在线| 亚洲国产视频一区二区| 国产精品99久久久久久宅男| 欧美在线视频你懂得| 久久综合99re88久久爱| 亚洲午夜私人影院| 国产成人精品影视| 欧美日韩国产片| 中文无字幕一区二区三区 | 欧美专区亚洲专区| 久久亚洲一区二区三区四区| 亚洲成人综合网站| 成人免费看黄yyy456| 日韩一区二区精品在线观看| 日韩理论片在线| 国产一区二区三区香蕉| 欧美色老头old∨ideo| 国产日韩综合av| 麻豆91免费看| 欧美三区在线观看| 中文字幕一区二区三区不卡在线| 韩国毛片一区二区三区| 欧美剧情电影在线观看完整版免费励志电影| 欧美国产日韩亚洲一区| 日日噜噜夜夜狠狠视频欧美人| 91亚洲资源网| 国产精品色噜噜| 国产精品1区2区| 精品国产91洋老外米糕| 日韩国产精品大片| 欧美性猛交xxxxxxxx| 国产精品不卡视频| 成人h精品动漫一区二区三区| 久久这里只有精品首页| 美脚の诱脚舐め脚责91| 欧美久久久久久久久久| 亚洲一区二区三区四区在线 | 久久综合丝袜日本网| 日韩国产欧美三级| 91精品一区二区三区久久久久久 | 风间由美一区二区av101 | 麻豆精品在线视频| 91精品国产综合久久福利软件| 一区二区三区日韩精品视频| 99精品欧美一区二区三区小说| 久久久高清一区二区三区| 国内久久精品视频| 欧美变态tickle挠乳网站| 热久久免费视频| 在线观看91精品国产麻豆| 天堂va蜜桃一区二区三区漫画版| 欧美色爱综合网| 日韩激情一二三区| 欧美日韩国产在线播放网站| 午夜精品一区二区三区电影天堂| 欧美日韩久久久一区| 亚洲午夜精品网| 欧美日韩夫妻久久| 秋霞电影网一区二区| 日韩三级视频在线看| 国内精品久久久久影院色| 精品成人a区在线观看| 国产裸体歌舞团一区二区| 久久久另类综合| 大胆亚洲人体视频| 亚洲精品v日韩精品| 欧洲精品在线观看| 日韩中文欧美在线| 精品欧美久久久| 国产麻豆视频一区二区| 国产精品久久久久久妇女6080| 99久久精品国产导航| 一区二区三区四区在线播放 | 国产精品毛片高清在线完整版| 懂色av中文字幕一区二区三区| 国产精品国产a级| 色综合av在线| 免费观看一级欧美片| 日本不卡的三区四区五区| 久久久国产一区二区三区四区小说 | 国产成a人亚洲| 亚洲欧洲日本在线| 欧美体内she精高潮| 男女视频一区二区| 国产欧美日韩麻豆91| 色综合激情久久| 美国毛片一区二区三区| 国产日韩亚洲欧美综合| 91久久国产综合久久| 青青草一区二区三区| 中文字幕不卡的av| 欧美日韩亚洲综合在线| 久久丁香综合五月国产三级网站 | 久久精品av麻豆的观看方式| 国产精品毛片久久久久久| 欧美日韩国产成人在线免费| 精品一区二区久久久| 中文字幕一区二区三区蜜月| 69久久99精品久久久久婷婷| 国产一区二区在线观看视频| 亚洲一区二区三区小说| 久久亚洲精精品中文字幕早川悠里 | 精品视频色一区| 国产在线播放一区| 亚洲国产日日夜夜| 国产亚洲精品aa午夜观看| 欧洲激情一区二区| 岛国一区二区三区| 麻豆精品国产传媒mv男同| 成人免费在线播放视频| 日韩免费观看2025年上映的电影 | 久久精品视频在线免费观看| 欧美三级电影精品| 北条麻妃国产九九精品视频| 蜜臀久久久久久久| 亚洲精品日韩综合观看成人91| 欧美精品一区二区三区蜜桃视频| 在线观看日韩国产| 国产白丝精品91爽爽久久| 欧美a一区二区| 亚洲一区二区三区在线看| 国产亲近乱来精品视频 | 青青青伊人色综合久久| 日韩一区在线免费观看| 26uuu精品一区二区三区四区在线| 欧美日韩一区二区三区四区 | 国产精品色呦呦| 日韩欧美国产精品一区| 欧洲亚洲精品在线| 91免费国产在线| 国产白丝精品91爽爽久久| 久久黄色级2电影| 午夜在线成人av| 亚洲天堂成人在线观看| 久久久久久久久久久久久久久99| 日韩亚洲欧美中文三级| 欧美亚日韩国产aⅴ精品中极品| 成人av电影免费观看| 国产精品1024| 狠狠色狠狠色综合| 色综合久久久久综合99| 成人avav影音| 成人黄色国产精品网站大全在线免费观看| 激情六月婷婷久久| 青青草成人在线观看| 青青草国产精品97视觉盛宴| 偷窥少妇高潮呻吟av久久免费| 亚洲一区二区视频在线|