]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
How has the legacy wrapper been working for the past month or so...?
authorMichael Brown <mcb30@etherboot.org>
Sat, 30 Jun 2007 23:36:48 +0000 (00:36 +0100)
committerMichael Brown <mcb30@etherboot.org>
Sat, 30 Jun 2007 23:36:48 +0000 (00:36 +0100)
src/drivers/net/legacy.c

index 60077d735d1bf694cdbeaaf2521a6f088bf475c5..22ddfe6613952fbe229e01bfa32f9076144f16d7 100644 (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 ),