Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef u_int8_t ipv4addr[4] __attribute__ ((packed));
- typedef struct {
- u_int8_t opcode;
- u_int8_t hw;
- u_int8_t hwlength;
- u_int8_t hopcount;
- u_int32_t xid;
- u_int16_t secs;
- u_int16_t flags;
- ipv4addr ciaddr, yiaddr, server_ip, bootp_gw_ip;
- u_int8_t hwaddr[16];
- u_int8_t servername[64];
- u_int8_t bootfile[128];
- u_int8_t vendor[DHCP_VENDOR_LENGTH];
- } __attribute__ ((packed)) bootp_packet;
- typedef u_int8_t hwaddr_t[6];
Advertisement
Add Comment
Please, Sign In to add comment