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

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

?? refclock_ulink.c

?? 網絡時間協議NTP 源碼 版本v4.2.0b 該源碼用于linux平臺下
?? C
?? 第 1 頁 / 共 2 頁
字號:
		    *   space  Space character (0x20)		    *   HH     Hours 00-23		    *   :      This is the REAL in sync indicator (: = insync)			    *   MM     Minutes 00-59		    *   :      : = in sync ? = NOT in sync		    *   SS     Seconds 00-59		    *   L      Leap second flag. Changes from space (0x20)		    *          to 'I' or 'D' during month preceding leap		    *          second adjustment. (I)nsert or (D)elete		    *   +5     UT1 correction (sign + digit ))		    */   		       if (sscanf(pp->a_lastcode,                           "%*2c %*2c%2c%*c%4d%*c%3d%*4c %2d%c%2d:%2d%c%*2c",   		          char_quality, &pp->year, &pp->day,                           &pp->hour, &syncchar, &pp->minute, &pp->second,                           &leapchar) == 8) {    		   			  if (char_quality[0] == '0') {   				quality = 0;   			  } else if (char_quality[0] == '0') {   				quality = (char_quality[1] & 0x0f);   			  } else  {   				quality = 99;   			  }   		          if (leapchar == 'I' ) leapchar = '+';   		          if (leapchar == 'D' ) leapchar = '-';		          /*		          #ifdef DEBUG		          if (debug) {		             printf("ulink: char_quality %c %c\n",                                     char_quality[0], char_quality[1]);			     printf("ulink: quality %d\n", quality);			     printf("ulink: syncchar %x\n", syncchar);			     printf("ulink: leapchar %x\n", leapchar);                          }                          #endif                          */                       }		                    }                     if(siglchar == SIGLCHAR33x) {                		   /*		    * We got a Model 33X decoder.		    * Timecode format from January 29, 2001 datasheet is:		    *   <CR><LF>S9+D 00 YYYY+DDDUTCS HH:MM:SSL+5		    *   S      WWVB decoder sync indicator. S for in-sync(?)		    *          or N for noisy signal.		    *   9+     RF signal level in S-units, 0-9 followed by		    *          a space (0x20). The space turns to '+' if the		    *          level is over 9.		    *   D      Data bit 0, 1, 2 (position mark), or		    *          3 (unknown).		    *   space  Space character (0x20)		    *   00     Hours since last good WWVB frame sync. Will 		    *          be 00-23 hrs, or '1d' to '7d'. Will be 'Lk'                    *          if currently in sync. 		    *   space  Space character (0x20)		    *   YYYY   Current year, 1990-2089		    *   +      Leap year indicator. '+' if a leap year,		    *          a space (0x20) if not.		    *   DDD    Day of year, 001 - 366.		    *   UTC    Timezone (always 'UTC').		    *   S      Daylight savings indicator		    *             S - standard time (STD) in effect		    *             O - during STD to DST day 0000-2400		    *             D - daylight savings time (DST) in effect		    *             I - during DST to STD day 0000-2400		    *   space  Space character (0x20)		    *   HH     Hours 00-23		    *   :      This is the REAL in sync indicator (: = insync)			    *   MM     Minutes 00-59		    *   :      : = in sync ? = NOT in sync		    *   SS     Seconds 00-59		    *   L      Leap second flag. Changes from space (0x20)		    *          to '+' or '-' during month preceding leap		    *          second adjustment.		    *   +5     UT1 correction (sign + digit ))		    */		       if (sscanf(pp->a_lastcode,                            "%*4c %2c %4d%*c%3d%*4c %2d%c%2d:%2d%c%*2c",		           char_quality, &pp->year, &pp->day,                            &pp->hour, &syncchar, &pp->minute, &pp->second,                            &leapchar) == 8) { 					   if (char_quality[0] == 'L') {				quality = 0;			   } else if (char_quality[0] == '0') {				quality = (char_quality[1] & 0x0f);			   } else  {				quality = 99;		           }	                           /*                           #ifdef DEBUG         		   if (debug) {         			printf("ulink: char_quality %c %c\n",                                         char_quality[0], char_quality[1]);         			printf("ulink: quality %d\n", quality);         			printf("ulink: syncchar %x\n", syncchar);         			printf("ulink: leapchar %x\n", leapchar);                           }                           #endif                           */		        }                    }		    break;		}		case LEN320:	        /*		 * Model 320 Decoder		 * The timecode format is:		 *		 *  <cr><lf>SQRYYYYDDD+HH:MM:SS.mmLT<cr>		 *		 * where:		 *		 * S = 'S' -- sync'd in last hour,		 *     '0'-'9' - hours x 10 since last update,		 *     '?' -- not in sync		 * Q = Number of correlating time-frames, from 0 to 5		 * R = 'R' -- reception in progress,		 *     'N' -- Noisy reception,		 *     ' ' -- standby mode		 * YYYY = year from 1990 to 2089		 * DDD = current day from 1 to 366		 * + = '+' if current year is a leap year, else ' '		 * HH = UTC hour 0 to 23		 * MM = Minutes of current hour from 0 to 59		 * SS = Seconds of current minute from 0 to 59		 * mm = 10's milliseconds of the current second from 00 to 99		 * L  = Leap second pending at end of month		 *     'I' = insert, 'D'= delete		 * T  = DST <-> STD transition indicators		 *        	 */		if (sscanf(pp->a_lastcode, "%c%1d%c%4d%3d%*c%2d:%2d:%2d.%2ld%c",	               &syncchar, &quality, &modechar, &pp->year, &pp->day,        	       &pp->hour, &pp->minute, &pp->second,			&pp->nsec, &leapchar) == 10) {		pp->nsec *= 10000000; /* M320 returns 10's of msecs */		if (leapchar == 'I' ) leapchar = '+';		if (leapchar == 'D' ) leapchar = '-';		if (syncchar != '?' ) syncchar = ':'; 		break;		}		default:		refclock_report(peer, CEVNT_BADREPLY);		return;	}	/*	 * Decode quality indicator	 * For the 325 & 33x series, the lower the number the "better" 	 * the time is. I used the dispersion as the measure of time 	 * quality. The quality indicator in the 320 is the number of 	 * correlating time frames (the more the better)	 */	/* 	 * The spec sheet for the 325 & 33x series states the clock will	 * maintain +/-0.002 seconds accuracy when locked to WWVB. This 	 * is indicated by 'Lk' in the quality portion of the incoming 	 * string. When not in lock, a drift of +/-0.015 seconds should 	 * be allowed for.	 * With the quality indicator decoding scheme above, the 'Lk' 	 * condition will produce a quality value of 0. If the quality 	 * indicator starts with '0' then the second character is the 	 * number of hours since we were last locked. If the first 	 * character is anything other than 'L' or '0' then we have been 	 * out of lock for more than 9 hours so we assume the worst and 	 * force a quality value that selects the 'default' maximum 	 * dispersion. The dispersion values below are what came with the	 * driver. They're not unreasonable so they've not been changed.	 */	if (pp->lencode == LEN33X) {		switch (quality) {			case 0 :				pp->disp=.002;				break;			case 1 :				pp->disp=.02;				break;			case 2 :				pp->disp=.04;				break;			case 3 :				pp->disp=.08;				break;			default:				pp->disp=MAXDISPERSE;				break;		}	} else {		switch (quality) {			case 5 :				pp->disp=.002;				break;			case 4 :				pp->disp=.02;				break;			case 3 :				pp->disp=.04;				break;			case 2 :				pp->disp=.08;				break;			case 1 :				pp->disp=.16;				break;			default:				pp->disp=MAXDISPERSE;				break;		}	}	/*	 * Decode synchronization, and leap characters. If	 * unsynchronized, set the leap bits accordingly and exit.	 * Otherwise, set the leap bits according to the leap character.	 */	if (syncchar != ':')		pp->leap = LEAP_NOTINSYNC;	else if (leapchar == '+')		pp->leap = LEAP_ADDSECOND;	else if (leapchar == '-')		pp->leap = LEAP_DELSECOND;	else		pp->leap = LEAP_NOWARNING;	/*	 * Process the new sample in the median filter and determine the	 * timecode timestamp.	 */	if (!refclock_process(pp)) {		refclock_report(peer, CEVNT_BADTIME);	}}/* * ulink_poll - called by the transmit procedure */static voidulink_poll(	int unit,	struct peer *peer	){        struct refclockproc *pp;        char pollchar;        pp = peer->procptr;        pollchar = 'T';	if (pp->sloppyclockflag & CLK_FLAG1) {	        if (write(pp->io.fd, &pollchar, 1) != 1)        	        refclock_report(peer, CEVNT_FAULT);        	else      	            pp->polls++;	}	else      	            pp->polls++;        if (peer->burst > 0)                return;        if (pp->coderecv == pp->codeproc) {                refclock_report(peer, CEVNT_TIMEOUT);                return;        }        pp->lastref = pp->lastrec;	refclock_receive(peer);	record_clock_stats(&peer->srcadr, pp->a_lastcode);        peer->burst = NSTAGE;}#elseint refclock_ulink_bs;#endif /* REFCLOCK */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日本一区二区在线观看| 欧美韩日一区二区三区四区| 久久久久久久av麻豆果冻| 中文字幕一区二区三| 美腿丝袜亚洲色图| 色欧美88888久久久久久影院| 欧美一区二区三区不卡| 亚洲日本va在线观看| 国产在线播放一区| 欧美日韩国产欧美日美国产精品| 中文字幕不卡三区| 精品在线观看免费| 91精品国产aⅴ一区二区| 综合电影一区二区三区 | 2020日本不卡一区二区视频| 亚洲一区在线免费观看| 国产91丝袜在线18| 精品国产自在久精品国产| 三级一区在线视频先锋| 欧美中文字幕一区| 亚洲欧美偷拍三级| 成人激情av网| 中文字幕 久热精品 视频在线 | 成人天堂资源www在线| 欧美mv日韩mv国产网站app| 午夜精品福利一区二区三区av | 色婷婷激情久久| 日韩一区中文字幕| 成人免费毛片app| 国产嫩草影院久久久久| 国产精品亚洲午夜一区二区三区| 精品日韩欧美一区二区| 久久精品免费看| 日韩一区二区三| 精品一区二区免费在线观看| 日韩欧美美女一区二区三区| 日韩不卡一区二区三区| 日韩欧美成人一区二区| 激情五月婷婷综合网| 欧美sm美女调教| 国产一区二区三区免费观看| 久久蜜桃av一区精品变态类天堂| 国产在线播精品第三| 欧美国产视频在线| 成人伦理片在线| 亚洲欧洲av另类| 欧美综合天天夜夜久久| 天堂av在线一区| 欧美一区二区成人| 久久国产日韩欧美精品| 欧美国产综合一区二区| 99精品欧美一区二区蜜桃免费| 亚洲精品免费电影| 欧美一区二区三区在线视频| 精品一区二区三区视频在线观看| 精品免费国产一区二区三区四区| 国产老肥熟一区二区三区| 国产精品三级av| 在线观看日产精品| 裸体在线国模精品偷拍| 国产欧美日韩综合| 色噜噜狠狠色综合中国| 日本色综合中文字幕| 国产午夜亚洲精品理论片色戒| 波多野结衣精品在线| 亚洲成人tv网| 久久久国产精品麻豆| 欧洲一区二区三区在线| 精品在线亚洲视频| 中文字幕日本不卡| 69久久夜色精品国产69蝌蚪网| 国产一区二区免费看| 亚洲一区二区在线视频| 日韩美女天天操| 99re66热这里只有精品3直播| 日韩中文字幕区一区有砖一区 | 91在线一区二区三区| 日本视频中文字幕一区二区三区| 国产精品久久久久久户外露出| 欧美剧情电影在线观看完整版免费励志电影| 久久精品国产免费看久久精品| 日韩理论片网站| 精品久久久久99| 欧美日韩中文另类| 成人午夜免费av| 国产综合色产在线精品| 亚洲成人综合网站| 中文字幕一区二| 日本一区免费视频| 日韩免费视频一区| 在线看日本不卡| 成人免费毛片嘿嘿连载视频| 韩国三级电影一区二区| 视频一区二区三区入口| 亚洲天堂av一区| 国产婷婷色一区二区三区在线| 日韩视频免费直播| 欧美肥大bbwbbw高潮| 色网站国产精品| 成人av先锋影音| 成人亚洲精品久久久久软件| 久久国产精品99精品国产| 亚洲电影在线播放| 亚洲欧美日韩一区二区三区在线观看| 久久久久久99久久久精品网站| 日韩精品一区二区三区在线播放 | 色噜噜狠狠色综合欧洲selulu| 国产成人av一区| 国产尤物一区二区在线| 久久99精品国产麻豆婷婷洗澡| 丝袜美腿亚洲色图| 亚洲福利国产精品| 亚洲丰满少妇videoshd| 亚洲va天堂va国产va久| 一区二区成人在线| 亚洲精选一二三| 亚洲一区二区精品3399| 亚洲一区二区欧美| 亚洲国产精品综合小说图片区| 亚洲国产日韩综合久久精品| 亚洲一区二区三区影院| 亚洲高清视频中文字幕| 首页国产丝袜综合| 蜜臀av性久久久久蜜臀aⅴ流畅 | 精品精品国产高清一毛片一天堂| 日韩无一区二区| 久久久另类综合| 国产精品久久久久永久免费观看| 国产精品不卡在线观看| 一区二区三区在线影院| 亚洲高清免费观看高清完整版在线观看| 亚洲成av人片在线观看无码| 日本亚洲三级在线| 精品一区二区三区在线观看| 国产成a人亚洲精品| 色综合天天性综合| 欧美精选一区二区| 精品999在线播放| 亚洲国产成人一区二区三区| 亚洲精品欧美激情| 青青草精品视频| 成人性生交大合| 欧美亚洲自拍偷拍| 精品精品国产高清一毛片一天堂| 欧美国产激情一区二区三区蜜月| 夜夜精品浪潮av一区二区三区| 日产国产欧美视频一区精品| 国产丶欧美丶日本不卡视频| 在线观看不卡一区| 精品国产免费一区二区三区四区| 国产精品久久久久久亚洲伦 | 亚洲一区二区偷拍精品| 麻豆91精品视频| 99v久久综合狠狠综合久久| 91精品一区二区三区久久久久久 | 精品国免费一区二区三区| 国产精品乱码妇女bbbb| 婷婷国产v国产偷v亚洲高清| 高清不卡在线观看av| 欧美日韩国产免费| 中国色在线观看另类| 麻豆精品视频在线观看免费| 91丨porny丨户外露出| 日韩精品在线一区二区| 亚洲欧美aⅴ...| 韩国精品免费视频| 欧美人牲a欧美精品| 国产精品剧情在线亚洲| 毛片av一区二区| 欧美性色综合网| 国产精品无遮挡| 久久99国产精品久久99果冻传媒 | 91免费看片在线观看| 精品日产卡一卡二卡麻豆| 亚洲一区在线观看免费观看电影高清 | 欧美精品在欧美一区二区少妇| 中文天堂在线一区| 精品一区二区成人精品| 欧美人妖巨大在线| 又紧又大又爽精品一区二区| 成人中文字幕电影| 精品国产亚洲一区二区三区在线观看| 亚洲制服丝袜av| 一本到一区二区三区| 亚洲欧洲av另类| av在线综合网| 国产拍欧美日韩视频二区| 日韩经典中文字幕一区| 欧美三级一区二区| 亚洲激情图片小说视频| jlzzjlzz欧美大全| 中文字幕精品一区二区精品绿巨人| 久久99精品一区二区三区三区| 这里只有精品99re| 日韩国产一区二| 欧美一级二级三级蜜桃| 日韩精品每日更新| 日韩欧美国产综合一区| 裸体歌舞表演一区二区| 日韩一区二区精品葵司在线|