Fix padding problem - from Michael
This commit is contained in:
parent
af3149d18e
commit
1c971f1234
@ -27,9 +27,7 @@ static int legacy_transmit ( struct net_device *netdev, struct pk_buff *pkb ) {
|
|||||||
int pad_len;
|
int pad_len;
|
||||||
|
|
||||||
DBG ( "Transmitting %d bytes\n", pkb_len ( pkb ) );
|
DBG ( "Transmitting %d bytes\n", pkb_len ( pkb ) );
|
||||||
pad_len = ( ETH_ZLEN - pkb_len ( pkb ) );
|
pkb_pad ( pkb, ETH_ZLEN );
|
||||||
if ( pad_len > 0 )
|
|
||||||
memset ( pkb_put ( pkb, pad_len ), 0, pad_len );
|
|
||||||
pkb_pull ( pkb, sizeof ( *ethhdr ) );
|
pkb_pull ( pkb, sizeof ( *ethhdr ) );
|
||||||
nic->nic_op->transmit ( nic, ( const char * ) ethhdr->h_dest,
|
nic->nic_op->transmit ( nic, ( const char * ) ethhdr->h_dest,
|
||||||
ntohs ( ethhdr->h_protocol ),
|
ntohs ( ethhdr->h_protocol ),
|
||||||
|
Reference in New Issue
Block a user