commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r7096 - usrp2/trunk/firmware/apps


From: eb
Subject: [Commit-gnuradio] r7096 - usrp2/trunk/firmware/apps
Date: Sun, 9 Dec 2007 22:53:17 -0700 (MST)

Author: eb
Date: 2007-12-09 22:53:16 -0700 (Sun, 09 Dec 2007)
New Revision: 7096

Modified:
   usrp2/trunk/firmware/apps/gen_pause_frames.c
   usrp2/trunk/firmware/apps/rcv_eth_packets.c
   usrp2/trunk/firmware/apps/test_phy_comm.c
   usrp2/trunk/firmware/apps/test_serdes.c
Log:
cleanup

Modified: usrp2/trunk/firmware/apps/gen_pause_frames.c
===================================================================
--- usrp2/trunk/firmware/apps/gen_pause_frames.c        2007-12-10 05:50:04 UTC 
(rev 7095)
+++ usrp2/trunk/firmware/apps/gen_pause_frames.c        2007-12-10 05:53:16 UTC 
(rev 7096)
@@ -36,11 +36,6 @@
   0xff, 0xff, 0xff, 0xff, 0xff, 0xff
 };
 
-// our address
-unsigned char src_mac_addr[6] = {
-  0x00, 0x0A, 0x35, 0x98, 0x76, 0x54
-};
-
 #define U2_ETHERTYPE 0xBEEF
 
 
@@ -176,7 +171,7 @@
 
   for (i = 0; i < 6; i++){
     pkt.ehdr.dst_addr[i] = dst_mac_addr[i];
-    pkt.ehdr.src_addr[i] = src_mac_addr[i];
+    pkt.ehdr.src_addr[i] = 0;                  // filled in by mac
   }
   pkt.ehdr.ethertype = U2_ETHERTYPE;
 

Modified: usrp2/trunk/firmware/apps/rcv_eth_packets.c
===================================================================
--- usrp2/trunk/firmware/apps/rcv_eth_packets.c 2007-12-10 05:50:04 UTC (rev 
7095)
+++ usrp2/trunk/firmware/apps/rcv_eth_packets.c 2007-12-10 05:53:16 UTC (rev 
7096)
@@ -37,10 +37,6 @@
   0xff, 0xff, 0xff, 0xff, 0xff, 0xff
 };
 
-unsigned char src_mac_addr[6] = {
-  0x00, 0x0A, 0x35, 0x98, 0x76, 0x54
-};
-
 #define U2_ETHERTYPE 0xBEEF
 
 
@@ -191,7 +187,7 @@
 
   for (i = 0; i < 6; i++){
     pkt.ehdr.dst_addr[i] = dst_mac_addr[i];
-    pkt.ehdr.src_addr[i] = src_mac_addr[i];
+    pkt.ehdr.src_addr[i] = 0;              // filled in by mac
   }
   pkt.ehdr.ethertype = U2_ETHERTYPE;
 

Modified: usrp2/trunk/firmware/apps/test_phy_comm.c
===================================================================
--- usrp2/trunk/firmware/apps/test_phy_comm.c   2007-12-10 05:50:04 UTC (rev 
7095)
+++ usrp2/trunk/firmware/apps/test_phy_comm.c   2007-12-10 05:53:16 UTC (rev 
7096)
@@ -36,9 +36,6 @@
 #define LS_10    0x20000
 
 
-unsigned char src_mac_addr[6] = {
-  0x00, 0x0A, 0x35, 0x98, 0x76, 0x54
-};
 
 #define U2_ETHERTYPE 0xBEEF
 

Modified: usrp2/trunk/firmware/apps/test_serdes.c
===================================================================
--- usrp2/trunk/firmware/apps/test_serdes.c     2007-12-10 05:50:04 UTC (rev 
7095)
+++ usrp2/trunk/firmware/apps/test_serdes.c     2007-12-10 05:53:16 UTC (rev 
7096)
@@ -36,10 +36,6 @@
   0xff, 0xff, 0xff, 0xff, 0xff, 0xff
 };
 
-unsigned char src_mac_addr[6] = {
-  0x00, 0x0A, 0x35, 0x98, 0x76, 0x54
-};
-
 #define U2_ETHERTYPE 0xBEEF
 
 
@@ -175,7 +171,7 @@
 
   for (i = 0; i < 6; i++){
     pkt.ehdr.dst_addr[i] = dst_mac_addr[i];
-    pkt.ehdr.src_addr[i] = src_mac_addr[i];
+    pkt.ehdr.src_addr[i] = 0;          // filled in by mac
   }
   pkt.ehdr.ethertype = U2_ETHERTYPE;
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]