6 Commits

Author SHA1 Message Date
fuckwit
b095fa96de Rework structure
Remove the "file per option" structure and replace it with a macro that generates the `DhcpOption` impl.

This also generates a `Code` enum with all the options are variants. This will later be used for parameter requests and programmatic checking if certain options exist.

Also fixes a bug where I have left out the `your_address` field.
2023-06-04 22:52:14 +02:00
fuckwit
2639aeca24 . 2023-05-29 22:47:09 +02:00
fuckwit
43a0c5926c Add DHCP Option parsing for RFC1497 Options 2023-05-29 22:46:40 +02:00
0bf69237b9 extend dhcp sample packet and separate file and server_name parsing in preparation for overloaded options parsing 2023-05-24 20:47:33 +02:00
fuckwit
e0cc79198f parse server name and file name 2023-05-22 22:43:16 +02:00
e189168144 initial commit 2023-05-22 20:13:21 +02:00