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

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

?? uip.c

?? IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR
?? C
?? 第 1 頁 / 共 5 頁
字號:
              goto drop;

      UIP_STAT(++uip_stat.tcp.rst);

      BUF->flags = TCP_RST | TCP_ACK;
      uip_len = 40;
      BUF->tcpoffset = 5 << 4;

      /* Flip the seqno and ackno fields in the TCP header. */
      c = BUF->seqno[3];
      BUF->seqno[3] = BUF->ackno[3];
      BUF->ackno[3] = c;
  
      c = BUF->seqno[2];
      BUF->seqno[2] = BUF->ackno[2];
      BUF->ackno[2] = c;

      c = BUF->seqno[1];
      BUF->seqno[1] = BUF->ackno[1];
      BUF->ackno[1] = c;

      c = BUF->seqno[0];
      BUF->seqno[0] = BUF->ackno[0];
      BUF->ackno[0] = c;

      /* We also have to increase the sequence number we are
         acknowledging. If the least significant byte overflowed, we need
         to propagate the carry to the other bytes as well. */
      if(++BUF->ackno[3] == 0) {
                if(++BUF->ackno[2] == 0) {
                            if(++BUF->ackno[1] == 0) {
                                	++BUF->ackno[0];
                            }
                }
      }

      /* Swap port numbers. */
      tmp16 = BUF->srcport;
      BUF->srcport = BUF->destport;
      BUF->destport = tmp16;
    
      /* Swap IP addresses. */
      tmp16 = BUF->destipaddr[0];
      BUF->destipaddr[0] = BUF->srcipaddr[0];
      BUF->srcipaddr[0] = tmp16;
      tmp16 = BUF->destipaddr[1];
      BUF->destipaddr[1] = BUF->srcipaddr[1];
      BUF->srcipaddr[1] = tmp16;
    

      /* And send out the RST packet! */
      goto tcp_send_noconn;

      /* This label will be jumped to if we matched the incoming packet
         with a connection in LISTEN. In that case, we should create a new
         connection and send a SYNACK in return. */
found_listen:
      /* First we check if there are any connections avaliable. Unused
         connections are kept in the same table as used connections, but
         unused ones have the tcpstate set to CLOSED. Also, connections in
         TIME_WAIT are kept track of and we'll use the oldest one if no
         CLOSED connections are found. Thanks to Eddie C. Dost for a very
         nice algorithm for the TIME_WAIT search. */
      uip_connr = 0;
      for(c = 0; c < UIP_CONNS; ++c) {
                  if(uip_conns[c].tcpstateflags == CLOSED) {
                              uip_connr = &uip_conns[c];
                              break;
                  }
                  if(uip_conns[c].tcpstateflags == TIME_WAIT) {
                              if(uip_connr == 0 || uip_conns[c].timer > uip_connr->timer) {
                                          	uip_connr = &uip_conns[c];
                              }
                  }
      }

      if(uip_connr == 0) {
        /* All connections are used already, we drop packet and hope that
           the remote end will retransmit the packet at a time when we
           have more spare connections. */
          UIP_STAT(++uip_stat.tcp.syndrop);
          UIP_LOG("tcp: found no unused connections.");
          goto drop;
      }
      uip_conn = uip_connr;
    
      /* Fill in the necessary fields for the new connection. */
      uip_connr->rto = uip_connr->timer = UIP_RTO;
      uip_connr->sa = 0;
      uip_connr->sv = 4;
      uip_connr->nrtx = 0;
      uip_connr->lport = BUF->destport;
      uip_connr->rport = BUF->srcport;
      uip_connr->ripaddr[0] = BUF->srcipaddr[0];
      uip_connr->ripaddr[1] = BUF->srcipaddr[1];
      uip_connr->tcpstateflags = SYN_RCVD;
    
      uip_connr->snd_nxt[0] = iss[0];
      uip_connr->snd_nxt[1] = iss[1];
      uip_connr->snd_nxt[2] = iss[2];
      uip_connr->snd_nxt[3] = iss[3];
      uip_connr->len = 1;   
    
      /* rcv_nxt should be the seqno from the incoming packet + 1. */
      uip_connr->rcv_nxt[3] = BUF->seqno[3];
      uip_connr->rcv_nxt[2] = BUF->seqno[2];
      uip_connr->rcv_nxt[1] = BUF->seqno[1];
      uip_connr->rcv_nxt[0] = BUF->seqno[0];
      uip_add_rcv_nxt(1);
    
      /* Parse the TCP MSS option, if present. */
      if((BUF->tcpoffset & 0xf0) > 0x50) {
                for(c = 0; c < ((BUF->tcpoffset >> 4) - 5) << 2 ;) {
                                opt = uip_buf[UIP_TCPIP_HLEN + UIP_LLH_LEN + c];
                                if(opt == 0x00) {
                                      	/* End of options. */	
                                          break;
                                }
                                else if(opt == 0x01) {
                                          ++c;
                        	/* NOP option. */
                                }
                                else if(opt == 0x02 &&uip_buf[UIP_TCPIP_HLEN + UIP_LLH_LEN + 1 + c] == 0x04) {
                                      	/* An MSS option with the right option length. */	
                                  	tmp16 = ((u16_t)uip_buf[UIP_TCPIP_HLEN + UIP_LLH_LEN + 2 + c] << 8) |
                                        (u16_t)uip_buf[40 + UIP_LLH_LEN + 3 + c];
                                  	uip_connr->initialmss = uip_connr->mss =
                                        tmp16 > UIP_TCP_MSS? UIP_TCP_MSS: tmp16;
	
                                        	/* And we are done processing options. */
                                	break;
                                }
                                else {
                                      	/* All other options have a length field, so that we easily
                                	   can skip past them. */
                                  	if(uip_buf[UIP_TCPIP_HLEN + UIP_LLH_LEN + 1 + c] == 0) {
                                            	  /* If the length field is zero, the options are malformed
                                          	     and we don't process them further. */
                                        	  break;
                                      	}
                                    	c += uip_buf[UIP_TCPIP_HLEN + UIP_LLH_LEN + 1 + c];
                                }
                }
      }

      /* Our response will be a SYNACK. */
