|
@@ -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 );
|