diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2015-04-08 01:41:09 -0500 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-04-18 11:11:33 -0600 |
commit | 7044c6bb69ca654a229c208065f5b0777f05af5f (patch) | |
tree | 22975435e95a72643735433656f62ce23b4a509d /net/bootp.h | |
parent | 85d25e0e7630a61bdbf2d4e8b1991e3cc6c96d65 (diff) | |
download | u-boot-imx-7044c6bb69ca654a229c208065f5b0777f05af5f.zip u-boot-imx-7044c6bb69ca654a229c208065f5b0777f05af5f.tar.gz u-boot-imx-7044c6bb69ca654a229c208065f5b0777f05af5f.tar.bz2 |
net: cosmetic: Clean up DHCP variables and functions
Make a thorough pass through all variables and function names contained
within bootp.c and remove CamelCase and improve naming.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'net/bootp.h')
-rw-r--r-- | net/bootp.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/bootp.h b/net/bootp.h index 8c591a6..efc2100 100644 --- a/net/bootp.h +++ b/net/bootp.h @@ -29,7 +29,7 @@ extern u8 *dhcp_vendorex_proc(u8 *e); /*rtn next e if mine,else NULL */ #define OPT_FIELD_SIZE 64 #endif -struct Bootp_t { +struct bootp_hdr { uchar bp_op; /* Operation */ # define OP_BOOTREQUEST 1 # define OP_BOOTREPLY 2 @@ -51,7 +51,7 @@ struct Bootp_t { char bp_vend[OPT_FIELD_SIZE]; /* Vendor information */ }; -#define BOOTP_HDR_SIZE sizeof(struct Bootp_t) +#define BOOTP_HDR_SIZE sizeof(struct bootp_hdr) /**********************************************************************/ /* @@ -59,16 +59,16 @@ struct Bootp_t { */ /* bootp.c */ -extern ulong BootpID; /* ID of cur BOOTP request */ -extern int BootpTry; +extern ulong bootp_id; /* ID of cur BOOTP request */ +extern int bootp_try; /* Send a BOOTP request */ -extern void BootpReset(void); -extern void BootpRequest(void); +void bootp_reset(void); +void bootp_request(void); /****************** DHCP Support *********************/ -extern void DhcpRequest(void); +void dhcp_request(void); /* DHCP States */ typedef enum { INIT, |