/[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.18 by jani, Fri Feb 21 16:43:46 2003 UTC revision 1.19 by likewise, Sun Mar 16 22:39:15 2003 UTC
# Line 106  tcp_input(struct pbuf *p, struct netif * Line 106  tcp_input(struct pbuf *p, struct netif *
106    
107    iphdr = p->payload;    iphdr = p->payload;
108    tcphdr = (struct tcp_hdr *)((u8_t *)p->payload + IPH_HL(iphdr) * 4);    tcphdr = (struct tcp_hdr *)((u8_t *)p->payload + IPH_HL(iphdr) * 4);
109    
110    pbuf_header(p, -(IPH_HL(iphdr) * 4));    pbuf_header(p, -((s16_t)(IPH_HL(iphdr) * 4)));
111        
112    /* Don't even process incoming broadcasts/multicasts. */    /* Don't even process incoming broadcasts/multicasts. */
113    if(ip_addr_isbroadcast(&(iphdr->dest), &(inp->netmask)) ||    if(ip_addr_isbroadcast(&(iphdr->dest), &(inp->netmask)) ||
# Line 116  tcp_input(struct pbuf *p, struct netif * Line 116  tcp_input(struct pbuf *p, struct netif *
116      return;      return;
117    }    }
118    
   
119    /* Verify TCP checksum. */    /* Verify TCP checksum. */
120    if(inet_chksum_pseudo(p, (struct ip_addr *)&(iphdr->src),    if(inet_chksum_pseudo(p, (struct ip_addr *)&(iphdr->src),
121                          (struct ip_addr *)&(iphdr->dest),                          (struct ip_addr *)&(iphdr->dest),

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

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