summaryrefslogtreecommitdiff
path: root/usrp2/firmware/apps/app_passthru_v2.c
diff options
context:
space:
mode:
authorEric Blossom2009-09-04 15:35:01 -0700
committerEric Blossom2009-09-04 15:35:01 -0700
commit49a17dca1ee9cf7c0fd02b6baf83814a68c4e5e8 (patch)
tree9e2eebf93e5e3867664fe4cb3ab3514ed76051ee /usrp2/firmware/apps/app_passthru_v2.c
parent9a100f391e52106ca872dd5df8287273eea64b0c (diff)
downloadgnuradio-49a17dca1ee9cf7c0fd02b6baf83814a68c4e5e8.tar.gz
gnuradio-49a17dca1ee9cf7c0fd02b6baf83814a68c4e5e8.tar.bz2
gnuradio-49a17dca1ee9cf7c0fd02b6baf83814a68c4e5e8.zip
Firmware now inserts mac source address value in each frame.
The old mac used to do this automatically.
Diffstat (limited to 'usrp2/firmware/apps/app_passthru_v2.c')
-rw-r--r--usrp2/firmware/apps/app_passthru_v2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usrp2/firmware/apps/app_passthru_v2.c b/usrp2/firmware/apps/app_passthru_v2.c
index 660bcd774..406c56b3b 100644
--- a/usrp2/firmware/apps/app_passthru_v2.c
+++ b/usrp2/firmware/apps/app_passthru_v2.c
@@ -42,6 +42,7 @@ void
set_reply_hdr(u2_eth_packet_t *reply_pkt, u2_eth_packet_t const *cmd_pkt)
{
reply_pkt->ehdr.dst = cmd_pkt->ehdr.src;
+ reply_pkt->ehdr.src = *ethernet_mac_addr();
reply_pkt->ehdr.ethertype = U2_ETHERTYPE;
reply_pkt->thdr.flags = 0;
reply_pkt->thdr.fifo_status = 0; // written by protocol engine