EoE: Corrected faulty MAC address.
authorFlorian Pose <fp@igh-essen.com>
Fri, 05 May 2006 14:45:02 +0000
changeset 216 e7f3e485c5b8
parent 215 b021aa6eee38
child 217 dcfd406e7786
EoE: Corrected faulty MAC address.
master/ethernet.c
--- a/master/ethernet.c	Fri May 05 13:07:49 2006 +0000
+++ b/master/ethernet.c	Fri May 05 14:45:02 2006 +0000
@@ -37,7 +37,7 @@
 #include "mailbox.h"
 #include "ethernet.h"
 
-#define EOE_DEBUG_LEVEL 1
+#define EOE_DEBUG_LEVEL 0
 
 /*****************************************************************************/
 
@@ -296,7 +296,7 @@
                     eoe->skb->dev = eoe->dev;
                     eoe->skb->protocol = eth_type_trans(eoe->skb, eoe->dev);
                     eoe->skb->ip_summed = CHECKSUM_UNNECESSARY;
-                    eoe->skb->pkt_type = PACKET_HOST;
+                    //eoe->skb->pkt_type = PACKET_HOST;
                     if (netif_rx(eoe->skb)) {
                         EC_WARN("EoE RX netif_rx failed.\n");
                     }
@@ -442,7 +442,8 @@
     dev->hard_start_xmit = ec_eoedev_tx;
     dev->get_stats = ec_eoedev_stats;
 
-    for (i = 0; i < 6; i++) dev->dev_addr[i] = (i + 1) | (i + 1) << 4;
+    for (i = 0; i < ETH_ALEN; i++)
+        dev->dev_addr[i] = i | (i << 4);
 
     // initialize private data
     priv = netdev_priv(dev);