summaryrefslogtreecommitdiffstats
path: root/src/net/ethernet.c
diff options
context:
space:
mode:
authorMichael Brown2006-06-16 15:17:40 +0200
committerMichael Brown2006-06-16 15:17:40 +0200
commit968501e323fb6f060df44c63675f6e7752ccfb47 (patch)
treea8ff50db5558f464677ad4a164897111ab0719d8 /src/net/ethernet.c
parent32kB window is actually larger than our typical receive ring size. (diff)
downloadipxe-968501e323fb6f060df44c63675f6e7752ccfb47.tar.gz
ipxe-968501e323fb6f060df44c63675f6e7752ccfb47.tar.xz
ipxe-968501e323fb6f060df44c63675f6e7752ccfb47.zip
For consistency
Diffstat (limited to 'src/net/ethernet.c')
-rw-r--r--src/net/ethernet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/ethernet.c b/src/net/ethernet.c
index f10bc60f..ab7d4277 100644
--- a/src/net/ethernet.c
+++ b/src/net/ethernet.c
@@ -49,7 +49,7 @@ static uint8_t eth_broadcast[ETH_ALEN] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
static int eth_transmit ( struct pk_buff *pkb, struct net_device *netdev,
struct net_protocol *net_protocol,
const void *ll_dest ) {
- struct ethhdr *ethhdr = pkb_push ( pkb, ETH_HLEN );
+ struct ethhdr *ethhdr = pkb_push ( pkb, sizeof ( *ethhdr ) );
memcpy ( ethhdr->h_dest, ll_dest, ETH_ALEN );
memcpy ( ethhdr->h_source, netdev->ll_addr, ETH_ALEN );