|
@@ -27,9 +27,7 @@ static int legacy_transmit ( struct net_device *netdev, struct pk_buff *pkb ) {
|
27
|
27
|
int pad_len;
|
28
|
28
|
|
29
|
29
|
DBG ( "Transmitting %d bytes\n", pkb_len ( pkb ) );
|
30
|
|
- pad_len = ( ETH_ZLEN - pkb_len ( pkb ) );
|
31
|
|
- if ( pad_len > 0 )
|
32
|
|
- memset ( pkb_put ( pkb, pad_len ), 0, pad_len );
|
|
30
|
+ pkb_pad ( pkb, ETH_ZLEN );
|
33
|
31
|
pkb_pull ( pkb, sizeof ( *ethhdr ) );
|
34
|
32
|
nic->nic_op->transmit ( nic, ( const char * ) ethhdr->h_dest,
|
35
|
33
|
ntohs ( ethhdr->h_protocol ),
|