/[lwip]/lwip/src/core/ipv4/ip.c
ViewVC logotype

Diff of /lwip/src/core/ipv4/ip.c

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

revision 1.7 by jani, Wed Dec 18 12:49:02 2002 UTC revision 1.8 by jani, Thu Dec 19 09:04:59 2002 UTC
# Line 332  ip_input(struct pbuf *p, struct netif *i Line 332  ip_input(struct pbuf *p, struct netif *i
332       node (as recommended by RFC 1542 section 3.1.1, referred by RFC       node (as recommended by RFC 1542 section 3.1.1, referred by RFC
333       2131). */       2131). */
334    if(IPH_PROTO(iphdr) == IP_PROTO_UDP &&    if(IPH_PROTO(iphdr) == IP_PROTO_UDP &&
335       ((struct udp_hdr *)((u8_t *)iphdr + IPH_HL(iphdr) * 4/sizeof(u8_t)))->src ==       ((struct udp_hdr *)((u8_t *)iphdr + IPH_HL(iphdr) * 4))->src ==
336       DHCP_SERVER_PORT) {       DHCP_SERVER_PORT) {
337      netif = inp;      netif = inp;
338    }      }  
# Line 563  ip_debug_print(struct pbuf *p) Line 563  ip_debug_print(struct pbuf *p)
563    struct ip_hdr *iphdr = p->payload;    struct ip_hdr *iphdr = p->payload;
564    u8_t *payload;    u8_t *payload;
565    
566    payload = (u8_t *)iphdr + IP_HLEN/sizeof(u8_t);    payload = (u8_t *)iphdr + IP_HLEN;
567        
568    DEBUGF(IP_DEBUG, ("IP header:\n"));    DEBUGF(IP_DEBUG, ("IP header:\n"));
569    DEBUGF(IP_DEBUG, ("+-------------------------------+\n"));    DEBUGF(IP_DEBUG, ("+-------------------------------+\n"));

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

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