94
94
#define BOOTP_VENDOR_LEN 64
95
95
#define DHCP_OPT_LEN 312
108
struct in_addr bp_ciaddr;
109
struct in_addr bp_yiaddr;
110
struct in_addr bp_siaddr;
111
struct in_addr bp_giaddr;
112
uint8_t bp_hwaddr[16];
113
uint8_t bp_sname[64];
114
uint8_t bp_file[128];
115
uint8_t bp_vend[DHCP_OPT_LEN];
100
struct ip ip; /**< header: IP header */
101
struct udphdr udp; /**< header: UDP header */
102
uint8_t bp_op; /**< opcode (BOOTP_REQUEST, BOOTP_REPLY) */
103
uint8_t bp_htype; /**< hardware type */
104
uint8_t bp_hlen; /**< hardware address length */
105
uint8_t bp_hops; /**< hop count */
106
uint32_t bp_xid; /**< transaction ID */
107
uint16_t bp_secs; /**< numnber of seconds */
108
uint16_t bp_flags; /**< flags (DHCP_FLAGS_B) */
109
struct in_addr bp_ciaddr; /**< client IP address */
110
struct in_addr bp_yiaddr; /**< your IP address */
111
struct in_addr bp_siaddr; /**< server IP address */
112
struct in_addr bp_giaddr; /**< gateway IP address */
113
uint8_t bp_hwaddr[16]; /** client hardware address */
114
uint8_t bp_sname[64]; /** server host name */
115
uint8_t bp_file[128]; /** boot filename */
116
uint8_t bp_vend[DHCP_OPT_LEN]; /**< vendor specific info */
119
#define DHCP_FLAGS_B (1<<15)
120
#define DHCP_FLAGS_B (1<<15) /**< B, broadcast */