⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 maintidi.c

📁 linux-2.6.15.6
💻 C
📖 第 1 页 / 共 5 页
字号:
	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\Line", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pLine->Line[0];	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\Layer2", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pLine->Layer2[0];	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\Layer3", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pLine->Layer3[0];	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\Remote Address", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = \																								&pLine->RemoteAddress[0];	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\Remote SubAddr", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = \																								&pLine->RemoteSubAddress[0];	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\Local Address", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = \																								&pLine->LocalAddress[0];	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\Local SubAddr", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = \																								&pLine->LocalSubAddress[0];	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\BC", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pLine->call_BC;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\HLC", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pLine->call_HLC;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\LLC", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pLine->call_LLC;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\Charges", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pLine->Charges;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\Call Reference", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pLine->CallReference;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\Last Disc Cause", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = \																										&pLine->LastDisconnecCause;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\User ID", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pLine->UserID[0];	pLib->line_parse_entry_last[Channel] = pLib->cur_parse_entry - 1;}static void diva_create_fax_parse_table (diva_strace_context_t* pLib,																				 int Channel) {	diva_trace_fax_state_t* pFax = &pLib->lines[Channel].fax;	int nr = Channel+1;	if ((pLib->cur_parse_entry + FAX_PARSE_ENTRIES) >= pLib->parse_entries) {		diva_trace_error (pLib, -1, __FILE__, __LINE__);		return;	}	pFax->ChannelNumber = nr;	pLib->fax_parse_entry_first[Channel] = pLib->cur_parse_entry;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\FAX\\Event", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pFax->Event;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\FAX\\Page Counter", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pFax->Page_Counter;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\FAX\\Features", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pFax->Features;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\FAX\\Station ID", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pFax->Station_ID[0];	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\FAX\\Subaddress", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pFax->Subaddress[0];	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\FAX\\Password", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pFax->Password[0];	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\FAX\\Speed", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pFax->Speed;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\FAX\\Resolution", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pFax->Resolution;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\FAX\\Paper Width", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pFax->Paper_Width;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\FAX\\Paper Length", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pFax->Paper_Length;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\FAX\\Scanline Time", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pFax->Scanline_Time;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\FAX\\Disc Reason", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pFax->Disc_Reason;	pLib->fax_parse_entry_last[Channel] = pLib->cur_parse_entry - 1;}static void diva_create_modem_parse_table (diva_strace_context_t* pLib,																					 int Channel) {	diva_trace_modem_state_t* pModem = &pLib->lines[Channel].modem;	int nr = Channel+1;	if ((pLib->cur_parse_entry + MODEM_PARSE_ENTRIES) >= pLib->parse_entries) {		diva_trace_error (pLib, -1, __FILE__, __LINE__);		return;	}	pModem->ChannelNumber = nr;	pLib->modem_parse_entry_first[Channel] = pLib->cur_parse_entry;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\Modem\\Event", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->Event;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\Modem\\Norm", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->Norm;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\Modem\\Options", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->Options;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\Modem\\TX Speed", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->TxSpeed;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\Modem\\RX Speed", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->RxSpeed;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\Modem\\Roundtrip ms", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->RoundtripMsec;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\Modem\\Symbol Rate", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->SymbolRate;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\Modem\\RX Level dBm", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->RxLeveldBm;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\Modem\\Echo Level dBm", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->EchoLeveldBm;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\Modem\\SNR dB", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->SNRdb;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\Modem\\MAE", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->MAE;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\Modem\\Local Retrains", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->LocalRetrains;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\Modem\\Remote Retrains", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->RemoteRetrains;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\Modem\\Local Resyncs", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->LocalResyncs;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\Modem\\Remote Resyncs", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->RemoteResyncs;	sprintf (pLib->parse_table[pLib->cur_parse_entry].path,					 "State\\B%d\\Modem\\Disc Reason", nr);	pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->DiscReason;	pLib->modem_parse_entry_last[Channel] = pLib->cur_parse_entry - 1;}static void diva_create_parse_table (diva_strace_context_t* pLib) {	int i;	for (i = 0; i < pLib->Channels; i++) {		diva_create_line_parse_table  (pLib, i);		diva_create_modem_parse_table (pLib, i);		diva_create_fax_parse_table   (pLib, i);	}	pLib->statistic_parse_first = pLib->cur_parse_entry;	/*		Outgoing Calls		*/	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\Outgoing Calls\\Calls");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.outg.Calls;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\Outgoing Calls\\Connected");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.outg.Connected;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\Outgoing Calls\\User Busy");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.outg.User_Busy;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\Outgoing Calls\\No Answer");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.outg.No_Answer;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\Outgoing Calls\\Wrong Number");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.outg.Wrong_Number;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\Outgoing Calls\\Call Rejected");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.outg.Call_Rejected;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\Outgoing Calls\\Other Failures");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.outg.Other_Failures;	/*		Incoming Calls		*/	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\Incoming Calls\\Calls");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.inc.Calls;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\Incoming Calls\\Connected");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.inc.Connected;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\Incoming Calls\\User Busy");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.inc.User_Busy;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\Incoming Calls\\Call Rejected");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.inc.Call_Rejected;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\Incoming Calls\\Wrong Number");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.inc.Wrong_Number;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\Incoming Calls\\Incompatible Dst");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.inc.Incompatible_Dst;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\Incoming Calls\\Out of Order");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.inc.Out_of_Order;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\Incoming Calls\\Ignored");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.inc.Ignored;	/*		Modem Statistics		*/	pLib->mdm_statistic_parse_first = pLib->cur_parse_entry;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\Modem\\Disc Normal");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.mdm.Disc_Normal;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\Modem\\Disc Unspecified");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.mdm.Disc_Unspecified;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\Modem\\Disc Busy Tone");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.mdm.Disc_Busy_Tone;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\Modem\\Disc Congestion");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.mdm.Disc_Congestion;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\Modem\\Disc Carr. Wait");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.mdm.Disc_Carr_Wait;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\Modem\\Disc Trn Timeout");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.mdm.Disc_Trn_Timeout;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\Modem\\Disc Incompat.");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.mdm.Disc_Incompat;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\Modem\\Disc Frame Rej.");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.mdm.Disc_Frame_Rej;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\Modem\\Disc V42bis");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.mdm.Disc_V42bis;	pLib->mdm_statistic_parse_last  = pLib->cur_parse_entry - 1;	/*		Fax Statistics		*/	pLib->fax_statistic_parse_first = pLib->cur_parse_entry;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\FAX\\Disc Normal");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.fax.Disc_Normal;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\FAX\\Disc Not Ident.");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.fax.Disc_Not_Ident;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\FAX\\Disc No Response");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.fax.Disc_No_Response;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\FAX\\Disc Retries");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.fax.Disc_Retries;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\FAX\\Disc Unexp. Msg.");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.fax.Disc_Unexp_Msg;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\FAX\\Disc No Polling.");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.fax.Disc_No_Polling;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\FAX\\Disc Training");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.fax.Disc_Training;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\FAX\\Disc Unexpected");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.fax.Disc_Unexpected;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\FAX\\Disc Application");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.fax.Disc_Application;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\FAX\\Disc Incompat.");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.fax.Disc_Incompat;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\FAX\\Disc No Command");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.fax.Disc_No_Command;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\FAX\\Disc Long Msg");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.fax.Disc_Long_Msg;	strcpy (pLib->parse_table[pLib->cur_parse_entry].path,					"Statistics\\FAX\\Disc Supervisor");	pLib->parse_table[pLib->cur_parse_entry++].variable = \																		&pLib->InterfaceStat.fax.Disc_Supervisor;

⌨️ 快捷键说明

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