321 |
/* remote port is DHCP server? */ |
/* remote port is DHCP server? */ |
322 |
if(IPH_PROTO(iphdr) == IP_PROTO_UDP) { |
if(IPH_PROTO(iphdr) == IP_PROTO_UDP) { |
323 |
DEBUGF(IP_DEBUG | DBG_TRACE | 1, ("ip_input: UDP packet to DHCP client port %u\n", |
DEBUGF(IP_DEBUG | DBG_TRACE | 1, ("ip_input: UDP packet to DHCP client port %u\n", |
324 |
ntohs(((struct udp_hdr *)((u8_t *)iphdr + iphdrlen))->dest))); |
ntohs(((struct udp_hdr *)((u8_t *)iphdr + iphdrlen))->dest))); |
325 |
if (ntohs(((struct udp_hdr *)((u8_t *)iphdr + iphdrlen))->dest) == DHCP_CLIENT_PORT) { |
if (ntohs(((struct udp_hdr *)((u8_t *)iphdr + iphdrlen))->dest) == DHCP_CLIENT_PORT) { |
326 |
DEBUGF(IP_DEBUG | DBG_TRACE | 1, ("ip_input: DHCP packet accepted.\n")); |
DEBUGF(IP_DEBUG | DBG_TRACE | 1, ("ip_input: DHCP packet accepted.\n")); |
327 |
netif = inp; |
netif = inp; |