URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Show entire file |
Details |
Blame |
View Log
Rev 175 |
Rev 406 |
Line 22... |
Line 22... |
#define OPT_SIZE 312 /* Minimum DHCP Options size per RFC2131 - results in 576 byte pkt */
|
#define OPT_SIZE 312 /* Minimum DHCP Options size per RFC2131 - results in 576 byte pkt */
|
#else
|
#else
|
#define OPT_SIZE 64
|
#define OPT_SIZE 64
|
#endif
|
#endif
|
|
|
typedef struct
|
typedef struct {
|
{
|
|
unsigned char bp_op; /* Operation */
|
unsigned char bp_op; /* Operation */
|
# define OP_BOOTREQUEST 1
|
# define OP_BOOTREQUEST 1
|
# define OP_BOOTREPLY 2
|
# define OP_BOOTREPLY 2
|
unsigned char bp_htype; /* Hardware type */
|
unsigned char bp_htype; /* Hardware type */
|
# define HWT_ETHER 1
|
# define HWT_ETHER 1
|
Line 61... |
Line 60... |
extern int BootpTry;
|
extern int BootpTry;
|
#ifdef CONFIG_BOOTP_RANDOM_DELAY
|
#ifdef CONFIG_BOOTP_RANDOM_DELAY
|
unsigned long seed1, seed2; /* seed for random BOOTP delay */
|
unsigned long seed1, seed2; /* seed for random BOOTP delay */
|
#endif
|
#endif
|
|
|
|
|
/* Send a BOOTP request */
|
/* Send a BOOTP request */
|
extern void BootpRequest (void);
|
extern void BootpRequest (void);
|
|
|
/****************** DHCP Support *********************/
|
/****************** DHCP Support *********************/
|
extern void DhcpRequest(void);
|
extern void DhcpRequest(void);
|
Line 76... |
Line 74... |
REBOOTING,
|
REBOOTING,
|
SELECTING,
|
SELECTING,
|
REQUESTING,
|
REQUESTING,
|
REBINDING,
|
REBINDING,
|
BOUND,
|
BOUND,
|
RENEWING } dhcp_state_t;
|
RENEWING
|
|
} dhcp_state_t;
|
|
|
#define DHCP_DISCOVER 1
|
#define DHCP_DISCOVER 1
|
#define DHCP_OFFER 2
|
#define DHCP_OFFER 2
|
#define DHCP_REQUEST 3
|
#define DHCP_REQUEST 3
|
#define DHCP_DECLINE 4
|
#define DHCP_DECLINE 4
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.