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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? tcp_input.c

?? vxworks的完整的源代碼
?? C
?? 第 1 頁 / 共 5 頁
字號:
		if ((tiflags & TH_SYN) == 0)			goto drop;		if (tiflags & TH_ACK) {			tp->snd_una = ti->ti_ack;			if (SEQ_LT(tp->snd_nxt, tp->snd_una))				tp->snd_nxt = tp->snd_una;                        tp->t_timer[TCPT_REXMT] = 0;		}		tp->irs = ti->ti_seq;		tcp_rcvseqinit(tp);		tp->t_flags |= TF_ACKNOW;		if (tiflags & TH_ACK ) {			tcpstat.tcps_connects++;#ifdef WV_INSTRUMENTATION#ifdef INCLUDE_WVNET    /* WV_NET_INFO event */            WV_NET_PORTIN_EVENT_3 (NET_AUX_EVENT, WV_NET_INFO, 30, 12,                                   ti->ti_sport, ti->ti_dport,                                   WV_NETEVENT_TCPIN_CONNECT, WV_NET_RECV,                                    so->so_fd, tp->snd_nxt, tp->rcv_nxt)#endif  /* INCLUDE_WVNET */#endif			soisconnected(so);			tp->t_state = TCPS_ESTABLISHED;			/* Do window scaling on this connection? */			if ((tp->t_flags & (TF_RCVD_SCALE|TF_REQ_SCALE)) ==				(TF_RCVD_SCALE|TF_REQ_SCALE)) {				tp->snd_scale = tp->requested_s_scale;				tp->rcv_scale = tp->request_r_scale;			}			(void) tcp_reass(tp, (struct tcpiphdr *)0,				(struct mbuf *)0);			/*			 * if we didn't have to retransmit the SYN,			 * use its rtt as our initial srtt & rtt var.			 */			if (tp->t_rtt)				tcp_xmit_timer(tp, tp->t_rtt);		} else			tp->t_state = TCPS_SYN_RECEIVED;trimthenstep6:		/*		 * Advance ti->ti_seq to correspond to first data byte.		 * If data, trim to stay within window,		 * dropping FIN if necessary.		 */		ti->ti_seq++;		if (ti->ti_len > tp->rcv_wnd) {			todrop = ti->ti_len - tp->rcv_wnd;			m_adj(m, -todrop);			ti->ti_len = tp->rcv_wnd;			tiflags &= ~TH_FIN;			tcpstat.tcps_rcvpackafterwin++;			tcpstat.tcps_rcvbyteafterwin += todrop;		}		tp->snd_wl1 = ti->ti_seq - 1;		tp->rcv_up = ti->ti_seq;		goto step6;	}	/*	 * States other than LISTEN or SYN_SENT.	 * First check timestamp, if present.	 * Then check that at least some bytes of segment are within 	 * receive window.  If segment begins before rcv_nxt,	 * drop leading data (and SYN); if nothing left, just ack.	 * 	 * RFC 1323 PAWS: If we have a timestamp reply on this segment	 * and it's less than ts_recent, drop it.	 */	if (ts_present && (tiflags & TH_RST) == 0 && tp->ts_recent &&	    TSTMP_LT(ts_val, tp->ts_recent)) {		/* Check to see if ts_recent is over 24 days old.  */		if ((int)(tcp_now - tp->ts_recent_age) > TCP_PAWS_IDLE) {			/*			 * Invalidate ts_recent.  If this segment updates			 * ts_recent, the age will be reset later and ts_recent			 * will get a valid value.  If it does not, setting			 * ts_recent to zero will at least satisfy the			 * requirement that zero be placed in the timestamp			 * echo reply when ts_recent isn't valid.  The			 * age isn't reset until we get a valid ts_recent			 * because we don't want out-of-order segments to be			 * dropped when ts_recent is old.			 */			tp->ts_recent = 0;		} else {			tcpstat.tcps_rcvduppack++;			tcpstat.tcps_rcvdupbyte += ti->ti_len;			tcpstat.tcps_pawsdrop++;			goto dropafterack;		}	}	todrop = tp->rcv_nxt - ti->ti_seq;	if (todrop > 0) {		if (tiflags & TH_SYN) {			tiflags &= ~TH_SYN;			ti->ti_seq++;			if (ti->ti_urp > 1) 				ti->ti_urp--;			else				tiflags &= ~TH_URG;			todrop--;		}#if 0  /* simultaneous open bug  */              		if (todrop >= ti->ti_len) {			tcpstat.tcps_rcvduppack++;			tcpstat.tcps_rcvdupbyte += ti->ti_len;			/*			 * If segment is just one to the left of the window,			 * check two special cases:			 * 1. Don't toss RST in response to 4.2-style keepalive.			 * 2. If the only thing to drop is a FIN, we can drop			 *    it, but check the ACK or we will get into FIN			 *    wars if our FINs crossed (both CLOSING).			 * In either case, send ACK to resynchronize,			 * but keep on processing for RST or ACK.			 */			if ((tiflags & TH_FIN && todrop == ti->ti_len + 1)#ifdef TCP_COMPAT_42			  || (tiflags & TH_RST && ti->ti_seq == tp->rcv_nxt - 1)#endif			   ) {				todrop = ti->ti_len;				tiflags &= ~TH_FIN;			} else {				/*				 * Handle the case when a bound socket connects				 * to itself. Allow packets with a SYN and				 * an ACK to continue with the processing.				 */				if (todrop != 0 || (tiflags & TH_ACK) == 0)					goto dropafterack;			}			tp->t_flags |= TF_ACKNOW;		} else {			tcpstat.tcps_rcvpartduppack++;			tcpstat.tcps_rcvpartdupbyte += todrop;		}#else /* XXX  simultaneous open bug fix Steven vol II sec 28.8 fig 28.30 */                if (todrop > ti->ti_len ||                    (todrop == ti->ti_len && (tiflags & TH_FIN) == 0)) {                    /*                     * Any valid Fin must be to the left of the window.                     * At this point the FIN must be a duplicate or                     * out of sequence; drop it.                     */                     tiflags &= ~TH_FIN;                    /*                     * Send an ACK to resynchronize and drop any data.                     * But keep on processing for RST or ACK.                     */                    tp->t_flags |= TF_ACKNOW;                    todrop = ti->ti_len;                }                tcpstat.tcps_rcvdupbyte += todrop;                tcpstat.tcps_rcvduppack++;#endif /* simultaneous open bug fix */                   		m_adj(m, todrop);		ti->ti_seq += todrop;		ti->ti_len -= todrop;		if (ti->ti_urp > todrop)			ti->ti_urp -= todrop;		else {			tiflags &= ~TH_URG;			ti->ti_urp = 0;		}	}	/*	 * If new data are received on a connection after the	 * user processes are gone, then RST the other end.	 */	if ((so->so_state & SS_NOFDREF) &&	    tp->t_state > TCPS_CLOSE_WAIT && ti->ti_len) {		tp = tcp_close(tp);		tcpstat.tcps_rcvafterclose++;#ifdef WV_INSTRUMENTATION#ifdef INCLUDE_WVNET    /* WV_NET_INFO event */        WV_NET_PORTIN_EVENT_3 (NET_CORE_EVENT, WV_NET_INFO, 31, 13,                               ti->ti_sport, ti->ti_dport,                               WV_NETEVENT_TCPIN_DATACLOSED, WV_NET_RECV,                                so->so_fd, ti->ti_seq, ti->ti_len)#endif  /* INCLUDE_WVNET */#endif		goto dropwithreset;	}	/*	 * If segment ends after window, drop trailing data	 * (and PUSH and FIN); if nothing left, just ACK.	 */	todrop = (ti->ti_seq+ti->ti_len) - (tp->rcv_nxt+tp->rcv_wnd);	if (todrop > 0) {		tcpstat.tcps_rcvpackafterwin++;		if (todrop >= ti->ti_len) {			tcpstat.tcps_rcvbyteafterwin += ti->ti_len;			/*			 * If a new connection request is received			 * while in TIME_WAIT, drop the old connection			 * and start over if the sequence numbers			 * are above the previous ones.			 */			if (tiflags & TH_SYN &&			    tp->t_state == TCPS_TIME_WAIT &&			    SEQ_GT(ti->ti_seq, tp->rcv_nxt)) {				iss = tp->snd_nxt + TCP_ISSINCR;				tp = tcp_close(tp);				goto findpcb;			}			/*			 * If window is closed can only take segments at			 * window edge, and have to drop data and PUSH from			 * incoming segments.  Continue processing, but			 * remember to ack.  Otherwise, drop segment			 * and ack.			 */			if (tp->rcv_wnd == 0 && ti->ti_seq == tp->rcv_nxt) {				tp->t_flags |= TF_ACKNOW;				tcpstat.tcps_rcvwinprobe++;			} else				goto dropafterack;		} else			tcpstat.tcps_rcvbyteafterwin += todrop;		m_adj(m, -todrop);		ti->ti_len -= todrop;		tiflags &= ~(TH_PUSH|TH_FIN);	}	/*	 * If last ACK falls within this segment's sequence numbers,	 * record its timestamp.	 */	if (ts_present && TSTMP_GEQ(ts_val, tp->ts_recent) &&            SEQ_LEQ(ti->ti_seq, tp->last_ack_sent)) {		tp->ts_recent_age = tcp_now;		tp->ts_recent = ts_val;	}	/*	 * If the RST bit is set examine the state:	 *    SYN_RECEIVED STATE:	 *	If passive open, return to LISTEN state.	 *	If active open, inform user that connection was refused.	 *    ESTABLISHED, FIN_WAIT_1, FIN_WAIT2, CLOSE_WAIT STATES:	 *	Inform user that connection was reset, and close tcb.	 *    CLOSING, LAST_ACK, TIME_WAIT STATES	 *	Close the tcb.	 */	if (tiflags&TH_RST) switch (tp->t_state) {	case TCPS_SYN_RECEIVED:		so->so_error = ECONNREFUSED;		goto close;	case TCPS_ESTABLISHED:	case TCPS_FIN_WAIT_1:	case TCPS_FIN_WAIT_2:	case TCPS_CLOSE_WAIT:		so->so_error = ECONNRESET;	close:#ifdef WV_INSTRUMENTATION#ifdef INCLUDE_WVNET    /* WV_NET_INFO event */        WV_NET_PORTIN_EVENT_1 (NET_AUX_EVENT, WV_NET_INFO, 32, 14,                               ti->ti_sport, ti->ti_dport,                               WV_NETEVENT_TCPIN_RESET, WV_NET_RECV,                                so->so_fd)#endif  /* INCLUDE_WVNET */#endif		tp->t_state = TCPS_CLOSED;		tcpstat.tcps_drops++;		tp = tcp_close(tp);		goto drop;	case TCPS_CLOSING:	case TCPS_LAST_ACK:	case TCPS_TIME_WAIT:		tp = tcp_close(tp);		goto drop;	}	/*	 * If a SYN is in the window, then this is an	 * error and we send an RST and drop the connection.	 */	if (tiflags & TH_SYN) {#ifdef WV_INSTRUMENTATION#ifdef INCLUDE_WVNET    /* WV_NET_WARNING event */        WV_NET_PORTIN_EVENT_1 (NET_CORE_EVENT, WV_NET_WARNING, 12, 5,                               ti->ti_sport, ti->ti_dport,                               WV_NETEVENT_TCPIN_BADSYNC, WV_NET_RECV,                                so->so_fd)#endif  /* INCLUDE_WVNET */#endif		tp = tcp_drop(tp, ECONNRESET);		goto dropwithreset;	}	/*	 * If the ACK bit is off we drop the segment and return.	 */	if ((tiflags & TH_ACK) == 0)		goto drop;		/*	 * Ack processing.	 */	switch (tp->t_state) {	/*	 * In SYN_RECEIVED state if the ack ACKs our SYN then enter	 * ESTABLISHED state and continue processing, otherwise	 * send an RST.	 */	case TCPS_SYN_RECEIVED:		if (SEQ_GT(tp->snd_una, ti->ti_ack) ||		    SEQ_GT(ti->ti_ack, tp->snd_max))			goto dropwithreset;#ifdef WV_INSTRUMENTATION#ifdef INCLUDE_WVNET    /* WV_NET_INFO event */            WV_NET_PORTIN_EVENT_3 (NET_AUX_EVENT, WV_NET_INFO, 30, 12,                                   ti->ti_sport, ti->ti_dport,                                   WV_NETEVENT_TCPIN_CONNECT, WV_NET_RECV,                                    so->so_fd, tp->snd_nxt, tp->rcv_nxt)#endif  /* INCLUDE_WVNET */#endif		tcpstat.tcps_connects++;		soisconnected(so);		tp->t_state = TCPS_ESTABLISHED;		/* Do window scaling? */		if ((tp->t_flags & (TF_RCVD_SCALE|TF_REQ_SCALE)) ==			(TF_RCVD_SCALE|TF_REQ_SCALE)) {			tp->snd_scale = tp->requested_s_scale;			tp->rcv_scale = tp->request_r_scale;		}		(void) tcp_reass(tp, (struct tcpiphdr *)0, (struct mbuf *)0);		tp->snd_wl1 = ti->ti_seq - 1;		/* fall into ... */	/*	 * In ESTABLISHED state: drop duplicate ACKs; ACK out of range	 * ACKs.  If the ack is in the range	 *	tp->snd_una < ti->ti_ack <= tp->snd_max	 * then advance tp->snd_una to ti->ti_ack and drop	 * data from the retransmission queue.  If this ACK reflects	 * more up to date window information we update our window information.	 */	case TCPS_ESTABLISHED:	case TCPS_FIN_WAIT_1:	case TCPS_FIN_WAIT_2:	case TCPS_CLOSE_WAIT:	case TCPS_CLOSING:	case TCPS_LAST_ACK:	case TCPS_TIME_WAIT:		if (SEQ_LEQ(ti->ti_ack, tp->snd_una)) {			if (ti->ti_len == 0 && tiwin == tp->snd_wnd) {				tcpstat.tcps_rcvdupack++;				/*				 * If we have outstanding data (other than				 * a window probe), this is a completely				 * duplicate ack (ie, window info didn't				 * change), the ack is the biggest we've				 * seen and we've seen exactly our rexmt				 * threshhold of them, assume a packet				 * has been dropped and retransmit it.				 * Kludge snd_nxt & the congestion				 * window so we send only this one				 * packet.				 *				 * We know we're losing at the current				 * window size so do congestion avoidance				 * (set ssthresh to half the current window				 * and pull our congestion window back to				 * the new ssthresh).				 *				 * Dup acks mean that packets have left the				 * network (they're now cached at the receiver) 				 * so bump cwnd by the amount in the receiver				 * to keep a constant cwnd packets in the				 * network.				 */				if (tp->t_timer[TCPT_REXMT] == 0 ||				    ti->ti_ack != tp->snd_una)					tp->t_dupacks = 0;				else if (++tp->t_dupacks == tcprexmtthresh) {					tcp_seq onxt = tp->snd_nxt;					u_int win =					    min(tp->snd_wnd, tp->snd_cwnd) / 2 /						tp->t_maxseg;					if (win < 2)						win = 2;					tp->snd_ssthresh = win * tp->t_maxseg;					tp->t_timer[TCPT_REXMT] = 0;					tp->t_rtt = 0;					tp->snd_nxt = ti->ti_ack;					tp->snd_cwnd = tp->t_maxseg;#ifdef WV_INSTRUMENTATION#ifdef INCLUDE_WVNET    /* WV_NET_WARNING event */            WV_NET_PORTOUT_EVENT_2 (NET_CORE_EVENT, WV_NET_WARNING, 13, 6,                              tp->t_inpcb->inp_lport, tp->t_inpcb->inp_fport,                                   WV_NETEVENT_TCPIN_SENDFAIL, WV_NET_RECV,                                    so->so_fd, tp->t_dupacks)#endif  /* INCLUDE_WVNET */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲va欧美va人人爽午夜| 亚洲人快播电影网| 色八戒一区二区三区| 爽爽淫人综合网网站| 国产精品美女久久久久aⅴ国产馆| 欧美天堂一区二区三区| 丁香网亚洲国际| 免费观看成人av| 一区二区激情视频| 久久久欧美精品sm网站| 欧美一区二区三区影视| 在线免费不卡视频| 成人av中文字幕| 韩国精品久久久| 奇米亚洲午夜久久精品| 亚洲影视在线播放| 综合久久一区二区三区| 久久精品人人爽人人爽| 日韩亚洲欧美在线| 欧美精品xxxxbbbb| 精品视频一区三区九区| 91麻豆.com| 不卡视频一二三四| 成人精品视频一区二区三区尤物| 韩国成人在线视频| 狠狠色丁香婷婷综合久久片| 毛片av中文字幕一区二区| 天堂一区二区在线免费观看| 亚洲成av人影院| 亚洲午夜精品在线| 亚洲第一精品在线| 午夜电影网一区| 日韩国产欧美在线观看| 天天综合日日夜夜精品| 亚洲成av人片| 日韩av电影免费观看高清完整版| 日本午夜精品视频在线观看| 午夜激情一区二区| 日韩国产欧美在线视频| 日韩av中文在线观看| 免费观看成人av| 狠狠色丁香婷婷综合| 国产成人免费av在线| 成人国产精品免费观看动漫| www.爱久久.com| 色老汉av一区二区三区| 欧美艳星brazzers| 3d成人动漫网站| 日韩欧美精品三级| 久久精品免费在线观看| 欧美激情艳妇裸体舞| 亚洲欧洲日韩av| 亚洲国产日韩综合久久精品| 日本伊人午夜精品| 国产一区二区视频在线播放| 成人免费观看男女羞羞视频| 97久久精品人人澡人人爽| 欧美亚洲国产bt| 337p亚洲精品色噜噜噜| xnxx国产精品| 亚洲欧洲国产日韩| 亚洲午夜一二三区视频| 精品写真视频在线观看| 国产99精品国产| 欧美综合久久久| 欧美变态tickle挠乳网站| 国产精品欧美一级免费| 亚洲国产日韩一级| 国产精品18久久久久久久久| 99久久精品免费看| 在线播放中文字幕一区| 久久久不卡网国产精品一区| 亚洲人成网站在线| 黄色精品一二区| 91成人网在线| 久久综合九色综合欧美就去吻| 国产精品久久午夜| 视频一区欧美日韩| 成人一级视频在线观看| 欧美日韩高清不卡| 中文在线一区二区| 天天操天天综合网| 菠萝蜜视频在线观看一区| 欧美人妖巨大在线| 国产欧美精品国产国产专区| 偷窥国产亚洲免费视频| 成人激情综合网站| 日韩欧美久久久| 一区二区欧美在线观看| 国产成人免费xxxxxxxx| 56国语精品自产拍在线观看| 一区二区中文视频| 国产酒店精品激情| 欧美日韩一卡二卡三卡| 国产精品国产成人国产三级| 奇米777欧美一区二区| 一本久久综合亚洲鲁鲁五月天 | 欧美一级免费观看| 日韩毛片在线免费观看| 久久99日本精品| 欧美午夜精品久久久久久超碰| 国产欧美日本一区二区三区| 日本不卡中文字幕| 欧美性猛交xxxx乱大交退制版| 欧美激情一区二区三区蜜桃视频| 美国欧美日韩国产在线播放| 精品视频一区 二区 三区| 国产精品久久久久久久久免费桃花| 久久精品国产一区二区三| 欧美日韩中文精品| 亚洲激情av在线| av亚洲精华国产精华精| 久久久www成人免费毛片麻豆| 日本不卡视频一二三区| 欧美精品在线一区二区| 亚洲午夜电影在线观看| 91丨porny丨户外露出| 亚洲国产精品成人综合 | 老色鬼精品视频在线观看播放| 在线视频国内一区二区| 亚洲欧洲日产国码二区| 成人午夜私人影院| 国产欧美一区二区精品性| 黑人精品欧美一区二区蜜桃| 日韩女优av电影| 美女尤物国产一区| 欧美电影免费观看高清完整版在| 日韩精品高清不卡| 欧美日韩的一区二区| 视频一区视频二区中文| 日韩一级片网站| 精品一区二区免费| 欧美精品一区二区三区蜜桃| 精品写真视频在线观看| 久久免费看少妇高潮| 国产乱国产乱300精品| 国产丝袜在线精品| 成人丝袜视频网| 亚洲视频免费在线| 在线亚洲一区二区| 亚洲r级在线视频| 欧美一级日韩一级| 韩国欧美一区二区| 国产日韩欧美一区二区三区综合 | 国产精品一级黄| 国产日产精品一区| a级精品国产片在线观看| 综合激情成人伊人| 在线观看成人免费视频| 偷偷要91色婷婷| 欧美成人精品1314www| 国产精品一二三四| 亚洲天堂网中文字| 欧美日韩黄色一区二区| 另类小说图片综合网| 中文字幕成人在线观看| 色悠悠久久综合| 日产国产高清一区二区三区| 久久精品网站免费观看| 一本一本久久a久久精品综合麻豆| 午夜久久久久久| 久久蜜臀中文字幕| 91在线国内视频| 日韩成人dvd| 国产精品久久一卡二卡| 欧美二区在线观看| 国产精品1区二区.| 亚洲成人免费av| 久久久久久麻豆| 在线观看亚洲a| 国产乱码精品1区2区3区| 一区二区三区中文字幕精品精品 | 国产日本欧美一区二区| 色综合 综合色| 精品一区二区三区免费毛片爱 | 日韩—二三区免费观看av| 国产人妖乱国产精品人妖| 欧美日韩一区高清| 国产精品123区| 日本一区中文字幕| 国产精品国产三级国产aⅴ中文| 欧美日韩国产大片| 岛国一区二区三区| 日韩黄色免费电影| 中文字幕视频一区| 日韩无一区二区| 91久久一区二区| 国产福利一区二区三区视频在线 | 日韩不卡免费视频| 亚洲男同性恋视频| 国产亚洲一区二区三区四区| 欧美精品在欧美一区二区少妇| 成人一区二区三区在线观看| 蜜臂av日日欢夜夜爽一区| 亚洲精品国产一区二区精华液 | 欧美大片日本大片免费观看| 91论坛在线播放| 成人做爰69片免费看网站| 麻豆精品新av中文字幕| 亚洲 欧美综合在线网络|