summaryrefslogtreecommitdiffstats
path: root/recipes-extended/xen/files/lwip.dhcp_create_request-hwaddr_len.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-extended/xen/files/lwip.dhcp_create_request-hwaddr_len.patch')
-rw-r--r--recipes-extended/xen/files/lwip.dhcp_create_request-hwaddr_len.patch13
1 files changed, 0 insertions, 13 deletions
diff --git a/recipes-extended/xen/files/lwip.dhcp_create_request-hwaddr_len.patch b/recipes-extended/xen/files/lwip.dhcp_create_request-hwaddr_len.patch
deleted file mode 100644
index 4bbf21a1..00000000
--- a/recipes-extended/xen/files/lwip.dhcp_create_request-hwaddr_len.patch
+++ /dev/null
@@ -1,13 +0,0 @@
1Index: src/core/dhcp.c
2===================================================================
3--- a/src/core/dhcp.c
4+++ b/src/core/dhcp.c
5@@ -1356,7 +1358,7 @@ dhcp_create_request(struct netif *netif)
6 dhcp->msg_out->giaddr.addr = 0;
7 for (i = 0; i < DHCP_CHADDR_LEN; i++) {
8 /* copy netif hardware address, pad with zeroes */
9- dhcp->msg_out->chaddr[i] = (i < netif->hwaddr_len) ? netif->hwaddr[i] : 0/* pad byte*/;
10+ dhcp->msg_out->chaddr[i] = (i < (netif->hwaddr_len > NETIF_MAX_HWADDR_LEN ? NETIF_MAX_HWADDR_LEN : netif->hwaddr_len)) ? netif->hwaddr[i] : 0/* pad byte*/;
11 }
12 for (i = 0; i < DHCP_SNAME_LEN; i++) {
13 dhcp->msg_out->sname[i] = 0;