-
-
Notifications
You must be signed in to change notification settings - Fork 302
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: staylightblow8 <[email protected]>
- Loading branch information
Showing
7 changed files
with
85 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,29 @@ | ||
#ifndef _DCHP_CPI_H_ | ||
#define _DCHP_CPI_H_ | ||
|
||
#define MIN_BOOTP_SIZE 300 | ||
#define DHCPOPT_CPI 114 | ||
|
||
#pragma pack(2) | ||
struct UDPHeader | ||
{ | ||
uint16_t sourcePort; | ||
uint16_t destPort; | ||
uint16_t length; | ||
uint16_t checksum; | ||
}; | ||
#pragma pack() | ||
|
||
enum MangleResult | ||
{ | ||
Mangle_OK = 0, | ||
Mangle_mallocFail, | ||
Mangle_optExists, | ||
}; | ||
|
||
/* Somewhat arbitrary, feel free to change */ | ||
#define MAX_PACKET_SIZE 2048 | ||
|
||
void thread_dhcp_cpi(const void *arg); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters