Message ID | 2cbd7fc0-1340-3c53-37d8-b920936852d8@schinagl.nl |
---|---|
State | Changes Requested |
Delegated to: | Joe Hershberger |
Headers | show |
diff --git a/net/eth_common.c b/net/eth_common.c index e0d8b62..57ef821 100644 --- a/net/eth_common.c +++ b/net/eth_common.c @@ -51,7 +51,7 @@ void eth_parse_enetaddr(const char *addr, uchar *enetaddr) char *end; int i; - for (i = 0; i < 6; ++i) { + for (i = 0; i < ARP_HLEN; ++i) { enetaddr[i] = addr ? simple_strtoul(addr, &end, 16) : 0; if (addr) addr = (*end) ? end + 1 : end;