/[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.11 by jani, Wed Dec 18 12:49:02 2002 UTC revision 1.12 by jani, Thu Dec 19 09:04:58 2002 UTC
# Line 106  tcp_input(struct pbuf *p, struct netif * Line 106  tcp_input(struct pbuf *p, struct netif *
106  #endif /* TCP_STATS */  #endif /* TCP_STATS */
107    
108    iphdr = p->payload;    iphdr = p->payload;
109    tcphdr = (struct tcp_hdr *)((u8_t *)p->payload + IPH_HL(iphdr) * 4/sizeof(u8_t));    tcphdr = (struct tcp_hdr *)((u8_t *)p->payload + IPH_HL(iphdr) * 4);
110    
111    pbuf_header(p, -(IPH_HL(iphdr) * 4/sizeof(u8_t)));    pbuf_header(p, -(IPH_HL(iphdr) * 4));
112        
113    /* Don't even process incoming broadcasts/multicasts. */    /* Don't even process incoming broadcasts/multicasts. */
114    if(ip_addr_isbroadcast(&(iphdr->dest), &(inp->netmask)) ||    if(ip_addr_isbroadcast(&(iphdr->dest), &(inp->netmask)) ||

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

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