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

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

?? mpbdlmanagement.c

?? 這是全套的PPP協議的源碼
?? C
?? 第 1 頁 / 共 3 頁
字號:
/* mpBdlManagement.c - Mp Bundle Management *//* Copyright 1999 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------01d,06aug02,jr  fixed build warnings 01c,19feb02,ak  input parameter validation in all the functions01b,19sep01,ak  support for calculation of aggregate MRU and MRU share of 				individual member links01a,19feb01,ak	created*//*DESCRIPTIONThis module implements a part of Multi-Link Point-to-Point Protocol specified by RFC 1990. This module contains functions for that are used for managing bundle structures used by the MP implementation. These functions are used whena link is added to or remove from the bundle*/ /* includes */#include "vxWorks.h"#include "ppp/mp.h" #include "private/ppp/mpFramingLayerP.h"#include "string.h"#include "tickLib.h"#include "sllLib.h"#include "stdio.h"/* externs *//* locals and forwards */BOOL is_bundle_exist	(PFW_OBJ  *, PFW_PLUGIN_OBJ_STATE	**,							 MP_BUNDLE_IDENTIFIER *);STATUS mpInitialize (PFW_PLUGIN_OBJ_STATE *, PFW_STACK_OBJ *);			void mp_initialize_sending_end_of_the_bundle (PFW_PLUGIN_OBJ_STATE *);void mp_initialize_receiving_end_of_the_bundle (PFW_PLUGIN_OBJ_STATE *);STATUS mp_remove_port_from_sending_end_of_the_bundle 						(PFW_PLUGIN_OBJ_STATE *, PFW_STACK_OBJ *);char * mp_fragment_flag_enum_to_string (enum FRAGMENT_FLAG);TEST mp_receive_port_is_in_bundle (PFW_STACK_OBJ	*,						PFW_STACK_OBJ	**);STATUS mp_remove_port_from_receiving_end_of_the_bundle 						(PFW_PLUGIN_OBJ_STATE *, PFW_STACK_OBJ *);STATUS mp_bundle_sending_end_update_bandwidth_share_information						(PFW_PLUGIN_OBJ_STATE *);void mpBundleProfileGet (PFW_PLUGIN_OBJ_STATE *, LCP_BUNDLE_PROFILE	*);LOCAL BOOL are_station_discriminator_same (MP_DISCRIMINATOR_CLASS *,						MP_DISCRIMINATOR_CLASS *);LOCAL STATUS mp_construct_sending_end_of_the_bundle (PFW_PLUGIN_OBJ_STATE *,						PFW_STACK_OBJ *);LOCAL void mp_initialize_sending_end_link_class (PFW_PLUGIN_OBJ_STATE *, 						USHORT);LOCAL STATUS mp_construct_receiving_end_of_the_bundle						(PFW_PLUGIN_OBJ_STATE *, PFW_STACK_OBJ *);LOCAL void mp_initialize_receiving_end_link_class (PFW_PLUGIN_OBJ_STATE	*, 						USHORT);STATUS mp_bundle_sending_end_update_mru_share_information (PFW_PLUGIN_OBJ_STATE	*);/******************************************************************************** is_bundle_exist - Checks whether any bundle exists with the given bundle * identifier in the given framework* * This function compares the members of the given bundle identifier structure * with those of the bundle identifier structures of the already existing * bundles in the given framework. If the given bundle identifier matches with * that of any of the existing bundle, it fills the plugin obj state of the * mpFraming layer in that bundle stack in one of the passed input parameter.*  * RETURNS: TRUE or FALSE*/BOOL is_bundle_exist	(	PFW_OBJ 				*pfwObj,				/* framework reference */	PFW_PLUGIN_OBJ_STATE	**ppMpFramingLayerState, 		/* Matching bundle's mpFraming layer state is filled in this variable */	MP_BUNDLE_IDENTIFIER	*pBundleIdentifier		/* bundle identifier */	)	{	MP_FRAMING_LAYER					*pMpFramingLayerComponentData = NULL;	UINT 								bundleNumber = 0;	MP_BUNDLE_IDENTIFIER				*pBundleId = NULL;	BOOL 								returnCode;	MP_FRAMING_LAYER_STACK_DATA         *pStackData = NULL;	PFW_PLUGIN_OBJ						*pPluginObj = NULL;	if (pfwObj == NULL)		{		printf ("Null framework pointer\n");		return FALSE;		}	if ((ppMpFramingLayerState == NULL) || (pBundleIdentifier == NULL))		return FALSE;	/* Get component object */	pPluginObj = 		pfwPluginObjGet (pfwObj, "MP_FRAMING_LAYER");	if (pPluginObj == NULL)		{		printf ("MpFraming layer component does not exist in the framework\n");		return FALSE;		}	pMpFramingLayerComponentData = 				(MP_FRAMING_LAYER *) pPluginObj;	if (semTake (pMpFramingLayerComponentData->componentSem, WAIT_FOREVER)																 == ERROR)		return FALSE;	/* 	 * compare the bundle identifier with the bundle identifiers of the already 	 * existing bundle in the framework	 */	returnCode = FALSE;			for (bundleNumber = 0; 			bundleNumber < pMpFramingLayerComponentData->no_of_bundles;			bundleNumber++)		{		if (pfwPluginObjStateLock (pMpFramingLayerComponentData->								pMpFramingLayerState [bundleNumber]) == ERROR)			if (semGive (pMpFramingLayerComponentData->componentSem) == ERROR)				return FALSE;		pStackData = 				(MP_FRAMING_LAYER_STACK_DATA *)pMpFramingLayerComponentData->								pMpFramingLayerState [bundleNumber]->stackData;				pBundleId = &pStackData->bundle.id;		/* Compare local discriminators */		if (are_station_discriminator_same 					(&pBundleId->local_station_discriminator, 			  		 &pBundleIdentifier->local_station_discriminator) == FALSE)			{			if (pfwPluginObjStateRelease (pMpFramingLayerComponentData->								pMpFramingLayerState [bundleNumber]) == ERROR)				{				if (semGive (pMpFramingLayerComponentData->componentSem) 																	== ERROR)					return FALSE;				}			continue;			}		/* Compare remote discriminatosr */		if (are_station_discriminator_same 					(&pBundleId->remote_station_discriminator, 					 &pBundleIdentifier->remote_station_discriminator) == FALSE)			{			if (pfwPluginObjStateRelease (pMpFramingLayerComponentData->								pMpFramingLayerState [bundleNumber]) == ERROR)				{				if (semGive (pMpFramingLayerComponentData->componentSem) 																	== ERROR)					return FALSE;				}			continue;			}		/* Compare local user and remote user name */		if (pBundleIdentifier->link_failed_to_be_authenticated == FALSE)			{			if (strcmp (pBundleIdentifier->local_user_name, 						pBundleId->local_user_name) != 0)				{				if (pfwPluginObjStateRelease (pMpFramingLayerComponentData->								pMpFramingLayerState [bundleNumber]) == ERROR)					{					if (semGive (pMpFramingLayerComponentData->componentSem)															   		== ERROR)						return FALSE;					}				continue;				}			if (strcmp (pBundleIdentifier->remote_user_name, 						pBundleId->remote_user_name) != 0)				{				if (pfwPluginObjStateRelease (pMpFramingLayerComponentData->								pMpFramingLayerState [bundleNumber]) == ERROR)					{					if (semGive (pMpFramingLayerComponentData->componentSem) 																	 == ERROR)						return FALSE;					}				continue;				}			}			/* Match is found */			*ppMpFramingLayerState = pMpFramingLayerComponentData->										pMpFramingLayerState [bundleNumber];			if (pfwPluginObjStateRelease (pMpFramingLayerComponentData->							pMpFramingLayerState [bundleNumber]) == ERROR)				{				if (semGive (pMpFramingLayerComponentData->componentSem) 																== ERROR)					return FALSE;					}			returnCode = TRUE;			break;		}	if (semGive (pMpFramingLayerComponentData->componentSem) == ERROR)		return FALSE;			return returnCode;	}/******************************************************************************** are_station_discriminators_same - *						Checks whether given two end point discriminators same* * RETURNS: TRUE or FALSE*/LOCAL BOOL are_station_discriminator_same	(	MP_DISCRIMINATOR_CLASS	*pFirstDiscriminator, /* First Discriminator */	MP_DISCRIMINATOR_CLASS	*pSecondDiscriminator /* Second Discriminator */	)	{	if (pFirstDiscriminator == NULL || pSecondDiscriminator == NULL)		{		return FALSE;		}	if (pFirstDiscriminator->discriminatorClass != 			pSecondDiscriminator->discriminatorClass)		{		return FALSE;		}	if (pFirstDiscriminator->length != pSecondDiscriminator->length)		{		return FALSE;		}	if (memcmp ( (const void *)pFirstDiscriminator->address, 					(const void *)pSecondDiscriminator->address, 					(size_t) pFirstDiscriminator->length) != 0)				{		return FALSE;		}		return TRUE;	}/******************************************************************************** mp_initialize - Adds a link to the bundle** This function adds the link to the given bundle. It constructs sending end and * receiving end of the bundle. It assigns the bundle to the Member Stack in the * bundle assignment class using mp_set_port_to_bundle_number_mapping ()						* * RETURNS: OK or ERROR*/STATUS mpInitialize	(	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;	MP_FRAMING_LAYER		        *pComponentData = NULL;	UINT 							loopIndex = 0;	LCP_BUNDLE_OPTIONS				*pLcpBundleOptions = NULL;	STATUS							status;	if ((pMpFramingLayerState == NULL) || (pMemberStackObj == NULL))		return ERROR;		pStackData = (MP_FRAMING_LAYER_STACK_DATA *)pMpFramingLayerState->stackData;	pComponentData = 				(MP_FRAMING_LAYER *) pMpFramingLayerState->pluginObj;	/* 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;	/* Construct sending end for the link */	if (pLcpBundleOptions->is_link_in_sending_end == TRUE)		{		status = mp_construct_sending_end_of_the_bundle      		    	(pMpFramingLayerState, pMemberStackObj);		if (status == ERROR)			return ERROR;		}	/* Construct receiving end for the link */	if (pLcpBundleOptions->is_link_in_receiving_end == TRUE)		{		status = mp_construct_receiving_end_of_the_bundle 					(pMpFramingLayerState, pMemberStackObj);		if (status == ERROR)			return ERROR;		}	/* 	 * Serach the matching entry for the link in the port_to_bundle_assignment	 * array 	 */	for (loopIndex = 0; loopIndex < pComponentData->no_of_ports; loopIndex++)		{		if (pComponentData->port_to_bundle_assignment[loopIndex].pMemberStackObj															 == pMemberStackObj)			break;		}	if (loopIndex == pComponentData->no_of_ports)		{		if (pComponentData->no_of_ports == MAX_NO_OF_PPP_PORTS)			return ERROR;		/* Add new entry for the link */		pComponentData->no_of_ports++;		}	/* Set bundle assignment for the link */		pComponentData->port_to_bundle_assignment[loopIndex].pMemberStackObj			 	= pMemberStackObj;			pComponentData->port_to_bundle_assignment[loopIndex].pManagerStackObj			 	= pMpFramingLayerState->stackObj;			pComponentData->	port_to_bundle_assignment[loopIndex].is_port_assigned_to_a_bundle = TRUE;	if (pLcpBundleOptions->is_link_in_receiving_end == TRUE)		{		pComponentData->		port_to_bundle_assignment[loopIndex].port_used_in_receiving_end = TRUE;				}	if (pLcpBundleOptions->is_link_in_sending_end == TRUE)		{		pComponentData->		port_to_bundle_assignment[loopIndex].port_used_in_sending_end = TRUE;				}	return OK;	}/******************************************************************************** mp_construct_sending_end_of_the_bundle - *							Constructs or updates the sending end of the bundle** This function constructs the sending end link class for the given link. If the * given link is the first link in the sending end of the bundle, it initializes * the sending end class of the bundle and configures the transmit end parameters * like remote MRRU,  MP header format etc. with the values negotiated on the * link.					* * RETURNS: OK or ERROR*/LOCAL STATUS mp_construct_sending_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;	MP_FRAMING_LAYER_PROFILE_DATA 	*pProfileData = NULL;	UINT 							loopIndex = 0;	LCP_BUNDLE_OPTIONS				*pLcpBundleOptions = NULL;	USHORT 							linkNumber = 0;	PFW_OBJ							*pfwObj = NULL;	PFW_PLUGIN_OBJ_STATE			*pState = NULL;	PFW_PLUGIN_OBJ					*pPluginObj = NULL;	MP_BUNDLE_SENDING_END_CLASS		*pSendingEndClass = NULL;	STATUS							status;	if ((pMpFramingLayerState == NULL) || (pMemberStackObj == NULL))		return ERROR;		pStackData = (MP_FRAMING_LAYER_STACK_DATA *)pMpFramingLayerState->stackData;	pProfileData = 			 pMpFramingLayerState->profileData;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美激情中文字幕一区二区| 精品国产一区二区三区久久久蜜月 | 欧美电影免费观看高清完整版在线观看| |精品福利一区二区三区| 欧美性受xxxx黑人xyx性爽| 麻豆国产精品777777在线| 国产调教视频一区| 色呦呦国产精品| 老司机精品视频线观看86| 欧美国产精品一区二区三区| 欧美亚洲另类激情小说| 国产一区不卡在线| 亚洲激情男女视频| 精品av久久707| 在线观看亚洲a| 成人一区二区在线观看| 青青草原综合久久大伊人精品| 国产免费成人在线视频| 欧美群妇大交群的观看方式| 国产ts人妖一区二区| 日韩精品高清不卡| 亚洲人精品午夜| 精品国产乱码久久久久久老虎| 91美女片黄在线| 国产美女娇喘av呻吟久久| 亚洲电影激情视频网站| 国产精品污网站| 2020国产精品自拍| 制服丝袜亚洲色图| 97久久精品人人澡人人爽| 精品一区二区国语对白| 亚洲国产成人高清精品| 国产精品麻豆欧美日韩ww| 日韩欧美国产高清| 欧美另类变人与禽xxxxx| 91天堂素人约啪| 大胆欧美人体老妇| 国产一区二区伦理| 激情欧美日韩一区二区| 天堂在线一区二区| 亚洲最大成人综合| 国产精品视频一二| 2欧美一区二区三区在线观看视频| 欧美日韩一区二区三区在线看| 成人丝袜18视频在线观看| 久久99精品国产91久久来源| 日韩电影免费一区| 亚洲超碰精品一区二区| 亚洲综合在线免费观看| 中文字幕一区二区三区av| 中文字幕国产一区| 久久夜色精品国产欧美乱极品| 日韩欧美一级二级三级| 欧美一区二区三区婷婷月色| 欧美日韩国产一二三| 欧美日韩一区三区| 欧美日韩一区不卡| 欧美色精品天天在线观看视频| 色妞www精品视频| 91小宝寻花一区二区三区| av网站一区二区三区| 成人不卡免费av| 97se亚洲国产综合在线| 99久久久精品| 欧洲一区二区三区在线| 欧美日韩视频不卡| 日韩一区二区在线观看视频播放| 欧美一二三区在线观看| 26uuu精品一区二区三区四区在线| 精品免费视频.| 久久久国产一区二区三区四区小说 | 麻豆国产欧美一区二区三区| 麻豆国产91在线播放| 国产精品亚洲第一区在线暖暖韩国| 久久91精品国产91久久小草| 国产一区美女在线| 国产suv精品一区二区6| eeuss鲁片一区二区三区 | 欧美视频日韩视频在线观看| 色综合久久六月婷婷中文字幕| a级精品国产片在线观看| 色婷婷综合久久久中文一区二区 | 免费成人av资源网| 蜜臀av性久久久久av蜜臀妖精| 九九精品视频在线看| 粉嫩av一区二区三区粉嫩| 国产一区二区在线影院| 久久成人免费电影| 国产91色综合久久免费分享| 91老师国产黑色丝袜在线| 欧美日韩一卡二卡三卡 | 国产精品免费视频网站| 一区二区成人在线| 蜜臀av国产精品久久久久| 国产乱色国产精品免费视频| 色综合久久66| 欧美一级生活片| 国产日韩成人精品| 亚洲高清免费观看| 国产乱码精品一区二区三区av| 99久久er热在这里只有精品15| 欧美午夜精品久久久久久超碰| 制服丝袜中文字幕一区| 国产精品色哟哟| 三级亚洲高清视频| 成人国产精品免费观看视频| 欧美精品日韩一区| 自拍偷拍亚洲欧美日韩| 一区二区三区.www| 国产精品自拍在线| 欧美三级韩国三级日本一级| 久久久精品国产99久久精品芒果| 国产清纯白嫩初高生在线观看91 | 91一区在线观看| 精品欧美一区二区久久| 亚洲制服丝袜av| 丁香桃色午夜亚洲一区二区三区| 欧洲激情一区二区| 亚洲国产成人自拍| 美女视频一区在线观看| 色综合久久久网| 日本一区二区三区视频视频| 日本系列欧美系列| 一本色道亚洲精品aⅴ| 国产亚洲精品aa午夜观看| 亚洲成a人v欧美综合天堂下载| 国产成人综合在线观看| 欧美一级一级性生活免费录像| 亚洲日本成人在线观看| 国产精品性做久久久久久| 欧美丰满少妇xxxxx高潮对白| **性色生活片久久毛片| 国产精品自在在线| 精品久久久久久久一区二区蜜臀| 亚洲第四色夜色| 色视频欧美一区二区三区| 国产精品伦一区| 国产精品系列在线播放| 911精品产国品一二三产区| 亚洲欧美日韩综合aⅴ视频| 国产99久久久国产精品免费看 | 91丨porny丨国产| 国产日韩欧美精品电影三级在线 | 亚洲综合久久av| 91最新地址在线播放| 国产精品久久久久影院老司| 国产一区二区三区免费在线观看| 欧美一区二区三区系列电影| 亚洲va欧美va人人爽| 欧美特级限制片免费在线观看| 中文字幕字幕中文在线中不卡视频| 丁香婷婷综合五月| 欧美韩国日本一区| 丰满岳乱妇一区二区三区| 久久日一线二线三线suv| 久久99久久99精品免视看婷婷 | 欧美不卡在线视频| 青青草国产精品亚洲专区无| 在线亚洲欧美专区二区| 亚洲自拍与偷拍| 精品视频一区三区九区| 日韩精品一级二级 | 亚洲美女淫视频| 色婷婷激情一区二区三区| 亚洲制服欧美中文字幕中文字幕| 欧美在线色视频| 亚洲成av人片在线| 欧美三区在线观看| 亚洲黄色在线视频| 欧美在线999| 日日摸夜夜添夜夜添国产精品| 欧美日韩在线播| 午夜视频在线观看一区| 91精品国产品国语在线不卡| 蜜臀久久99精品久久久久久9| 欧美成人一区二区三区片免费 | 亚洲与欧洲av电影| 在线亚洲欧美专区二区| 亚洲精品免费一二三区| 欧美久久高跟鞋激| 久久不见久久见免费视频7| 久久久久久黄色| 91视频你懂的| 天天操天天色综合| 久久亚洲精精品中文字幕早川悠里| 国产99久久精品| 亚洲国产日韩一级| 欧美精品一区二区三区在线| 色综合视频一区二区三区高清| 久久激五月天综合精品| 一级精品视频在线观看宜春院 | 日韩精品最新网址| 91丨porny丨首页| 国产一区二区伦理片| 亚洲成人av电影| 亚洲三级理论片| 国产欧美日韩精品一区| 91精品中文字幕一区二区三区| av中文字幕不卡| 国产精品88888|