pppbacpcomponent.c

来自「这是全套的PPP协议的源码」· C语言 代码 · 共 2,231 行 · 第 1/5 页

C
2,231
字号
	return ERROR;	}/******************************************************************************* bacp_maxTerminationRequests - get/set the max unacknowledged BACP termination *								requests to send** This routine gets or sets the value of the BACP profile data parameter * maximum_number_of_bacp_termination_requests.* * RETURNS: OK/ERROR*/LOCAL STATUS bacp_maxTerminationRequests	(	PFW_OBJ * pfw,							/* framework reference */	PFW_PARAMETER_OPERATION_TYPE operType,	/* operation type */	void * pData,                        	/* profile data bucket */	char * value	                 		/* value for this parameter */	)	{	BACP_PROFILE_DATA * pProfileData = (BACP_PROFILE_DATA *)pData;	UINT configValue = 0;	if (operType == PFW_PARAMETER_SET)		{		if (value == NULL)			return ERROR;		if ((configValue = atoi (value)) > 0)			pProfileData->maximum_number_of_bacp_termination_requests = 								configValue;		return OK;		}	else 		if (operType == PFW_PARAMETER_GET)			{			sprintf (value, "%ld",				pProfileData->maximum_number_of_bacp_termination_requests);			return OK;			}	return ERROR;	}/******************************************************************************* bacp_configRequestsendInterval - get/set the interval in seconds between two *									BACP configuration requests** This routine gets or sets the value of the BACP profile data parameter * maximum_bacp_configuration_request_send_interval.** RETURNS: OK/ERROR*/LOCAL STATUS bacp_configReqSendInterval	(	PFW_OBJ * pfw,							/* framework reference */	PFW_PARAMETER_OPERATION_TYPE operType,	/* operation type */	void * pData,                        	/* profile data bucket */	char * value	                 		/* value for this parameter */	)	{	BACP_PROFILE_DATA * pProfileData = (BACP_PROFILE_DATA *)pData;	UINT configValue = 0;	if (operType == PFW_PARAMETER_SET)		{		if (value == NULL)			return ERROR;		if ((configValue = atoi (value)) > 0)			pProfileData->maximum_bacp_configuration_request_send_interval = 								configValue;		return OK;		}	else 		if (operType == PFW_PARAMETER_GET) 			{			sprintf (value, "%ld",				pProfileData->maximum_bacp_configuration_request_send_interval);			return OK;			}	return ERROR;	}/******************************************************************************* bacp_terminationRequestsendInterval - get/set the interval in seconds between*										two BACP termination requests** This routine gets or sets the value of the BACP profile data parameter * maximum_bacp_termination_request_send_interval.** RETURNS: OK/ERROR*/LOCAL STATUS bacp_terminationReqSendInterval	(	PFW_OBJ * pfw,							/* framework reference */	PFW_PARAMETER_OPERATION_TYPE operType,	/* operation type */	void * pData,                        	/* profile data bucket */	char * value	                 		/* value for this parameter */	)	{	BACP_PROFILE_DATA * pProfileData = (BACP_PROFILE_DATA *)pData;	UINT configValue = 0;	if (operType == PFW_PARAMETER_SET)		{		if (value == NULL)			return ERROR;				if ((configValue = atoi (value)) > 0)			pProfileData->maximum_bacp_termination_request_send_interval = 								configValue;		return OK;		}	else 		if (operType == PFW_PARAMETER_GET)			{			sprintf (value, "%ld",				pProfileData->maximum_bacp_termination_request_send_interval);			return OK;			}	return ERROR;	}/******************************************************************************* bacp_configReqBackoffInterval - get/set the BACP configuration request backoff*								interval** This routine gets or sets the value of the BACP profile data parameter * maximum_bacp_configuration_request_backoff_interval.** RETURNS: OK/ERROR*/LOCAL STATUS bacp_configReqBackoffInterval	(	PFW_OBJ * pfw,							/* framework reference */	PFW_PARAMETER_OPERATION_TYPE operType,	/* operation type */	void * pData,                        	/* profile data bucket */	char * value	                 		/* value for this parameter */	)	{	BACP_PROFILE_DATA * pProfileData = (BACP_PROFILE_DATA *)pData;	UINT configValue = 0;	if (operType == PFW_PARAMETER_SET)		{		if (value == NULL)			return ERROR;		if ((configValue = atoi (value)) > 0)			pProfileData->maximum_bacp_configuration_request_backoff_interval = 								configValue;		return OK;		}	else 		if (operType == PFW_PARAMETER_GET)			{			sprintf (value, "%ld",			pProfileData->maximum_bacp_configuration_request_backoff_interval);			return OK;			}	return ERROR;	}/******************************************************************************* bacp_maxConfigFailures - get/set the BACP max config failures ** This routine gets or sets the value of the BACP profile data parameter * maximum_number_of_configuration_failures.** RETURNS: OK/ERROR*/LOCAL STATUS bacp_maxConfigFailures	(	PFW_OBJ * pfw,							/* framework reference */		PFW_PARAMETER_OPERATION_TYPE operType,	/* operation type */	void * pData,                        	/* profile data bucket */	char * value	                 		/* value for this parameter */	)	{	BACP_PROFILE_DATA * pProfileData = (BACP_PROFILE_DATA *)pData;	UINT configValue = 0;	if (operType == PFW_PARAMETER_SET)		{		if (value == NULL)			return ERROR;			if ((configValue = atoi (value)) > 0)			pProfileData->maximum_number_of_configuration_failures = 								configValue;		return OK;		}	else 		if (operType == PFW_PARAMETER_GET)			{			sprintf (value, "%ld",				pProfileData->maximum_number_of_configuration_failures);			return OK;			}	return ERROR;	}/******************************************************************************** bap_callRequestsendInterval - get/set the interval in seconds between two BAP*								call requests** This routine gets or sets the value of the BACP profile data parameter * maximum_bap_call_request_send_interval.** RETURNS: OK/ERROR*/LOCAL STATUS bap_callRequestSendInterval	(	PFW_OBJ * pfw,							/* framework reference */	PFW_PARAMETER_OPERATION_TYPE operType,	/* operation type */	void * pData,                        	/* profile data bucket */	char * value	                 		/* value for this parameter */	)	{	BACP_PROFILE_DATA * pProfileData = (BACP_PROFILE_DATA *)pData;	UINT configValue = 0;	if (operType == PFW_PARAMETER_SET)		{		if (value == NULL)			return ERROR;			if ((configValue = atoi (value)) > 0)			pProfileData->maximum_bap_call_request_send_interval = 								configValue;		return OK;		}	else 		if (operType == PFW_PARAMETER_GET)			{			sprintf (value, "%ld",				pProfileData->maximum_bap_call_request_send_interval);			return OK;			}		return ERROR;	}/******************************************************************************* bap_maxCallRequests - get/set the maximum number of BAP call requests* * This routine gets or sets the value of the BACP profile data parameter * maximum_number_of_bap_call_requests.** RETURNS: OK/ERROR*/LOCAL STATUS bap_maxCallRequests	(	PFW_OBJ * pfw,							/* framework reference */		PFW_PARAMETER_OPERATION_TYPE operType,	/* operation type */	void * pData,                        	/* profile data bucket */	char * value	                 		/* value for this parameter */	)	{	BACP_PROFILE_DATA * pProfileData = (BACP_PROFILE_DATA *)pData;	UINT configValue = 0;	if (operType == PFW_PARAMETER_SET)		{		if (value == NULL)			return ERROR;			if ((configValue = atoi (value)) > 0)			pProfileData->maximum_number_of_bap_call_requests = 								configValue;			return OK;		}	else 		if (operType == PFW_PARAMETER_GET)			{			sprintf (value, "%ld",				pProfileData->maximum_number_of_bap_call_requests);			return OK;			}	return ERROR;	}/******************************************************************************** bap_callbackRequestSendInterval - get/set the interval in seconds between two *									BAP callback requests** This routine gets or sets the value of the BACP profile data parameter * maximum_bap_callback_request_send_interval.** RETURNS: OK/ERROR*/LOCAL STATUS bap_callbackRequestSendInterval	(	PFW_OBJ * pfw,							/* framework reference */	PFW_PARAMETER_OPERATION_TYPE operType,	/* operation type */	void * pData,                        	/* profile data bucket */	char * value	                 		/* value for this parameter */	)	{	BACP_PROFILE_DATA * pProfileData = (BACP_PROFILE_DATA *)pData;	UINT configValue = 0;	if (operType == PFW_PARAMETER_SET)		{		if (value == NULL)			return ERROR;			if ((configValue = atoi (value)) > 0)			pProfileData->maximum_bap_callback_request_send_interval = 								configValue;			return OK;		}	else 		if (operType == PFW_PARAMETER_GET)			{			sprintf (value, "%ld",				pProfileData->maximum_bap_callback_request_send_interval);			return OK;			}	return ERROR;	}/******************************************************************************** bap_maxCallbackRequests - get/set the maximum number of BAP call back requests** This routine gets or sets the value of the BACP profile data parameter* maximum_number_of_bap_callback_requests.** RETURNS: OK/ERROR*/LOCAL STATUS bap_maxCallbackRequests	(	PFW_OBJ * pfw,							/* framework reference */		PFW_PARAMETER_OPERATION_TYPE operType,	/* operation type */	void * pData,                        	/* profile data bucket */	char * value	                 		/* value for this parameter */	)	{	BACP_PROFILE_DATA * pProfileData = (BACP_PROFILE_DATA *)pData;	UINT configValue = 0;	if (operType == PFW_PARAMETER_SET)		{		if (value == NULL)			return ERROR;			if ((configValue = atoi (value)) > 0)			pProfileData->maximum_number_of_bap_callback_requests = 								configValue;		return OK;		}	else		if (operType == PFW_PARAMETER_GET)			{			sprintf (value, "%ld",				pProfileData->maximum_number_of_bap_callback_requests);			return OK;			}	return ERROR;	}/******************************************************************************** bap_linkdropRequestSendInterval - get/set the interval in seconds between two *									BAP link drop query requests.** This routine gets or sets the value of the BACP profile data parameter* maximum_bap_linkdrop_request_send_interval.** RETURNS: OK/ERROR*/LOCAL STATUS bap_linkdropRequestSendInterval	(	PFW_OBJ * pfw,							/* framework reference */	PFW_PARAMETER_OPERATION_TYPE operType,	/* operation type */	void * pData,                        	/* profile data bucket */	char * value	                 		/* value for this parameter */	)	{	BACP_PROFILE_DATA * pProfileData = (BACP_PROFILE_DATA *)pData;	UINT configValue = 0;	if (operType == PFW_PARAMETER_SET)		{		if (value == NULL)			return ERROR;		if ((configValue = atoi (value)) > 0)			pProfileData->maximum_bap_linkdrop_request_send_interval = 								configValue;		return OK;		}	else 		if (operType == PFW_PARAMETER_GET)			{			sprintf (value, "%ld",				pProfileData->maximum_bap_linkdrop_request_send_interval);			return OK;			}	return ERROR;	}/******************************************************************************* bap_maxLinkdropRequests - get/set the maximum number of BAP link drop query *							requests** This routine gets or sets the value of the BACP profile data parameter* maximum_number_of_bap_linkdrop_requests.** RETURNS: OK/ERROR*/LOCAL STATUS bap_maxLinkdropRequests	(	PFW_OBJ * pfw,							/* framework reference */		PFW_PARAMETER_OPERATION_TYPE operType,	/* operation type */	void * pData,                        	/* profile data bucket */	char * value	                 		/* value for this parameter */	)	{	BACP_PROFILE_DATA * pProfileData = (BACP_PROFILE_DATA *)pData;	UINT configValue = 0;	if (operType == PFW_PARAMETER_SET)		{		if (value == NULL)			return ERROR;		if ((configValue = atoi (value)) > 0)			pProfileData->maximum_number

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?