mirror of
https://github.com/xcat2/xNBA.git
synced 2025-02-17 02:58:14 +00:00
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;
|
||||
|
||||
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 ),
|
||||
|
Loading…
x
Reference in New Issue
Block a user