Newer
Older
if (dhcp_message_type((u8 *)bp->bp_vend) == DHCP_ACK) {
if (net_read_u32((u32 *)&bp->bp_vend[0]) ==
htonl(BOOTP_VENDOR_MAGIC))
dhcp_process_options((u8 *)&bp->bp_vend[4], bp);
/* Store net params from reply */
store_net_params(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");
void dhcp_request(void)
bootp_request();