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

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

?? ipcp.c

?? vxwork源代碼
?? C
?? 第 1 頁 / 共 3 頁
字號:
	GETCHAR(citype, p); \	GETCHAR(cilen, p); \	if (cilen != addrlen || \	    citype != opt) \	    goto bad; \	GETLONG(l, p); \	cilong = htonl(l); \	if (val1 != cilong) \	    goto bad; \	if (old) { \	    GETLONG(l, p); \	    cilong = htonl(l); \	    if (val2 != cilong) \		goto bad; \	} \    }    ACKCIADDR((go->old_addrs? CI_ADDRS: CI_ADDR), go->neg_addr,	      go->old_addrs, go->ouraddr, go->hisaddr);    ACKCIVJ(CI_COMPRESSTYPE, go->neg_vj, go->vj_protocol, go->old_vj,	    go->maxslotindex, go->cflag);    /*     * If there are any remaining CIs, then this packet is bad.     */    if (len != 0)	goto bad;    return (1);bad:    IPCPDEBUG((LOG_INFO, "ipcp_ackci: received bad Ack!"));    return (0);}/* * ipcp_nakci - Peer has sent a NAK for some of our CIs. * This should not modify any state if the Nak is bad * or if IPCP is in the OPENED state. * * Returns: *	0 - Nak was bad. *	1 - Nak was good. */static intipcp_nakci(f, p, len)    fsm *f;    u_char *p;    int len;{    ipcp_options *go = &ppp_if[f->unit]->ipcp_gotoptions;    u_char cimaxslotindex = 0, cicflag = 0;    u_char citype, cilen, *next;    u_short cishort;    u_long ciaddr1, ciaddr2, l;    ipcp_options no;		/* options we've seen Naks for */    ipcp_options try;		/* options to request next time */    BZERO((char *)&no, sizeof(no));    try = *go;    /*     * Any Nak'd CIs must be in exactly the same order that we sent.     * Check packet length and CI length at each step.     * If we find any deviations, then this packet is bad.     */#define NAKCIADDR(opt, neg, old, code) \    if (go->neg && \	len >= (cilen = (old? CILEN_ADDRS: CILEN_ADDR)) && \	p[1] == cilen && \	p[0] == opt) { \	len -= cilen; \	INCPTR(2, p); \	GETLONG(l, p); \	ciaddr1 = htonl(l); \	if (old) { \	    GETLONG(l, p); \	    ciaddr2 = htonl(l); \	    no.old_addrs = 1; \	} else \	    ciaddr2 = 0; \	no.neg = 1; \	code \    }#define NAKCIVJ(opt, neg, code) \    if (go->neg && \	((cilen = p[1]) == CILEN_COMPRESS || cilen == CILEN_VJ) && \	len >= cilen && \	p[0] == opt) { \	len -= cilen; \	INCPTR(2, p); \	GETSHORT(cishort, p); \	no.neg = 1; \        code \    }    /*     * Accept the peer's idea of {our,his} address, if different     * from our idea, only if the accept_{local,remote} flag is set.     */    NAKCIADDR(CI_ADDR, neg_addr, go->old_addrs,              if (go->accept_local && ciaddr1) { /* Do we know our address? */                  try.ouraddr = ciaddr1;                  IPCPDEBUG((LOG_INFO, "local IP address %s",                             ip_ntoa(ciaddr1)));              }              if (go->accept_remote && ciaddr2) { /* Does he know his? */                  try.hisaddr = ciaddr2;                  IPCPDEBUG((LOG_INFO, "remote IP address %s",                             ip_ntoa(ciaddr2)));              }              );    /*     * Accept the peer's value of maxslotindex provided that it     * is less than what we asked for.  Turn off slot-ID compression     * if the peer wants.  Send old-style compress-type option if     * the peer wants.     */    NAKCIVJ(CI_COMPRESSTYPE, neg_vj,	    if (cilen == CILEN_VJ) {                GETCHAR(cimaxslotindex, p);                GETCHAR(cicflag, p);		if (cishort == IPCP_VJ_COMP) {		    try.old_vj = 0;		    if (cimaxslotindex < go->maxslotindex)			try.maxslotindex = cimaxslotindex;		    if (!cicflag)			try.cflag = 0;		} else {		    try.neg_vj = 0;		}	    } else {		if (cishort == IPCP_VJ_COMP || cishort == IPCP_VJ_COMP_OLD) {		    try.old_vj = 1;		    try.vj_protocol = cishort;		} else {		    try.neg_vj = 0;		}	    }	    );    /*     * There may be remaining CIs, if the peer is requesting negotiation     * on an option that we didn't include in our request packet.     * If they want to negotiate about IP addresses, we comply.     * If they want us to ask for compression, we refuse.     */    while (len > CILEN_VOID) {	GETCHAR(citype, p);	GETCHAR(cilen, p);	if( (len -= cilen) < 0 )	    goto bad;	next = p + cilen - 2;	switch (citype) {	case CI_COMPRESSTYPE:	    if (go->neg_vj || no.neg_vj ||		(cilen != CILEN_VJ && cilen != CILEN_COMPRESS))		goto bad;	    no.neg_vj = 1;	    break;	case CI_ADDRS:	    if ((go->neg_addr && go->old_addrs) || no.old_addrs		|| cilen != CILEN_ADDRS)		goto bad;	    try.neg_addr = 1;	    try.old_addrs = 1;	    GETLONG(l, p);	    ciaddr1 = htonl(l);	    if (ciaddr1 && go->accept_local)		try.ouraddr = ciaddr1;	    GETLONG(l, p);	    ciaddr2 = htonl(l);	    if (ciaddr2 && go->accept_remote)		try.hisaddr = ciaddr2;	    no.old_addrs = 1;	    break;	case CI_ADDR:	    if (go->neg_addr || no.neg_addr || cilen != CILEN_ADDR)		goto bad;	    try.neg_addr = 1;	    try.old_addrs = 0;	    GETLONG(l, p);	    ciaddr1 = htonl(l);	    if (ciaddr1 && go->accept_local)		try.ouraddr = ciaddr1;	    no.neg_addr = 1;	    break;	default:	    goto bad;	}	p = next;    }    /* If there is still anything left, this packet is bad. */    if (len != 0)	goto bad;    /*     * OK, the Nak is good.  Now we can update state.     */    if (f->state != OPENED)	*go = try;    return 1;bad:    IPCPDEBUG((LOG_INFO, "ipcp_nakci: received bad Nak!"));    return 0;}/* * ipcp_rejci - Reject some of our CIs. */static intipcp_rejci(f, p, len)    fsm *f;    u_char *p;    int len;{    ipcp_options *go = &ppp_if[f->unit]->ipcp_gotoptions;    u_char cimaxslotindex, ciflag, cilen;    u_short cishort;    u_long cilong;    ipcp_options try;		/* options to request next time */    try = *go;    /*     * Bring down link if peer rejects the IPCP address configuration option,     * since if the IP address can't be negotiated then the link is useless.     */    /*     * Any Rejected CIs must be in exactly the same order that we sent.     * Check packet length and CI length at each step.     * If we find any deviations, then this packet is bad.     */#define REJCIADDR(opt, neg, old, val1, val2) \    if (go->neg && \	len >= (cilen = old? CILEN_ADDRS: CILEN_ADDR) && \	p[1] == cilen && \	p[0] == opt) { \	u_long l; \        die(f->unit, 1); /* not to protocol spec. see note in ipcp_close() */ \	len -= cilen; \	INCPTR(2, p); \	GETLONG(l, p); \	cilong = htonl(l); \	/* Check rejected value. */ \	if (cilong != val1) \	    goto bad; \	if (old) { \	    GETLONG(l, p); \	    cilong = htonl(l); \	    /* Check rejected value. */ \	    if (cilong != val2) \		goto bad; \	} \	try.neg = 0; \    }#define REJCIVJ(opt, neg, val, old, maxslot, cflag) \    if (go->neg && \	p[1] == (old? CILEN_COMPRESS : CILEN_VJ) && \	len >= p[1] && \	p[0] == opt) { \	len -= p[1]; \	INCPTR(2, p); \	GETSHORT(cishort, p); \	/* Check rejected value. */  \	if (cishort != val) \	    goto bad; \	if (!old) { \	   GETCHAR(cimaxslotindex, p); \	   if (cimaxslotindex != maxslot) \	     goto bad; \	   GETCHAR(ciflag, p); \	   if (ciflag != cflag) \	     goto bad; \        } \	try.neg = 0; \     }    REJCIADDR((go->old_addrs? CI_ADDRS: CI_ADDR), neg_addr,	      go->old_addrs, go->ouraddr, go->hisaddr);    REJCIVJ(CI_COMPRESSTYPE, neg_vj, go->vj_protocol, go->old_vj,	    go->maxslotindex, go->cflag);    /*     * If there are any remaining CIs, then this packet is bad.     */    if (len != 0)	goto bad;    /*     * Now we can update state.     */    if (f->state != OPENED)	*go = try;    return 1;bad:    IPCPDEBUG((LOG_INFO, "ipcp_rejci: received bad Reject!"));    return 0;}/* * ipcp_reqci - Check the peer's requested CIs and send appropriate response. * * Returns: CONFACK, CONFNAK or CONFREJ and input packet modified * appropriately.  If reject_if_disagree is non-zero, doesn't return * CONFNAK; returns CONFREJ if it can't return CONFACK. */static intipcp_reqci(f, inp, len, reject_if_disagree)    fsm *f;    u_char *inp;                /* Requested CIs */    int *len;                   /* Length of requested CIs */    int reject_if_disagree;{    ipcp_options *wo = &ppp_if[f->unit]->ipcp_wantoptions;    ipcp_options *ho = &ppp_if[f->unit]->ipcp_hisoptions;    ipcp_options *ao = &ppp_if[f->unit]->ipcp_allowoptions;    ipcp_options *go = &ppp_if[f->unit]->ipcp_gotoptions;    u_char *cip, *next;		/* Pointer to current and next CIs */    u_short cilen, citype;	/* Parsed len, type */    u_short cishort;		/* Parsed short value */    u_long tl, ciaddr1, ciaddr2;/* Parsed address values */    int rc = CONFACK;		/* Final packet return code */    int orc;			/* Individual option return code */    u_char *p;			/* Pointer to next char to parse */    u_char *ucp = inp;		/* Pointer to current output char */    int l = *len;		/* Length left */    u_char maxslotindex, cflag;    /*     * Reset all his options.     */    BZERO((char *)ho, sizeof(*ho));        /*     * Process all his options.     */    next = inp;    while (l) {	orc = CONFACK;			/* Assume success */	cip = p = next;			/* Remember begining of CI */	if (l < 2 ||			/* Not enough data for CI header or */	    p[1] < 2 ||			/*  CI length too small or */	    p[1] > l) {			/*  CI length too big? */	    IPCPDEBUG((LOG_INFO, "ipcp_reqci: bad CI length!"));	    orc = CONFREJ;		/* Reject bad CI */	    cilen = l;			/* Reject till end of packet */	    l = 0;			/* Don't loop again */	    goto endswitch;	}	GETCHAR(citype, p);		/* Parse CI type */	GETCHAR(cilen, p);		/* Parse CI length */	l -= cilen;			/* Adjust remaining length */	next += cilen;			/* Step to next CI */	switch (citype) {		/* Check CI type */	case CI_ADDRS:	    IPCPDEBUG((LOG_INFO, "ipcp: received ADDRS "));	    if (!ao->neg_addr ||		cilen != CILEN_ADDRS) {	/* Check CI length */		orc = CONFREJ;		/* Reject CI */		break;	    }	    /*	     * If he has no address, or if we both have his address but	     * disagree about it, then NAK it with our idea.	     * In particular, if we don't know his address, but he does,	     * then accept it.	     */	    GETLONG(tl, p);		/* Parse source address (his) */	    ciaddr1 = htonl(tl);	    IPCPDEBUG((LOG_INFO, "(%s:", ip_ntoa(ciaddr1)));	    if (ciaddr1 != wo->hisaddr                && (ciaddr1 == 0 || !wo->accept_remote)) {		orc = CONFNAK;		if (!reject_if_disagree) {		    DECPTR(sizeof (long), p);		    tl = ntohl(wo->hisaddr);		    PUTLONG(tl, p);		}	    }	    /*	     * If he doesn't know our address, or if we both have our address	     * but disagree about it, then NAK it with our idea.	     */	    GETLONG(tl, p);		/* Parse desination address (ours) */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
白白色 亚洲乱淫| 狠狠色综合色综合网络| 一区二区三区欧美视频| 亚洲精品欧美在线| 亚洲精品国产一区二区精华液 | 精品国产凹凸成av人网站| 国产麻豆91精品| 色综合久久久久久久| 日韩一级完整毛片| 国产亚洲午夜高清国产拍精品| 2024国产精品| 亚洲综合色噜噜狠狠| 一区二区三区欧美| 粉嫩高潮美女一区二区三区| 99热99精品| 欧美狂野另类xxxxoooo| 欧美日本在线视频| 亚洲欧洲精品一区二区三区不卡| 视频一区视频二区中文| 大白屁股一区二区视频| 欧美日韩久久不卡| 国产亚洲欧美色| 亚洲一区二区在线免费看| 国产成人精品亚洲日本在线桃色| 在线观看一区二区精品视频| 久久精品亚洲精品国产欧美kt∨ | 国产精品久久99| 另类人妖一区二区av| 欧美最猛黑人xxxxx猛交| 国产日产欧美一区二区三区 | 激情综合亚洲精品| 欧美在线影院一区二区| 中文字幕在线观看一区| 婷婷成人激情在线网| 一本一道综合狠狠老| 日韩理论在线观看| av动漫一区二区| 中文字幕乱码日本亚洲一区二区| 国产曰批免费观看久久久| 亚洲综合成人在线视频| 日韩在线一区二区三区| 一本到不卡免费一区二区| 日韩毛片一二三区| 99麻豆久久久国产精品免费| 国产精品久久久久久久久久久免费看| 日本欧美加勒比视频| 欧美中文字幕不卡| 亚洲国产毛片aaaaa无费看 | 777亚洲妇女| 日本91福利区| 欧美一区二区三区四区高清| 久久国产精品免费| 91精品国产综合久久久久久久| 水野朝阳av一区二区三区| 51久久夜色精品国产麻豆| 免费人成精品欧美精品| 国产欧美一区二区精品性| 97久久精品人人做人人爽50路| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆 | 国产寡妇亲子伦一区二区| 666欧美在线视频| 亚洲自拍偷拍av| 日韩三级高清在线| 成人中文字幕在线| 日韩综合小视频| 中文一区二区在线观看| 欧美在线观看一二区| 偷偷要91色婷婷| 国产精品区一区二区三区| 91免费版pro下载短视频| 亚洲综合成人在线视频| 久久久久久久av麻豆果冻| 成人久久久精品乱码一区二区三区| 91蝌蚪国产九色| 亚洲国产三级在线| 国产日韩欧美a| 精品国产一区久久| 91麻豆精品国产91久久久使用方法| 国产99精品国产| 韩国av一区二区三区| 依依成人精品视频| 国产午夜亚洲精品羞羞网站| 欧美美女bb生活片| 欧美精品一级二级三级| 欧美做爰猛烈大尺度电影无法无天| 九九**精品视频免费播放| 亚州成人在线电影| 亚洲精品自拍动漫在线| 亚洲精品一线二线三线| 精品91自产拍在线观看一区| 亚洲精品久久7777| 日韩三级视频在线看| 欧美精品一卡二卡| 亚洲h动漫在线| 欧美一区二区三区的| 国产91富婆露脸刺激对白| 日韩午夜在线播放| 午夜国产不卡在线观看视频| 久久99精品视频| 91精品福利在线| 欧美日精品一区视频| 天天操天天干天天综合网| 日本欧美大码aⅴ在线播放| 欧美一区二区三区人| 久久99久久久欧美国产| 久久精品免费在线观看| 成人va在线观看| 亚洲免费av高清| 欧美电影在线免费观看| 国产suv精品一区二区三区| 一区二区三区电影在线播| 99精品视频在线播放观看| 91麻豆精品国产91久久久久久| 亚洲成a人片综合在线| 精品国产一区二区三区不卡 | 国内精品久久久久影院色| 在线看国产一区| 亚洲成人免费在线| 欧美日韩精品福利| 秋霞午夜鲁丝一区二区老狼| 免费高清成人在线| 欧美一区二区三区日韩| 欧美图区在线视频| 一区二区三区在线视频观看58| 51午夜精品国产| 欧美日韩精品综合在线| 欧美吞精做爰啪啪高潮| 亚洲精品一区二区三区四区高清| 亚洲男人天堂av| 国产一区不卡精品| 欧美大白屁股肥臀xxxxxx| 亚洲国产你懂的| 欧美日本在线视频| 亚洲成人激情av| 日韩一区二区不卡| 美女一区二区视频| 日韩一区二区三区免费看| 欧美三级蜜桃2在线观看| 国产精品女人毛片| 成人ar影院免费观看视频| 国产午夜精品一区二区三区视频| 国内精品伊人久久久久av影院 | 久久久久国色av免费看影院| 久久97超碰国产精品超碰| 精品成人私密视频| 91在线一区二区三区| 亚洲人成小说网站色在线| 99久精品国产| 午夜欧美大尺度福利影院在线看| 欧美一区二区三区精品| 国产美女主播视频一区| 国产精品免费av| 欧美肥妇bbw| 91在线视频网址| 亚洲成年人影院| 国产精品毛片无遮挡高清| 成人永久aaa| 老司机一区二区| 久久免费视频一区| 欧美日韩国产天堂| 国产一区欧美一区| 亚洲午夜在线电影| 国产亚洲成aⅴ人片在线观看 | 欧美日韩亚洲高清一区二区| 国产成a人亚洲精| 亚洲一区成人在线| 中文av一区二区| 精品久久久久久久久久久久久久久 | 成人a区在线观看| 亚洲成a人片在线观看中文| 中文字幕一区免费在线观看| 久久亚洲春色中文字幕久久久| 在线精品视频一区二区| 国产米奇在线777精品观看| 免费av成人在线| 一片黄亚洲嫩模| 中文字幕在线一区二区三区| 日韩精品一区二区三区中文不卡 | 春色校园综合激情亚洲| 91在线视频官网| 精品免费日韩av| 欧美一区二区视频免费观看| 91激情在线视频| 色狠狠桃花综合| 成人综合婷婷国产精品久久蜜臀| 日日摸夜夜添夜夜添精品视频| 亚洲欧美一区二区久久| 亚洲免费观看在线观看| 国产精品美女久久久久久久久 | 日韩欧美第一区| 久久你懂得1024| **欧美大码日韩| 午夜不卡av在线| 国产东北露脸精品视频| 91丝袜美腿高跟国产极品老师| 日本韩国精品一区二区在线观看| 色婷婷精品大在线视频| 色婷婷av一区二区三区软件 | 成人晚上爱看视频| 99精品国产视频|