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 |
} |
} |
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")); |