david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

Fix padding problem - from Michael

This commit is contained in:
James Harper 2007-02-10 00:27:46 +00:00
parent af3149d18e
commit 1c971f1234
1 changed files with 1 additions and 3 deletions

View File

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