Newer
Older
if (DhcpMessageType((u8 *)bp->bp_vend) == DHCP_ACK) {
if (NetReadLong((ulong *)&bp->bp_vend[0]) ==
htonl(BOOTP_VENDOR_MAGIC))
DhcpOptionsProcess((u8 *)&bp->bp_vend[4], bp);
/* Store net params from reply */
BootpCopyNetParams(bp);
printf("DHCP client bound to address %pI4 (%lu ms)\n",
&net_ip, get_timer(bootp_start));
bootstage_mark_name(BOOTSTAGE_ID_BOOTP_STOP,
case BOUND:
/* DHCP client bound to address */
break;
puts("DHCP: INVALID STATE\n");
break;
}
}
void DhcpRequest(void)
{
BootpRequest();
}