X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=net%2Fbootp.h;h=50625abea1839e6ecff7d04c8137a3ab6ca64c32;hb=8d573fdcc422e80656b03e31662843b45851076b;hp=0b3163901e3fd7f2e26e6276cb3ead0ad7c3fb28;hpb=efee1709912ad05c3a0bd1ca3f9e72dd7c587cbc;p=u-boot diff --git a/net/bootp.h b/net/bootp.h index 0b3163901e..50625abea1 100644 --- a/net/bootp.h +++ b/net/bootp.h @@ -18,7 +18,7 @@ /* * BOOTP header. */ -#if (CONFIG_COMMANDS & CFG_CMD_DHCP) +#if defined(CONFIG_CMD_DHCP) #define OPT_SIZE 312 /* Minimum DHCP Options size per RFC2131 - results in 576 byte pkt */ #else #define OPT_SIZE 64 @@ -60,7 +60,7 @@ extern ulong BootpID; /* ID of cur BOOTP request */ extern char BootFile[128]; /* Boot file name */ extern int BootpTry; #ifdef CONFIG_BOOTP_RANDOM_DELAY -ulong seed1, seed2; /* seed for random BOOTP delay */ +extern ulong seed1, seed2; /* seed for random BOOTP delay */ #endif @@ -88,7 +88,7 @@ typedef enum { INIT, #define DHCP_NAK 6 #define DHCP_RELEASE 7 -#define SELECT_TIMEOUT 3 /* Seconds to wait for offers */ +#define SELECT_TIMEOUT 3000UL /* Milliseconds to wait for offers */ /**********************************************************************/