#if UIP_ACTIVE_OPEN
     tcp_send_synack:
     BUF->flags = TCP_ACK;

tcp_send_syn:
      BUF->flags |= TCP_SYN;
#else /* UIP_ACTIVE_OPEN */
      tcp_send_synack:
      BUF->flags = TCP_SYN | TCP_ACK;
#endif /* UIP_ACTIVE_OPEN */

      /* We send out the TCP Maximum Segment Size option with our
         SYNACK. */
      BUF->optdata[0] = 2;
      BUF->optdata[1] = 4;
      BUF->optdata[2] = (UIP_TCP_MSS) / 256;
      BUF->optdata[3] = (UIP_TCP_MSS) & 255;
      uip_len = 44;
      BUF->tcpoffset = 6 << 4;
      goto tcp_send;
    
      /* This label will be jumped to if we found an active connection. */
found:
      uip_conn = uip_connr;
      uip_flags = 0;
    
      /* We do a very naive form of TCP reset processing; we just accept
         any RST and kill our connection. We should in fact check if the
         sequence number of this reset is wihtin our advertised window
         before we accept the reset. */
      if(BUF->flags & TCP_RST) {
              uip_connr->tcpstateflags = CLOSED;
              UIP_LOG("tcp: got reset, aborting connection.");
              uip_flags = UIP_ABORT;
              UIP_APPCALL();
              goto drop;
      }
      /* Calculated the length of the data, if the application has sent
         any data to us. */
      c = (BUF->tcpoffset >> 4) << 2;
      /* uip_len will contain the length of the actual TCP data. This is
         calculated by subtracing the length of the TCP header (in
         c) and the length of the IP header (20 bytes). */
      uip_len = uip_len - c - 20;
    
      /* First, check if the sequence number of the incoming packet is
             what we're expecting next. If not, we send out an ACK with the
         correct numbers in. */
      if(uip_len > 0 &&
         (BUF->seqno[0] != uip_connr->rcv_nxt[0] ||
          BUF->seqno[1] != uip_connr->rcv_nxt[1] ||
          BUF->seqno[2] != uip_connr->rcv_nxt[2] ||
          BUF->seqno[3] != uip_connr->rcv_nxt[3])) {
            
                    goto tcp_send_ack;
      }

      /* Next, check if the incoming segment acknowledges any outstanding
         data. If so, we update the sequence number, reset the length of
         the outstanding data, calculate RTT estimations, and reset the
         retransmission timer. */
      if((BUF->flags & TCP_ACK) && uip_outstanding(uip_connr)) {
                    uip_add32(uip_connr->snd_nxt, uip_connr->len);
                    if(BUF->ackno[0] == uip_acc32[0] &&
                       BUF->ackno[1] == uip_acc32[1] &&
                       BUF->ackno[2] == uip_acc32[2] &&
                       BUF->ackno[3] == uip_acc32[3]) {
                                      /* Update sequence number. */
                                      uip_connr->snd_nxt[0] = uip_acc32[0];
                                      uip_connr->snd_nxt[1] = uip_acc32[1];
                                      uip_connr->snd_nxt[2] = uip_acc32[2];
                                      uip_connr->snd_nxt[3] = uip_acc32[3];
	
                                         /* Do RTT estimation, unless we have done retransmissions. */
                                      if(uip_connr->nrtx == 0) {
                                          	signed char m;
                                                m = uip_connr->rto - uip_connr->timer;
                                            	/* This is taken directly from VJs original code in his paper */
                                            	m = m - (uip_connr->sa >> 3);
                                          	uip_connr->sa += m;
                                            	if(m < 0) {
                                                    	  m = -m;
                                          	}
                                          	m = m - (uip_connr->sv >> 2);
                                        	uip_connr->sv += m;
                                                uip_connr->rto = (uip_connr->sa >> 3) + uip_connr->sv;

                                    }
                                    /* Set the acknowledged flag. */
                                    uip_flags = UIP_ACKDATA;
                                    /* Reset the retransmission timer. */
                                    uip_connr->timer = uip_connr->rto;
                    }

      }

      /* Do different things depending on in what state the connection is. */
      switch(uip_connr->tcpstateflags & TS_MASK) {
                /* CLOSED and LISTEN are not handled here. CLOSE_WAIT is not
                implemented, since we force the application to close when the
          	peer sends a FIN (hence the application goes directly from
        	ESTABLISHED to LAST_ACK). */
                case SYN_RCVD:
                          /* In SYN_RCVD we have sent out a SYNACK in response to a SYN, and
                               we are waiting for an ACK that acknowledges the data we sent
                               out the last time. Therefore, we want to have the UIP_ACKDATA
                                 flag set. If so, we enter the ESTABLISHED state. */
                                if(uip_flags & UIP_ACKDATA) {
                                          uip_connr->tcpstateflags = ESTABLISHED;
                                          uip_flags = UIP_CONNECTED;
                                          uip_connr->len = 0;
                                          if(uip_len > 0) {
                                                      uip_flags |= UIP_NEWDATA;
                                                      uip_add_rcv_nxt(uip_len);
                                          }
                                          uip_slen = 0;
                                          UIP_APPCALL();
                                          goto appsend;
                                }
                                goto drop;
#if UIP_ACTIVE_OPEN
                case SYN_SENT:
                                /* In SYN_SENT, we wait for a SYNACK that is sent in response to
                                     our SYN. The rcv_nxt is set to sequence number in the SYNACK
                                           plus one, and we send an ACK. We move into the ESTABLISHED
                                           state. */
                                if((uip_flags & UIP_ACKDATA) && BUF->flags == (TCP_SYN | TCP_ACK)) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美老肥妇做.爰bbww视频| 色综合久久综合网欧美综合网 | 亚洲已满18点击进入久久| 国产精品久久久久aaaa| 国产精品综合视频| 最新国产精品久久精品| 国产一区二区按摩在线观看| 日韩一区二区免费电影| 国产成人午夜99999| 欧洲生活片亚洲生活在线观看| 欧美videos大乳护士334| 亚洲毛片av在线| 成人网男人的天堂| 久久蜜臀精品av| 免费观看成人av| 欧美三级日本三级少妇99| 亚洲视频一区二区免费在线观看| 国产一区二区三区在线看麻豆| 欧美精品久久一区| 一区二区三区蜜桃| 99视频国产精品| 中文字幕不卡一区| 成人美女视频在线观看| 久久综合九色综合97婷婷女人| 美女脱光内衣内裤视频久久影院| 欧美三级蜜桃2在线观看| 亚洲蜜臀av乱码久久精品 | 国产精品1区二区.| 日韩一级精品视频在线观看| 日韩精品五月天| 欧美日韩国产片| 亚洲高清免费观看高清完整版在线观看| 国产成人精品免费视频网站| 久久先锋影音av| 国产精品911| 国产日韩欧美激情| 成人开心网精品视频| 中文在线资源观看网站视频免费不卡 | 亚洲成a天堂v人片| 欧美精品tushy高清| 日韩精品亚洲专区| 欧美成人综合网站| 国产在线视频一区二区| 国产日韩欧美精品一区| jvid福利写真一区二区三区| 17c精品麻豆一区二区免费| 99精品国产热久久91蜜凸| 亚洲人成亚洲人成在线观看图片| 在线观看一区二区视频| 午夜不卡av在线| 精品精品国产高清a毛片牛牛| 国产精品一品视频| 亚洲免费av网站| 欧美丰满嫩嫩电影| 国内精品在线播放| 亚洲欧美一区二区三区国产精品| 欧美做爰猛烈大尺度电影无法无天| 午夜精品福利在线| 久久久www成人免费毛片麻豆| 99综合电影在线视频| 亚洲444eee在线观看| 精品国产免费人成电影在线观看四季 | 亚洲h精品动漫在线观看| 日韩亚洲电影在线| 成人精品国产福利| 亚洲亚洲人成综合网络| 日韩美一区二区三区| 丁香天五香天堂综合| 久久er99热精品一区二区| 国产日韩欧美在线一区| 欧美视频三区在线播放| 久久精品av麻豆的观看方式| 1000部国产精品成人观看| 欧美日韩成人在线一区| 成人一区二区三区中文字幕| 亚洲制服欧美中文字幕中文字幕| 日韩美女一区二区三区四区| 色婷婷久久久综合中文字幕| 久久精品免费观看| 亚洲最大成人综合| 国产精品毛片久久久久久久| 欧美无砖砖区免费| 成人综合婷婷国产精品久久免费| 亚洲成人高清在线| 亚洲欧美区自拍先锋| 久久综合九色综合欧美98| 欧美日本国产一区| 97超碰欧美中文字幕| 国产老妇另类xxxxx| 午夜精品久久一牛影视| 国产精品盗摄一区二区三区| 26uuu另类欧美| 日韩一区二区三区免费观看| 欧美综合一区二区三区| 成人av资源站| 国产精品99久久久久| 裸体健美xxxx欧美裸体表演| 一区二区三区国产精华| 国产精品免费网站在线观看| 欧美精品一区二区三| 欧美日韩国产综合视频在线观看| 不卡av免费在线观看| 国产一区二区三区黄视频| 日本伊人精品一区二区三区观看方式| 亚洲精品国产精华液| 最好看的中文字幕久久| 国产精品日产欧美久久久久| 久久精品综合网| 精品粉嫩aⅴ一区二区三区四区 | 精品久久人人做人人爽| 91精品国产综合久久久久久| 欧美日韩亚洲综合一区| 在线观看日韩电影| 欧美三片在线视频观看 | 亚洲男人都懂的| 亚洲视频一区二区在线| 一区二区在线观看不卡| 亚洲精品国产成人久久av盗摄| 一区二区中文视频| 亚洲欧美中日韩| 国产精品久久久久久久裸模| 国产精品大尺度| 亚洲欧美日韩国产综合| 亚洲自拍偷拍欧美| 亚洲成a人片在线观看中文| 婷婷一区二区三区| 奇米影视一区二区三区| 精品一区二区在线观看| 国产suv精品一区二区883| 成人免费不卡视频| 欧洲激情一区二区| 777xxx欧美| 精品国产髙清在线看国产毛片 | 国产精品一区二区在线播放| 国产高清在线观看免费不卡| 99精品视频免费在线观看| 在线免费av一区| 91精品国产综合久久久久久漫画 | 欧美日韩激情一区二区| 欧美一级淫片007| 久久精品视频在线免费观看| 国产精品久久久久天堂| 香蕉成人伊视频在线观看| 麻豆91免费看| 成人福利视频网站| 欧美日韩久久久久久| 久久久久亚洲综合| 一区二区三区在线免费播放| 日韩国产在线观看| 成人性视频免费网站| 欧美色综合网站| 26uuu国产一区二区三区| 一区二区三区中文字幕精品精品 | 成人18视频在线播放| 欧美日韩免费视频| 国产亚洲一本大道中文在线| 亚洲国产精品久久不卡毛片| 国产很黄免费观看久久| 欧美午夜寂寞影院| 国产精品毛片无遮挡高清| 三级欧美在线一区| av电影在线观看一区| 精品久久人人做人人爱| 香蕉成人啪国产精品视频综合网 | 久久超碰97人人做人人爱| 色综合天天狠狠| 久久精品欧美日韩精品| 日韩高清在线一区| 91色porny在线视频| 久久久精品日韩欧美| 肉色丝袜一区二区| 在线精品视频免费播放| 中文字幕在线观看不卡| 激情欧美一区二区| 69成人精品免费视频| 一区二区三区在线视频免费观看 | 欧美性三三影院| 国产精品久久久久久久久免费桃花| 日日嗨av一区二区三区四区| 一本色道亚洲精品aⅴ| 久久精品免视看| 国产一区二区不卡在线| 欧美变态口味重另类| 首页亚洲欧美制服丝腿| 欧美日韩日日夜夜| 亚洲电影在线免费观看| 色婷婷综合久久久中文字幕| 国产精品麻豆久久久| 风间由美性色一区二区三区| 精品国产乱码久久| 久久av老司机精品网站导航| 日韩午夜在线影院| 免费成人在线影院| 91精品国产综合久久婷婷香蕉 | 一区二区三区欧美激情| 91麻豆国产在线观看| 亚洲色欲色欲www| 成人精品免费看| 国产精品理论片| youjizz国产精品|