Permalink
Browse files

[HVM-637] vnic dhcp should support hostnames longer than 32 characters

  • Loading branch information...
1 parent 390587f commit 6a1ac561ef0389adc6e6df141b24f7a9600b9fc2 @rgulewich rgulewich committed Sep 1, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 net/vnic-dhcp.h
View
3 net/vnic-dhcp.h
@@ -32,6 +32,7 @@
#define VNIC_DHCP_DEBUG 0
#define VNIC_DHCP_HEX_DUMP 0
#define VNIC_DHCP_NUM_RESOLVERS 4
+#define VNIC_DHCP_HOSTNAME_LEN 255
typedef struct VNICDHCPState {
unsigned int vnds_enabled;
@@ -43,7 +44,7 @@ typedef struct VNICDHCPState {
struct in_addr vnds_gw_addr;
struct in_addr vnds_dns_addrs[VNIC_DHCP_NUM_RESOLVERS];
uint32_t vnds_lease_time;
- char vnds_client_hostname[33];
+ char vnds_client_hostname[VNIC_DHCP_HOSTNAME_LEN];
unsigned int vnds_num_dns_addrs;
} VNICDHCPState;

0 comments on commit 6a1ac56

Please sign in to comment.