aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2007-07-01 00:36:48 +0100
committerMichael Brown <mcb30@etherboot.org>2007-07-01 00:36:48 +0100
commitf33bbd41122486af10fd776000dc7eb659383c7e (patch)
tree3382b0b91efb88c42e5b609822218b5885c17342 /src
parentb743b63ae96ad4b3521075fdfcbdff30a8fbc98a (diff)
downloadipxe-f33bbd41122486af10fd776000dc7eb659383c7e.zip
ipxe-f33bbd41122486af10fd776000dc7eb659383c7e.tar.gz
ipxe-f33bbd41122486af10fd776000dc7eb659383c7e.tar.bz2
How has the legacy wrapper been working for the past month or so...?
Diffstat (limited to 'src')
-rw-r--r--src/drivers/net/legacy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/net/legacy.c b/src/drivers/net/legacy.c
index 60077d7..22ddfe6 100644
--- a/src/drivers/net/legacy.c
+++ b/src/drivers/net/legacy.c
@@ -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 ),