From: Michael Brown Date: Fri, 16 Jun 2006 13:17:40 +0000 (+0000) Subject: For consistency X-Git-Tag: v0.9.3~1274 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=968501e323fb6f060df44c63675f6e7752ccfb47;p=thirdparty%2Fipxe.git For consistency --- diff --git a/src/net/ethernet.c b/src/net/ethernet.c index f10bc60f7..ab7d42774 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 );