Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct dhcp_options {
- uint8_t index;
- uint8_t length;
- uint8_t *data;
- } __attribute__((packed));
- struct dhcp_packet {
- uint8_t operation;
- uint8_t network_type;
- uint8_t network_addr_length;
- uint8_t relay_agents;
- uint32_t connection_id;
- uint16_t seconds_start;
- uint16_t flags;
- struct ip_addr client_ip;
- struct ip_addr own_ip;
- struct ip_addr server_ip;
- struct ip_addr relay_ip;
- struct mac client_mac;
- uint8_t mac_padding[10];
- uint8_t server_name[64];
- uint8_t file_name[128];
- uint32_t magic_cookie;
- struct dhcp_options options[255];
- } __attribute__((packed));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement