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

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

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

revision 1.16 by jani, Thu Feb 20 16:32:22 2003 UTC revision 1.17 by jani, Fri Feb 21 16:43:46 2003 UTC
# Line 40  Line 40 
40   */   */
41  /*-----------------------------------------------------------------------------------*/  /*-----------------------------------------------------------------------------------*/
42    
 #include "lwip/debug.h"  
43    
44    #include "lwip/opt.h"
45  #include "lwip/def.h"  #include "lwip/def.h"
46  #include "lwip/mem.h"  #include "lwip/mem.h"
47  #include "lwip/memp.h"  #include "lwip/memp.h"
48    
49  #include "lwip/tcp.h"  #include "lwip/tcp.h"
50    
 #include "lwip/opt.h"  
51    
52  /* Incremented every coarse grained timer shot  /* Incremented every coarse grained timer shot
53     (typically every 500 ms, determined by TCP_COARSE_TIMEOUT). */     (typically every 500 ms, determined by TCP_COARSE_TIMEOUT). */
# Line 430  tcp_connect(struct tcp_pcb *pcb, struct Line 429  tcp_connect(struct tcp_pcb *pcb, struct
429    TCP_REG(&tcp_active_pcbs, pcb);    TCP_REG(&tcp_active_pcbs, pcb);
430        
431    /* Build an MSS option */    /* Build an MSS option */
432    optdata = HTONL(((u32_t)2 << 24) |    optdata = htonl(((u32_t)2 << 24) |
433                    ((u32_t)4 << 16) |                    ((u32_t)4 << 16) |
434                    (((u32_t)pcb->mss / 256) << 8) |                    (((u32_t)pcb->mss / 256) << 8) |
435                    (pcb->mss & 255));                    (pcb->mss & 255));

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

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