From: Michael Brown Date: Sat, 30 Jun 2007 23:36:48 +0000 (+0100) Subject: How has the legacy wrapper been working for the past month or so...? X-Git-Tag: v0.9.3~345 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f33bbd41122486af10fd776000dc7eb659383c7e;p=thirdparty%2Fipxe.git How has the legacy wrapper been working for the past month or so...? --- diff --git a/src/drivers/net/legacy.c b/src/drivers/net/legacy.c index 60077d735..22ddfe661 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 ),