]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
For consistency
authorMichael Brown <mcb30@etherboot.org>
Fri, 16 Jun 2006 13:17:40 +0000 (13:17 +0000)
committerMichael Brown <mcb30@etherboot.org>
Fri, 16 Jun 2006 13:17:40 +0000 (13:17 +0000)
src/net/ethernet.c

index f10bc60f751f8543bd0cdfd14b5279e6e2168499..ab7d427749e506afbd5d0602e9d7703cb0b32612 100644 (file)
@@ -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 );