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

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

?? ospf_cfg_routines.c

?? vxworks下ospf協議棧
?? C
字號:
/* ospf_cfg_routines.c - OSPF APIs *//* Copyright 2001-2003 Wind River Systems, Inc. *//*modification history--------------------02b,29may03,agi Changed from RWOS calls to OSPF calls02a,14may03,agi Changed RWOS semaphores to vxWorks semaphores01a,10oct01,jkw Added new configuration routines for OSPF.*//*DESCRIPTIONThis file contains OSPF APIs which can enable and disable OSPF functionality.These APIs can be called from the target shell or from an independentapplication.  Each API is mutex protected so that the internal data structures are not corrupted.*/#include <ctype.h>#include "ospf.h"#if defined (__OSPF_VIRTUAL_STACK__)#include "ospf_vs_lib.h"#endif /* __OSPF_VIRTUAL_STACK__ */#if defined (__OSPF_PASSIVE_INTERFACE__)/******************************************************************************* ospfSetPassiveMode - Sets all OSPF interfaces to passive or non-passive mode** This routine sets all the interfaces to passive or non-passive mode in OSPF.* When setting all the interfaces to passive mode, all the interfaces will be * brought down and brought back up with the interfaces set to not accept * any Hello packets.  This will cause all the interfaces to be calculated * as stub networks.* When setting all the interfaces to non-passive mode, all the interfaces will* be brought down and brought back up with the interfaces to function in normal* mode.** <commands> Specifies whether to enable or disable passive mode.* DEFAULT - sets all interfaces to passive* NONE - sets all interfaces to normal** RETURNS: TRUE or FALSE** ERRNO: N/A*/STATUS ospfSetPassiveMode (char *commands){	char *p_token;	char *tokenizer; 	int pass = 0, error = 0;	int result;	OSPF_INTERFACE *sptr_interface = NULL;	OSPF_INTERFACE *sptr_next_interface = NULL;	semTake (ospf_global_mutex , WAIT_FOREVER);	while (*commands != '\0')		{		pass = 0;		p_token = commands;		while (*p_token == ' ' || *p_token == ',')			{			p_token++;			}						tokenizer = p_token; 		while (*tokenizer != ' ' && *tokenizer != ',' && *tokenizer !='\0')			{			*tokenizer = toupper( *tokenizer );			tokenizer++;			}		if (*tokenizer == '\0')			{			commands = tokenizer; 			}			else				{				*tokenizer = '\0';				commands = tokenizer + 1; 				}		result = strcmp(p_token,"DEFAULT");		if (!result)			{			pass = 1;			for (sptr_interface = ospf.sptr_interface_list; sptr_interface != NULL; sptr_interface = sptr_next_interface)				{				sptr_next_interface = sptr_interface->sptr_forward_link;				/* Change interface to passive */				sptr_interface->passive = TRUE;				/* Bring interface down */				sptr_interface->state = OSPF_INTERFACE_IS_DOWN;				ospf_reset_interface_variables_and_timers_and_destroy_all_associated_neighbor_connections(sptr_interface, OSPF_INTERFACE_DOWN, OSPF_INTERFACE_IS_DOWN);				sptr_interface->sptr_area->build_router = TRUE;				ospf_generate_network_and_router_link_state_advertisements (sptr_interface);				OSPF_PRINTF_ALARM (OSPF_ALARM_PRINTF, "OSPF: INTERFACE DOWN with address (HEX) %lx\r\n", sptr_interface->address);				/* Bring interface up */				sptr_interface->state = OSPF_INTERFACE_WAITING;				ospf_execute_interface_state_machine (OSPF_INTERFACE_UP, OSPF_INTERFACE_IS_DOWN, sptr_interface);				sptr_interface->sptr_area->build_router = TRUE;				ospf_generate_network_and_router_link_state_advertisements (sptr_interface);				OSPF_PRINTF_ALARM (OSPF_ALARM_PRINTF, "OSPF: INTERFACE UP with address (HEX) %lx\r\n", sptr_interface->address);				}			}		result = strcmp(p_token,"NONE");		if (!result)			{			pass = 1;			for (sptr_interface = ospf.sptr_interface_list; sptr_interface != NULL; sptr_interface = sptr_next_interface)				{				sptr_next_interface = sptr_interface->sptr_forward_link;				/* Change interface to passive */				sptr_interface->passive = FALSE;				/* Bring interface down */				sptr_interface->state = OSPF_INTERFACE_IS_DOWN;				ospf_reset_interface_variables_and_timers_and_destroy_all_associated_neighbor_connections(sptr_interface, OSPF_INTERFACE_DOWN, OSPF_INTERFACE_IS_DOWN);				sptr_interface->sptr_area->build_router = TRUE;				ospf_generate_network_and_router_link_state_advertisements (sptr_interface);				OSPF_PRINTF_ALARM (OSPF_ALARM_PRINTF, "OSPF: INTERFACE DOWN with address (HEX) %lx\r\n", sptr_interface->address);				/* Bring interface up */				sptr_interface->state = OSPF_INTERFACE_WAITING;				ospf_execute_interface_state_machine (OSPF_INTERFACE_UP, OSPF_INTERFACE_IS_DOWN, sptr_interface);				sptr_interface->sptr_area->build_router = TRUE;				ospf_generate_network_and_router_link_state_advertisements (sptr_interface);				OSPF_PRINTF_ALARM (OSPF_ALARM_PRINTF, "OSPF: INTERFACE UP with address (HEX) %lx\r\n", sptr_interface->address);				}			}		if (!pass)			{			if (!error)				{				error = 1;				printf("Error : Unknown parameter ");				}			printf(" %s ",p_token);			}		} 	if (error)		{		printf(" \n ");		}	if (!pass)		{		printf("USAGE: ospfSetPassiveMode(\"KEYWORD1\") \n\n KEYWORD: DEFAULT|NONE\n");		}	if (pass) 		{		semGive (ospf_global_mutex );		return (OK);		}	else 		{		semGive (ospf_global_mutex );		return (ERROR);		}}/******************************************************************************* ospfSetPassivePort - Sets an OSPF interface to passive or non-passive mode** This routine sets an interface to passive or non-passive mode in OSPF.* When setting the interfaces to passive mode, the interfaces will be * brought down and brought back up with the interface set to not accept * any Hello packets.  This will cause the interface to be calculated * as a stub network.* When setting the interface to non-passive mode, the interface will* be brought down and brought back up with the interface to function in normal* mode.** <cptr_ip_address_string> IP address *		* <mode> Mode to set interface. PASSIVE or NONE.** RETURNS: TRUE or FALSE** ERRNO: N/A*/STATUS ospfSetPassivePort (char *cptr_ip_address_string, enum OSPF_MODE mode){	OSPF_INTERFACE *sptr_interface = NULL;	OSPF_INTERFACE *sptr_next_interface = NULL;	ULONG offset = 0x00000000;	ULONG ip_address;	ULONG ulptr_base = 0x00000000;	semTake (ospf_global_mutex , WAIT_FOREVER);	ulptr_base = (ULONG)(&ip_address);	ospf_set_ip_address (cptr_ip_address_string,offset,ulptr_base);		for (sptr_interface = ospf.sptr_interface_list; sptr_interface != NULL; sptr_interface = sptr_next_interface)		{		sptr_next_interface = sptr_interface->sptr_forward_link;		if (sptr_interface->address == ip_address)			{			if (mode == PASSIVE)				{				if (sptr_interface->passive == TRUE)					{					semGive (ospf_global_mutex );					return OK;					}				else					{							/* Change interface to passive */					sptr_interface->passive = TRUE;					/* Bring interface down */					sptr_interface->state = OSPF_INTERFACE_IS_DOWN;					ospf_reset_interface_variables_and_timers_and_destroy_all_associated_neighbor_connections(sptr_interface, OSPF_INTERFACE_DOWN, OSPF_INTERFACE_IS_DOWN);					sptr_interface->sptr_area->build_router = TRUE;					ospf_generate_network_and_router_link_state_advertisements (sptr_interface);					OSPF_PRINTF_ALARM (OSPF_ALARM_PRINTF, "OSPF: INTERFACE DOWN with address (HEX) %lx\r\n", sptr_interface->address);					/* Bring interface up */					sptr_interface->state = OSPF_INTERFACE_WAITING;					ospf_execute_interface_state_machine (OSPF_INTERFACE_UP, OSPF_INTERFACE_IS_DOWN, sptr_interface);					sptr_interface->sptr_area->build_router = TRUE;					ospf_generate_network_and_router_link_state_advertisements (sptr_interface);					OSPF_PRINTF_ALARM (OSPF_ALARM_PRINTF, "OSPF: INTERFACE UP with address (HEX) %lx\r\n", sptr_interface->address);					}				}			else				{				if (sptr_interface->passive == FALSE)					{					semGive (ospf_global_mutex );					return OK;					}				else					{					/* Change interface to passive */					sptr_interface->passive = FALSE;					/* Bring interface down */					sptr_interface->state = OSPF_INTERFACE_IS_DOWN;					ospf_reset_interface_variables_and_timers_and_destroy_all_associated_neighbor_connections(sptr_interface, OSPF_INTERFACE_DOWN, OSPF_INTERFACE_IS_DOWN);					sptr_interface->sptr_area->build_router = TRUE;					ospf_generate_network_and_router_link_state_advertisements (sptr_interface);					OSPF_PRINTF_ALARM (OSPF_ALARM_PRINTF, "OSPF: INTERFACE DOWN with address (HEX) %lx\r\n", sptr_interface->address);					/* Bring interface up */					sptr_interface->state = OSPF_INTERFACE_WAITING;					ospf_execute_interface_state_machine (OSPF_INTERFACE_UP, OSPF_INTERFACE_IS_DOWN, sptr_interface);					sptr_interface->sptr_area->build_router = TRUE;					ospf_generate_network_and_router_link_state_advertisements (sptr_interface);					OSPF_PRINTF_ALARM (OSPF_ALARM_PRINTF, "OSPF: INTERFACE UP with address (HEX) %lx\r\n", sptr_interface->address);					}				}			}		}	semGive (ospf_global_mutex );	return OK;}#endif /*__OSPF_PASSIVE_INTERFACE__*/#if defined (__OPAQUE_LSA__)/******************************************************************************* ospfSetOpaqueEnable - Sets the OSPF router to be opaque enabled.** This routine sets the OSPF router to be opaque enabled.  This means* that the OSPF router can accept opaque lsas and store them.** RETURNS: N/A** ERRNO: N/A*/STATUS ospfSetOpaqueEnable(){	semTake (ospf_global_mutex , WAIT_FOREVER);	ospf.opaque_capability = TRUE;	semGive (ospf_global_mutex );	return OK;}/******************************************************************************* ospfSetOpaqueEnable - Sets the OSPF router to be opaque disabled.** This routine sets the OSPF router to be opaque disabled.  This means* that the OSPF router can no longer accept opaque lsas.** RETURNS: N/A** ERRNO: N/A*/STATUS ospfSetOpaqueDisable(){	semTake (ospf_global_mutex , WAIT_FOREVER);	ospf.opaque_capability = FALSE;	semGive (ospf_global_mutex );	return OK;}#endif /* __OPAQUE_LSA__ *//******************************************************************************* ospfSetTotalAreaAddressRange - Sets the total number of area address ranges*		in OSPF.** This routine sets the total number of area address ranges in the OSPF router.* This number is based upon the total number of area address ranges in all the * areas in the OSPF router.** RETURNS: N/A** ERRNO: N/A*/STATUS ospfSetTotalAreaAddressRange(ULONG total_number_area_ranges){	semTake (ospf_global_mutex , WAIT_FOREVER);	ospf.number_of_area_address_ranges = total_number_area_ranges;	semGive (ospf_global_mutex );	return OK;}/******************************************************************************* ospf_cfg_routines_stub - Stub function for compiling all functions into code.** This routine ensures that all the above functions will be added to the image.** RETURNS: N/A** ERRNO: N/A* * NOMANUAL*/void ospf_cfg_routines_stub(){	return;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
菠萝蜜视频在线观看一区| 亚洲综合成人网| av在线一区二区| 国产精品无遮挡| 色综合天天综合| 另类小说一区二区三区| 国产精品网站在线观看| 91免费观看国产| 国产精品久久网站| 欧美无砖砖区免费| 国产成人精品在线看| 亚洲成人免费视频| 久久丝袜美腿综合| 欧美性videosxxxxx| 久久精品99国产精品日本| 中文字幕不卡三区| 欧美日韩国产综合草草| 成人丝袜高跟foot| 国产一区二区三区最好精华液| 亚洲欧美日韩中文播放| 久久婷婷国产综合精品青草 | 日韩视频不卡中文| 丁香婷婷综合色啪| 男人的天堂久久精品| 综合欧美亚洲日本| 久久久影院官网| 日韩一区二区三区在线观看| 色综合久久中文字幕综合网| 国产麻豆精品在线观看| 精品在线一区二区三区| 婷婷成人激情在线网| 中文字幕av一区二区三区高| 欧美一级片在线观看| 欧美肥胖老妇做爰| 日本视频一区二区| 欧美三区在线观看| 成人黄动漫网站免费app| 丝瓜av网站精品一区二区| 亚洲自拍偷拍欧美| 婷婷亚洲久悠悠色悠在线播放| 亚洲免费电影在线| 国产精品国产三级国产aⅴ中文 | 丰满少妇在线播放bd日韩电影| 国产在线国偷精品产拍免费yy | 午夜婷婷国产麻豆精品| 亚洲mv大片欧洲mv大片精品| 香蕉加勒比综合久久| 麻豆精品一二三| 成人国产精品免费| 欧美在线一二三四区| 在线观看日韩av先锋影音电影院| 日本韩国精品一区二区在线观看| 在线观看www91| 欧美成人一区二区三区| 日韩欧美一级二级| 日本一区二区三区四区在线视频| 亚洲精品免费电影| 三级成人在线视频| 大白屁股一区二区视频| 欧美日韩在线三级| 日韩一区二区免费视频| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | www.亚洲人| 欧美一级高清大全免费观看| 成人欧美一区二区三区小说| 亚洲成人免费视| www.日韩精品| 欧美大片日本大片免费观看| 亚洲三级在线看| 国产高清在线精品| 欧美精品久久99| 亚洲午夜久久久久久久久电影网| 韩国视频一区二区| 欧美日韩一区视频| |精品福利一区二区三区| 国产精品中文字幕日韩精品 | 久久人人97超碰com| 日韩中文欧美在线| 91国偷自产一区二区三区观看| 国产欧美日韩亚州综合| 精品午夜一区二区三区在线观看 | 国产一区二区三区不卡在线观看 | 国产一区欧美一区| 欧美无人高清视频在线观看| 亚洲美女视频在线| 在线免费观看成人短视频| 亚洲欧美视频在线观看视频| 国产不卡视频在线观看| 国产婷婷一区二区| 国产精品一区二区在线观看不卡| 7777精品久久久大香线蕉 | 国产蜜臀av在线一区二区三区 | 午夜视频在线观看一区二区| 欧美日韩高清影院| 石原莉奈在线亚洲三区| 色一情一乱一乱一91av| 亚洲国产精品久久人人爱| 欧美在线看片a免费观看| 亚洲成av人综合在线观看| 337p亚洲精品色噜噜| 国产精品18久久久久| 欧美日韩国产高清一区二区三区| 亚洲色图色小说| 欧美一区二区女人| 亚洲图片有声小说| 欧美一级久久久| 国产不卡视频在线观看| 中文字幕在线播放不卡一区| 在线观看亚洲一区| 国产麻豆精品在线观看| 亚洲精品亚洲人成人网在线播放| 欧美日韩美少妇| 国产精一区二区三区| 亚洲成在线观看| 国产精品久久综合| 欧美变态tickle挠乳网站| 色欧美乱欧美15图片| 国产在线视视频有精品| 五月婷婷综合网| 中文字幕佐山爱一区二区免费| 91精品福利视频| 成人小视频在线| 久久99热99| 日韩成人一区二区| 亚洲无线码一区二区三区| 国产欧美一二三区| 久久奇米777| 欧美日韩大陆一区二区| 欧美主播一区二区三区| 成人av在线影院| 丁香激情综合五月| 国产成a人亚洲| 国产成人综合精品三级| 国产精品一区在线观看乱码 | 国产精品毛片无遮挡高清| 久久综合九色综合欧美亚洲| 欧美日韩电影一区| 欧美日韩国产一区| 欧美色综合天天久久综合精品| www.色综合.com| 欧美中文字幕一区| 欧美喷潮久久久xxxxx| 欧美老肥妇做.爰bbww| 日韩在线一区二区| 男女性色大片免费观看一区二区 | 国内精品国产三级国产a久久| 精品一区二区三区av| 国产亚洲1区2区3区| 欧美久久久久免费| 欧美日韩亚洲综合在线 欧美亚洲特黄一级 | 久久蜜桃香蕉精品一区二区三区| 国产精品五月天| 国模大尺度一区二区三区| 日韩一区二区三区在线观看| 国产河南妇女毛片精品久久久| 欧美喷潮久久久xxxxx| 日韩影院免费视频| 欧美日韩www| 精品一区二区在线看| 2014亚洲片线观看视频免费| 狠狠色丁香婷婷综合久久片| 日韩一区二区麻豆国产| 久久se精品一区精品二区| 欧美zozo另类异族| 风间由美性色一区二区三区| 1区2区3区国产精品| 欧美在线视频全部完| 蜜臀av一级做a爰片久久| 337p日本欧洲亚洲大胆精品| 成人一区二区视频| 亚洲欧美日韩国产中文在线| 欧美日本国产一区| 国产麻豆成人传媒免费观看| 中文av一区二区| 欧美人妇做爰xxxⅹ性高电影| 麻豆精品视频在线观看免费 | 日韩欧美专区在线| 成人在线视频一区| 亚洲综合丝袜美腿| 欧美不卡激情三级在线观看| 丁香亚洲综合激情啪啪综合| 亚洲日本在线天堂| 日韩视频在线永久播放| av在线不卡观看免费观看| 石原莉奈在线亚洲三区| 欧美国产综合色视频| 欧美日韩三级一区| 国产91在线看| 精久久久久久久久久久| 亚洲在线中文字幕| 亚洲国产精品精华液ab| 欧美精品1区2区3区| 日本韩国欧美在线| eeuss国产一区二区三区| 九九精品视频在线看| 精品一区二区三区视频| 91麻豆精品国产自产在线| 视频精品一区二区| **网站欧美大片在线观看| 精品国产成人系列|