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

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

?? mpbdlmanagement.c

?? 這是全套的PPP協(xié)議的源碼
?? C
?? 第 1 頁 / 共 3 頁
字號:
	/* Search the matching entry for the link in port array */		for (loopIndex = 0; loopIndex < pStackData->bundle.no_of_links; 	    														loopIndex++)		{		if (pStackData->bundle.memberLinks[loopIndex].pMemberStackObj == 																pMemberStackObj)			break;		}	if (loopIndex == pStackData->bundle.no_of_links)		return ERROR;		pLcpBundleOptions = 				pStackData->bundle.memberLinks [loopIndex].pLcpBundleOptions;	pSendingEndClass = &pStackData->bundle.sending_end;	/* if first link, construct sending end of the bundle */	if (pSendingEndClass->no_of_links == 0)		{		mp_initialize_sending_end_of_the_bundle (pMpFramingLayerState);		pSendingEndClass->remoteMRRU = pLcpBundleOptions->remoteMRRU;		pSendingEndClass->use_short_sequence_number = 				pLcpBundleOptions->use_short_sequence_number_in_tx_end;		pSendingEndClass->small_packet_length = 								pProfileData->mpFraming_smallPacketLength;		}	/* Construct link class for the link */	linkNumber = pSendingEndClass->no_of_links;	mp_initialize_sending_end_link_class (pMpFramingLayerState, linkNumber);	pSendingEndClass->links[linkNumber].pMemberStackObj = pMemberStackObj;	/* Get framework obj */	pfwObj = pfwStackObjPfwGet (pMemberStackObj);	if (pfwObj == NULL)		{		printf ("NULL Framework Reference\n");		return ERROR;		}	/* Get control layer state in the member stack */	pPluginObj = 		(PFW_PLUGIN_OBJ *) pfwPluginObjGet (pfwObj, "CONTROL_LAYER");	if (pPluginObj == NULL)		{		printf ("control layer does not exist in the framework\n");		return ERROR;		}	pState = pfwPluginObjStateGet (pMemberStackObj, pPluginObj);	if (pState == NULL)		{		printf ("control layer does not exist in the stack 0x%x\n", \						(int) pMemberStackObj);		return ERROR;		}	pSendingEndClass->links[linkNumber].pMpControlLayerState = pState;	/* Get interface layer state in the member stack */	pPluginObj = 		(PFW_PLUGIN_OBJ *) pfwPluginObjGet (pfwObj, "MP_INTERFACE_LAYER");	if (pPluginObj == NULL)		{		printf ("mpInterface layer does not exist in the framework 0x%x\n", \				 (int) pfwObj);		return ERROR;		}	pState = pfwPluginObjStateGet (pMemberStackObj, pPluginObj);	if (pState == NULL)		{		printf ("mpInterface layer layer does not exist in the stack 0x%x\n",  \				(int) pMemberStackObj);		return ERROR;		}	pSendingEndClass->links[linkNumber].pMpInterfaceLayerState = pState;	pSendingEndClass->links[linkNumber].remoteMru = 								pLcpBundleOptions->remoteMRU; 	pSendingEndClass->no_of_links++;	pSendingEndClass->aggregateMru += 		pSendingEndClass->links[linkNumber].remoteMru;	pSendingEndClass->total_bandwidth += 				pStackData->bundle.memberLinks[loopIndex].speed;	status = mp_bundle_sending_end_update_bandwidth_share_information 								(pMpFramingLayerState);	if (status == ERROR)		return ERROR;	status = mp_bundle_sending_end_update_mru_share_information 								(pMpFramingLayerState);	if (status == ERROR)		{		printf ("mru_share calculation failed\n");		return ERROR;		}	return OK;	}/******************************************************************************** mp_bundle_sending_end_update_bandwidth_share_information - *						Updates the bandwidth share of each link in the bundle** This functions calculates the percentage of the total BW available in the * sending end of the bundle provided by each member link 				* * RETURNS: OK or ERROR*/STATUS mp_bundle_sending_end_update_bandwidth_share_information 	(	PFW_PLUGIN_OBJ_STATE	*pMpFramingLayerState							/* mpFraming layer state representing the bundle */	)	{	MP_FRAMING_LAYER_STACK_DATA		*pStackData = NULL;	UINT 							loopIndex = 0;	USHORT 							linkNumber = 0;	MP_BUNDLE_SENDING_END_CLASS		*pSendingEndClass = NULL;	BYTE							total_percentage_so_far = 0;	if (pMpFramingLayerState == NULL)		return ERROR;	pStackData = (MP_FRAMING_LAYER_STACK_DATA *)pMpFramingLayerState->stackData;	pSendingEndClass = &pStackData->bundle.sending_end;	for (linkNumber = 0; linkNumber < pSendingEndClass->no_of_links;		 linkNumber++)		{		/* Search the matching entry for the link in port array */			for (loopIndex = 0; loopIndex < pStackData->bundle.no_of_links;     														loopIndex++)			{			if (pStackData->bundle.memberLinks[loopIndex].pMemberStackObj == 							pSendingEndClass->links[linkNumber].pMemberStackObj)			break;			}		if (loopIndex == pStackData->bundle.no_of_links)			return ERROR;			/* Calculate BW share information for the link */#if defined (__FLOATING_POINT_LIBRARY_AVAILABLE__)		pSendingEndClass->bandwidth_share [linkNumber] = 				(pStackData->bundle.memberLinks [loopIndex].speed / 				pSendingEndClass->total_bandwidth);#else		if ((linkNumber != (pSendingEndClass->no_of_links - 1)) && 			(pSendingEndClass->total_bandwidth != 0))			{			pSendingEndClass->bandwidth_share [linkNumber] = 					(pStackData->bundle.memberLinks [loopIndex].speed * 100/ 	 	  			 pSendingEndClass->total_bandwidth);				total_percentage_so_far += 					 (BYTE) pSendingEndClass->bandwidth_share [linkNumber];			}		else			pSendingEndClass->bandwidth_share [linkNumber] = 										(BYTE) (100 - total_percentage_so_far);#endif				}	return OK;		}/******************************************************************************** mp_bundle_sending_end_update_mru_share_information - *						Updates the remote MRU share of each link in the bundle** This functions calculates the percentage of the aggregate MRU available in the * sending end of the bundle provided by each member link 				* * RETURNS: OK or ERROR*/STATUS mp_bundle_sending_end_update_mru_share_information 	(	PFW_PLUGIN_OBJ_STATE	*pMpFramingLayerState							/* mpFraming layer state representing the bundle */	)	{	MP_FRAMING_LAYER_STACK_DATA		*pStackData = NULL;	USHORT 							linkNumber = 0;	MP_BUNDLE_SENDING_END_CLASS		*pSendingEndClass = NULL;	BYTE							total_percentage_so_far = 0;	if (pMpFramingLayerState == NULL)		return ERROR;	pStackData = (MP_FRAMING_LAYER_STACK_DATA *)pMpFramingLayerState->stackData;	pSendingEndClass = &pStackData->bundle.sending_end;	for (linkNumber = 0; linkNumber < pSendingEndClass->no_of_links;		 linkNumber++)		{		/* Calculate BW share information for the link */#if defined (__FLOATING_POINT_LIBRARY_AVAILABLE__)		pSendingEndClass->mru_share [linkNumber] = 				pSendingEndClass->links[linkNumber].remoteMru / 				pSendingEndClass->aggregateMru);#else		if ((linkNumber != (pSendingEndClass->no_of_links - 1)) && 			(pSendingEndClass->aggregateMru != 0))			{			pSendingEndClass->mru_share [linkNumber] = 					(pSendingEndClass->links[linkNumber].remoteMru * 100/ 	 	  			 pSendingEndClass->aggregateMru);				total_percentage_so_far += 					 (BYTE) pSendingEndClass->mru_share [linkNumber];			}		else			pSendingEndClass->mru_share [linkNumber] = 										(BYTE) (100 - total_percentage_so_far);#endif				}	return OK;		}/******************************************************************************** mp_initialize_sending_end_of_the_bundle - *						Initializes sending end of the class** This functions clears the sending end class of the given bundle* * RETURNS: N/A*/void mp_initialize_sending_end_of_the_bundle	(	PFW_PLUGIN_OBJ_STATE	*pMpFramingLayerState							/* mpFraming layer state representing the bundle */	)	{	MP_BUNDLE_SENDING_END_CLASS		*pSendingEndClass = NULL;	MP_FRAMING_LAYER_STACK_DATA		*pStackData = NULL;	if (pMpFramingLayerState == NULL)		return;	pStackData = (MP_FRAMING_LAYER_STACK_DATA *)pMpFramingLayerState->stackData;	pSendingEndClass = &(pStackData->bundle.sending_end);	/* Clear the sending end class of the bundle */	bzero ((void *)pSendingEndClass, sizeof (MP_BUNDLE_SENDING_END_CLASS));	}/******************************************************************************** mp_initialize_sending_end_link_class - *						Initializes sending end link class of the given link** This functions clears the sending end link class of the given link* * RETURNS: N/A*/LOCAL void mp_initialize_sending_end_link_class	(	PFW_PLUGIN_OBJ_STATE	*pMpFramingLayerState,							/* mpFraming layer state representing the bundle */	USHORT					linkNumber /* link number in the sending end */	)	{	MP_BUNDLE_SENDING_END_CLASS		*pSendingEndClass = NULL;	MP_FRAMING_LAYER_STACK_DATA		*pStackData = NULL;	if (pMpFramingLayerState == NULL)		return;	pStackData = (MP_FRAMING_LAYER_STACK_DATA *)pMpFramingLayerState->stackData;	pSendingEndClass = &(pStackData->bundle.sending_end);	/* Clear the sending end class of the bundle */	bzero ((void *)&pSendingEndClass->links[linkNumber], 				sizeof (MP_BUNDLE_SENDING_END_LINK_CLASS));	}/******************************************************************************** mp_construct_receiving_end_of_the_bundle - *						Constructs or updates the receiving end of the bundle** This function constructs the receiving end link class for the given link. If * the given link is the first link in the receiving end of the bundle, it * initializes the receiving end class of the bundle and configures the receiving * end parameters like local MRRU, MP header format etc. with the values * negotiated for the receiving end on the link. It times the link by sending echo* request packet on the link through LCP_MP_TIME_LINK_INTERFACE. When the LCP in * the member stack receives echo reply, it raises the ECHO_RECEIVED event which * MP_FRAMING_LAYER component subscribes for. In this event handler, it times the * link 				* * RETURNS: OK or ERROR*/LOCAL STATUS mp_construct_receiving_end_of_the_bundle	(	PFW_PLUGIN_OBJ_STATE	*pMpFramingLayerState,							/* mpFraming layer state representing the bundle */	PFW_STACK_OBJ			*pMemberStackObj /*stack obj representing the link*/	)	{	MP_FRAMING_LAYER_STACK_DATA		*pStackData = NULL;	UINT 							loopIndex = 0;	LCP_BUNDLE_OPTIONS				*pLcpBundleOptions = NULL;	USHORT 							linkNumber = 0;	PFW_OBJ							*pfwObj = NULL;	PFW_PLUGIN_OBJ_STATE			*pMemberLcpState = NULL;	PFW_PLUGIN_OBJ					*pPluginObj = NULL;	MP_BUNDLE_RECEIVING_END_CLASS	*pReceivingEndClass = NULL;	if ((pMpFramingLayerState == NULL) || (pMemberStackObj == NULL))		return ERROR;	pStackData = (MP_FRAMING_LAYER_STACK_DATA *)pMpFramingLayerState->stackData;	/* Search the matching entry for the link in port array */		for (loopIndex = 0; loopIndex < pStackData->bundle.no_of_links;     														loopIndex++)		{		if (pStackData->bundle.memberLinks[loopIndex].pMemberStackObj == 																pMemberStackObj)			break;		}	if (loopIndex == pStackData->bundle.no_of_links)		return ERROR;		pLcpBundleOptions = 				pStackData->bundle.memberLinks [loopIndex].pLcpBundleOptions;	pReceivingEndClass = &pStackData->bundle.receiving_end;	/* 	 * if first link in the receiving end, construct receiving end of the 	 * bundle 	 */	if (pReceivingEndClass->no_of_links == 0)		{		mp_initialize_receiving_end_of_the_bundle (pMpFramingLayerState);		pReceivingEndClass->localMRRU = pLcpBundleOptions->localMRRU;		pReceivingEndClass->use_short_sequence_number = 				pLcpBundleOptions->use_short_sequence_number_in_rx_end;		}	/* Construct link class for the link */	linkNumber = pReceivingEndClass->no_of_links;	mp_initialize_receiving_end_link_class (pMpFramingLayerState, linkNumber);	pReceivingEndClass->links [linkNumber].pMemberStackObj = pMemberStackObj;		pReceivingEndClass->links [linkNumber].localMRU = 				pLcpBundleOptions->localMRU;	/* Time the link */	/* Get framework obj */	pfwObj = pfwStackObjPfwGet (pMemberStackObj);	if (pfwObj == NULL)		{		printf ("NULL Framework Reference\n");		return ERROR;		}	/* Get LCP state in the member stack */	pPluginObj = 		(PFW_PLUGIN_OBJ *) pfwPluginObjGet (pfwObj, "PPP_LCP");		if (pPluginObj == NULL)		{		printf ("LCP component does not exist in the framework\n");		return ERROR;		}	pMemberLcpState = pfwPluginObjStateGet (pMemberStackObj, pPluginObj);		if (pMemberLcpState == NULL)		{		printf ("LCP component does not exist in the stack 0x%x\n", \							(int) pMemberStackObj);		return ERROR;		}#if 0	/* NOT SUPPORTED IN THIS RELEASE */	/* Send Echo Request packet */	(pStackData->pLcpPacketSendInterfaceObj->lcpEchoRequestSend) 				(pMemberLcpState);	/* Set Member LCP in MP Timing Mode */		(pStackData->pLcpMpLinkTimeInterfaceObj->lcpMPLinkTime) (pMemberLcpState);	pReceivingEndClass->links[linkNumber].clock_ticks_when_timer_starts = 				tickGet ();#endif /* NOT SUPPORTED IN THIS RELEASE */	 pReceivingEndClass->no_of_links++;	return OK;	}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成a人v欧美综合天堂下载| 亚洲国产综合人成综合网站| 日韩视频一区二区在线观看| 欧美日韩国产综合草草| 欧美色偷偷大香| 欧美va在线播放| 中文字幕一区二区三区在线播放| 国产精品国产精品国产专区不蜜 | 久久精品国产第一区二区三区| 香蕉av福利精品导航| 国产在线视频不卡二| 欧美在线影院一区二区| 精品国产精品网麻豆系列 | 欧美三级在线看| 精品国产a毛片| 亚洲国产日韩在线一区模特| 国产精品123区| 日韩一区二区不卡| 亚洲欧美日韩电影| 国产suv精品一区二区6| 91精品国产综合久久久蜜臀粉嫩| 中文字幕人成不卡一区| 国产在线国偷精品产拍免费yy| 欧美精三区欧美精三区| 一区二区三国产精华液| 粉嫩aⅴ一区二区三区四区 | 成人激情文学综合网| 久久久久国产精品麻豆| 美女诱惑一区二区| 日韩午夜av一区| 日本v片在线高清不卡在线观看| 日本久久一区二区三区| 一区二区在线观看视频在线观看| eeuss影院一区二区三区| 欧美国产日韩在线观看| 国产电影一区在线| 国产精品免费视频一区| 国产露脸91国语对白| 中文字幕第一区二区| 99久久国产综合精品麻豆| 成人免费一区二区三区视频| 色欧美日韩亚洲| 偷拍自拍另类欧美| 精品国产乱码久久| 99久久精品国产精品久久| 亚洲国产wwwccc36天堂| 中文字幕乱码久久午夜不卡| 色婷婷激情久久| 极品尤物av久久免费看| 中文字幕一区二区在线播放| 欧美性猛片xxxx免费看久爱| 国产麻豆成人传媒免费观看| 国产精品蜜臀av| 欧美一区二区三区在线视频| 风间由美一区二区av101| 亚洲午夜国产一区99re久久| 久久综合色婷婷| 91久久精品一区二区三| 国产高清成人在线| 免费视频最近日韩| 一区二区三区波多野结衣在线观看| 91精品国产综合久久精品图片| 丁香啪啪综合成人亚洲小说 | 欧美精品在欧美一区二区少妇| 精品一区二区三区久久久| 一区二区三区影院| 欧美国产激情一区二区三区蜜月| 欧美亚洲综合久久| 在线亚洲高清视频| 91日韩一区二区三区| 国产98色在线|日韩| 欧美亚洲动漫精品| 91久久一区二区| 91在线精品一区二区| 成人av资源网站| aa级大片欧美| 91久久久免费一区二区| 91麻豆swag| 欧美影院午夜播放| 欧美视频在线不卡| 欧美一区二区福利在线| 欧美mv日韩mv| 国产日韩一级二级三级| 国产精品视频麻豆| 夜夜揉揉日日人人青青一国产精品| 亚洲精品va在线观看| 亚洲另类色综合网站| www.av亚洲| k8久久久一区二区三区 | 国产精品久久久久四虎| 亚洲精品少妇30p| 视频一区欧美精品| 成人污视频在线观看| 欧美色窝79yyyycom| 日韩一区二区三区免费观看| 久久久欧美精品sm网站| 中文字幕一区在线| 九色|91porny| 欧美精品aⅴ在线视频| 国产精品家庭影院| 日韩成人一区二区三区在线观看| 精品综合久久久久久8888| 日本高清不卡一区| www国产成人免费观看视频 深夜成人网| 中国av一区二区三区| 精品在线亚洲视频| 91麻豆精品国产91久久久更新时间| 国产精品水嫩水嫩| 久久精品噜噜噜成人88aⅴ| 91国偷自产一区二区使用方法| 精品国产三级a在线观看| 亚洲自拍偷拍欧美| 在线精品观看国产| 国产精品久久久久久久久动漫| 免费成人性网站| 337p亚洲精品色噜噜狠狠| 亚洲乱码国产乱码精品精的特点| 国产精品一卡二卡| 精品国产成人在线影院| 美日韩一区二区三区| 欧美精品精品一区| 午夜精品久久久久久久久久| 欧美在线观看视频一区二区| av成人免费在线| 国产精品五月天| 成人精品一区二区三区四区 | 精东粉嫩av免费一区二区三区| 欧美一区二区在线看| 热久久久久久久| 2020国产精品自拍| 成人av片在线观看| 一区二区在线观看视频| 精品视频一区二区不卡| 久久精品国产一区二区三| 精品国产成人在线影院 | 国产精品美女一区二区| 色狠狠桃花综合| 蜜桃视频在线观看一区二区| 久久蜜桃av一区二区天堂| 成人黄色777网| 午夜精品福利久久久| 精品国产一区二区精华| 懂色av一区二区夜夜嗨| 99精品国产视频| 青青草国产成人99久久| 中文字幕一区不卡| 日韩一区二区在线看| aaa欧美色吧激情视频| 蜜臀va亚洲va欧美va天堂| 国产精品你懂的在线| 欧美xxxxx牲另类人与| 99视频在线观看一区三区| 久久99久久99精品免视看婷婷| 亚洲精品视频在线观看免费| 久久这里只有精品6| 欧美日韩国产综合一区二区 | 日韩一区在线免费观看| 欧美videofree性高清杂交| 在线观看日韩电影| 9久草视频在线视频精品| 国产999精品久久| 国产乱国产乱300精品| 久久97超碰国产精品超碰| 日日夜夜精品视频免费| 午夜视频一区在线观看| 亚洲精品国产a| 一区二区三区中文字幕精品精品| 国产亚洲欧美激情| 国产视频一区二区在线| 久久精品网站免费观看| 国产精品少妇自拍| 中文字幕视频一区| 日韩久久一区二区| 亚洲一区在线视频观看| 亚洲国产日韩在线一区模特| 亚洲成人免费影院| 蜜桃视频免费观看一区| 久草在线在线精品观看| 处破女av一区二区| 在线观看欧美精品| 欧美日韩性生活| 精品国产一区二区三区忘忧草| 久久久亚洲精华液精华液精华液| 久久久久综合网| 亚洲一级二级在线| 色94色欧美sute亚洲13| 日韩精品一区二区三区蜜臀| 国产欧美日韩视频在线观看| 国产精品污网站| 视频一区国产视频| 国产91精品欧美| 91精品久久久久久久91蜜桃| 国产嫩草影院久久久久| 亚洲成人第一页| 成人自拍视频在线| 日韩欧美视频在线| 日韩精品成人一区二区在线| 91美女片黄在线观看91美女| 久久综合九色欧美综合狠狠| 一区二区免费在线播放|