Browse Source

For consistency

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
968501e323
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/net/ethernet.c

+ 1
- 1
src/net/ethernet.c View File

@@ -49,7 +49,7 @@ static uint8_t eth_broadcast[ETH_ALEN] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
49 49
 static int eth_transmit ( struct pk_buff *pkb, struct net_device *netdev,
50 50
 			  struct net_protocol *net_protocol,
51 51
 			  const void *ll_dest ) {
52
-	struct ethhdr *ethhdr = pkb_push ( pkb, ETH_HLEN );
52
+	struct ethhdr *ethhdr = pkb_push ( pkb, sizeof ( *ethhdr ) );
53 53
 
54 54
 	memcpy ( ethhdr->h_dest, ll_dest, ETH_ALEN );
55 55
 	memcpy ( ethhdr->h_source, netdev->ll_addr, ETH_ALEN );

Loading…
Cancel
Save