summaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/apps
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-11-19 15:23:51 -0800
committerJosh Blum <josh@joshknows.com>2010-12-11 18:43:09 -0800
commit9f28245c26c46e57448c4d8f3a2c4e038d6abd2a (patch)
tree5f86527ee1272a3b663dd737164a23980e69ab6a /firmware/microblaze/apps
parent8f07cc031b944668f18112fd9ec11228227e2207 (diff)
downloaduhd-9f28245c26c46e57448c4d8f3a2c4e038d6abd2a.tar.gz
uhd-9f28245c26c46e57448c4d8f3a2c4e038d6abd2a.tar.bz2
uhd-9f28245c26c46e57448c4d8f3a2c4e038d6abd2a.zip
packet_router: added helper functions to packet router, added clear, fixed handshake, garp at start
Diffstat (limited to 'firmware/microblaze/apps')
-rw-r--r--firmware/microblaze/apps/txrx_uhd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/microblaze/apps/txrx_uhd.c b/firmware/microblaze/apps/txrx_uhd.c
index 8e2a35f58..f922ce4af 100644
--- a/firmware/microblaze/apps/txrx_uhd.c
+++ b/firmware/microblaze/apps/txrx_uhd.c
@@ -356,7 +356,11 @@ main(void)
register_udp_listener(USRP2_UDP_DATA_PORT, handle_udp_data_packet);
register_udp_listener(USRP2_UDP_UPDATE_PORT, handle_udp_fw_update_packet);
- //3) setup ethernet hardware to bring the link up
+ //3) set the routing mode to slave and send a garp
+ pkt_ctrl_set_routing_mode(PKT_CTRL_ROUTING_MODE_SLAVE);
+ send_gratuitous_arp();
+
+ //4) setup ethernet hardware to bring the link up
ethernet_register_link_changed_callback(link_changed_callback);
ethernet_init();