2
0
mirror of https://github.com/xcat2/xNBA.git synced 2025-01-11 10:17:49 +00:00

How has the legacy wrapper been working for the past month or so...?

This commit is contained in:
Michael Brown 2007-07-01 00:36:48 +01:00
parent b743b63ae9
commit f33bbd4112

View File

@ -23,10 +23,11 @@ static int legacy_registered = 0;
static int legacy_transmit ( struct net_device *netdev, struct io_buffer *iobuf ) {
struct nic *nic = netdev->priv;
struct ethhdr *ethhdr = iobuf->data;
struct ethhdr *ethhdr;
DBG ( "Transmitting %d bytes\n", iob_len ( iobuf ) );
iob_pad ( iobuf, ETH_ZLEN );
ethhdr = iobuf->data;
iob_pull ( iobuf, sizeof ( *ethhdr ) );
nic->nic_op->transmit ( nic, ( const char * ) ethhdr->h_dest,
ntohs ( ethhdr->h_protocol ),