提交 3090b7e3 编写于 作者: J Joe Hershberger

net: cosmetic: bootp.* checkpatch compliance

Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com>
Acked-by: NSimon Glass <sjg@chromium.org>
上级 b28e28bb
此差异已折叠。
......@@ -19,13 +19,17 @@
* BOOTP header.
*/
#if defined(CONFIG_CMD_DHCP)
#define OPT_SIZE 312 /* Minimum DHCP Options size per RFC2131 - results in 576 byte pkt */
/* Minimum DHCP Options size per RFC2131 - results in 576 byte pkt */
#define OPT_SIZE 312
#if defined(CONFIG_BOOTP_VENDOREX)
extern u8 *dhcp_vendorex_prep(u8 *e); /*rtn new e after add own opts. */
extern u8 *dhcp_vendorex_proc(u8 *e); /*rtn next e if mine,else NULL */
#endif
#else
#define OPT_SIZE 64
#endif
typedef struct
{
struct Bootp_t {
uchar bp_op; /* Operation */
# define OP_BOOTREQUEST 1
# define OP_BOOTREPLY 2
......@@ -45,9 +49,9 @@ typedef struct
char bp_sname[64]; /* Server host name */
char bp_file[128]; /* Boot file name */
char bp_vend[OPT_SIZE]; /* Vendor information */
} Bootp_t;
};
#define BOOTP_HDR_SIZE sizeof (Bootp_t)
#define BOOTP_HDR_SIZE sizeof(struct Bootp_t)
#define BOOTP_SIZE (ETHER_HDR_SIZE + IP_HDR_SIZE + BOOTP_HDR_SIZE)
/**********************************************************************/
......@@ -65,7 +69,7 @@ extern ulong seed1, seed2; /* seed for random BOOTP delay */
/* Send a BOOTP request */
extern void BootpRequest (void);
extern void BootpRequest(void);
/****************** DHCP Support *********************/
extern void DhcpRequest(void);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册