ungureanuvladvictor

Untitled

Jun 10th, 2013
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. typedef u_int8_t ipv4addr[4] __attribute__ ((packed));
  2.  
  3. typedef struct {
  4. u_int8_t opcode;
  5. u_int8_t hw;
  6. u_int8_t hwlength;
  7. u_int8_t hopcount;
  8. u_int32_t xid;
  9. u_int16_t secs;
  10. u_int16_t flags;
  11. ipv4addr ciaddr, yiaddr, server_ip, bootp_gw_ip;
  12. u_int8_t hwaddr[16];
  13. u_int8_t servername[64];
  14. u_int8_t bootfile[128];
  15. u_int8_t vendor[DHCP_VENDOR_LENGTH];
  16. } __attribute__ ((packed)) bootp_packet;
  17.  
  18. typedef u_int8_t hwaddr_t[6];
Advertisement
Add Comment
Please, Sign In to add comment