Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.58 KB | None | 0 0
  1. struct dhcp_options {
  2.     uint8_t index;
  3.     uint8_t length;
  4.     uint8_t *data;
  5. } __attribute__((packed));
  6.  
  7. struct dhcp_packet {
  8.     uint8_t operation;
  9.     uint8_t network_type;
  10.     uint8_t network_addr_length;
  11.     uint8_t relay_agents;
  12.     uint32_t connection_id;
  13.     uint16_t seconds_start;
  14.     uint16_t flags;
  15.     struct ip_addr client_ip;
  16.     struct ip_addr own_ip;
  17.     struct ip_addr server_ip;
  18.     struct ip_addr relay_ip;
  19.     struct mac client_mac;
  20.     uint8_t mac_padding[10];
  21.     uint8_t server_name[64];
  22.     uint8_t file_name[128];
  23.     uint32_t magic_cookie;
  24.     struct dhcp_options options[255];
  25. } __attribute__((packed));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement