Use RFC4390 whenever hardware address exceeds 16 bytes; this allows us

to construct DHCP packets suitable for Infiniband.
This commit is contained in:
Michael Brown
2007-09-13 01:53:04 +01:00
parent 9c264faa0c
commit af303db75d
2 changed files with 43 additions and 2 deletions

View File

@@ -432,6 +432,13 @@ struct dhcphdr {
/** Opcode for a reply from server to client */
#define BOOTP_REPLY 2
/** BOOTP reply must be broadcast
*
* Clients that cannot accept unicast BOOTP replies must set this
* flag.
*/
#define BOOTP_FL_BROADCAST 0x8000
/** DHCP magic cookie */
#define DHCP_MAGIC_COOKIE 0x63825363UL