/[lwip]/lwip/src/core/tcp_in.c
ViewVC logotype

Diff of /lwip/src/core/tcp_in.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.30.2.6 by jani, Mon Nov 3 07:57:20 2003 UTC revision 1.30.2.7 by likewise, Fri Nov 14 09:42:51 2003 UTC
# Line 36  Line 36 
36   *   *
37   */   */
38    
39  /*-----------------------------------------------------------------------------------*/  
40  /* tcp_input.c  /* tcp_input.c
41   *   *
42   * The input processing functions of TCP.   * The input processing functions of TCP.
# Line 45  Line 45 
45   * tcp_process() -> tcp_receive() (-> application).   * tcp_process() -> tcp_receive() (-> application).
46   *   *
47   */   */
48  /*-----------------------------------------------------------------------------------*/  
49    
50    
51  #include "lwip/def.h"  #include "lwip/def.h"
# Line 85  static void tcp_parseopt(struct tcp_pcb Line 85  static void tcp_parseopt(struct tcp_pcb
85  static err_t tcp_listen_input(struct tcp_pcb_listen *pcb);  static err_t tcp_listen_input(struct tcp_pcb_listen *pcb);
86  static err_t tcp_timewait_input(struct tcp_pcb *pcb);  static err_t tcp_timewait_input(struct tcp_pcb *pcb);
87    
88  /*-----------------------------------------------------------------------------------*/  
89  /* tcp_input:  /* tcp_input:
90   *   *
91   * The initial input processing of TCP. It verifies the TCP header, demultiplexes   * The initial input processing of TCP. It verifies the TCP header, demultiplexes
# Line 93  static err_t tcp_timewait_input(struct t Line 93  static err_t tcp_timewait_input(struct t
93   * the TCP finite state machine. This function is called by the IP layer (in   * the TCP finite state machine. This function is called by the IP layer (in
94   * ip_input()).   * ip_input()).
95   */   */
96  /*-----------------------------------------------------------------------------------*/  
97  void  void
98  tcp_input(struct pbuf *p, struct netif *inp)  tcp_input(struct pbuf *p, struct netif *inp)
99  {  {
# Line 398  tcp_input(struct pbuf *p, struct netif * Line 398  tcp_input(struct pbuf *p, struct netif *
398    LWIP_ASSERT("tcp_input: tcp_pcbs_sane()", tcp_pcbs_sane());    LWIP_ASSERT("tcp_input: tcp_pcbs_sane()", tcp_pcbs_sane());
399    PERF_STOP("tcp_input");    PERF_STOP("tcp_input");
400  }  }
401  /*-----------------------------------------------------------------------------------*/  
402  /* tcp_listen_input():  /* tcp_listen_input():
403   *   *
404   * Called by tcp_input() when a segment arrives for a listening   * Called by tcp_input() when a segment arrives for a listening
405   * connection.   * connection.
406   */   */
407  /*-----------------------------------------------------------------------------------*/  
408  static err_t  static err_t
409  tcp_listen_input(struct tcp_pcb_listen *pcb)  tcp_listen_input(struct tcp_pcb_listen *pcb)
410  {  {
# Line 465  tcp_listen_input(struct tcp_pcb_listen * Line 465  tcp_listen_input(struct tcp_pcb_listen *
465    }    }
466    return ERR_OK;    return ERR_OK;
467  }  }
468  /*-----------------------------------------------------------------------------------*/  
469  /* tcp_timewait_input():  /* tcp_timewait_input():
470   *   *
471   * Called by tcp_input() when a segment arrives for a connection in   * Called by tcp_input() when a segment arrives for a connection in
472   * TIME_WAIT.   * TIME_WAIT.
473   */   */
474  /*-----------------------------------------------------------------------------------*/  
475  static err_t  static err_t
476  tcp_timewait_input(struct tcp_pcb *pcb)  tcp_timewait_input(struct tcp_pcb *pcb)
477  {  {
# Line 483  tcp_timewait_input(struct tcp_pcb *pcb) Line 483  tcp_timewait_input(struct tcp_pcb *pcb)
483    }    }
484    return tcp_output(pcb);    return tcp_output(pcb);
485  }  }
486  /*-----------------------------------------------------------------------------------*/  
487  /* tcp_process  /* tcp_process
488   *   *
489   * Implements the TCP state machine. Called by tcp_input. In some   * Implements the TCP state machine. Called by tcp_input. In some
# Line 491  tcp_timewait_input(struct tcp_pcb *pcb) Line 491  tcp_timewait_input(struct tcp_pcb *pcb)
491   * argument will be freed by the caller (tcp_input()) unless the   * argument will be freed by the caller (tcp_input()) unless the
492   * recv_data pointer in the pcb is set.   * recv_data pointer in the pcb is set.
493   */   */
494  /*-----------------------------------------------------------------------------------*/  
495  static err_t  static err_t
496  tcp_process(struct tcp_pcb *pcb)  tcp_process(struct tcp_pcb *pcb)
497  {  {
# Line 650  tcp_process(struct tcp_pcb *pcb) Line 650  tcp_process(struct tcp_pcb *pcb)
650    
651    return ERR_OK;    return ERR_OK;
652  }  }
653  /*-----------------------------------------------------------------------------------*/  
654  /* tcp_receive:  /* tcp_receive:
655   *   *
656   * Called by tcp_process. Checks if the given segment is an ACK for outstanding   * Called by tcp_process. Checks if the given segment is an ACK for outstanding
# Line 662  tcp_process(struct tcp_pcb *pcb) Line 662  tcp_process(struct tcp_pcb *pcb)
662   * If the incoming segment constitutes an ACK for a segment that was used for RTT   * If the incoming segment constitutes an ACK for a segment that was used for RTT
663   * estimation, the RTT is estimated here as well.   * estimation, the RTT is estimated here as well.
664   */   */
665  /*-----------------------------------------------------------------------------------*/  
666  static void  static void
667  tcp_receive(struct tcp_pcb *pcb)  tcp_receive(struct tcp_pcb *pcb)
668  {  {
# Line 1158  tcp_receive(struct tcp_pcb *pcb) Line 1158  tcp_receive(struct tcp_pcb *pcb)
1158      }      }
1159    }    }
1160  }  }
1161  /*-----------------------------------------------------------------------------------*/  
1162  /*  /*
1163   * tcp_parseopt:   * tcp_parseopt:
1164   *   *
# Line 1166  tcp_receive(struct tcp_pcb *pcb) Line 1166  tcp_receive(struct tcp_pcb *pcb)
1166   * from uIP with only small changes.)   * from uIP with only small changes.)
1167   *   *
1168   */   */
1169  /*-----------------------------------------------------------------------------------*/  
1170  static void  static void
1171  tcp_parseopt(struct tcp_pcb *pcb)  tcp_parseopt(struct tcp_pcb *pcb)
1172  {  {
# Line 1208  tcp_parseopt(struct tcp_pcb *pcb) Line 1208  tcp_parseopt(struct tcp_pcb *pcb)
1208    }    }
1209  }  }
1210  #endif /* LWIP_TCP */  #endif /* LWIP_TCP */
1211  /*-----------------------------------------------------------------------------------*/  
1212    

Legend:
Removed from v.1.30.2.6  
changed lines
  Added in v.1.30.2.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26