diff options
author | Josh Blum <josh@joshknows.com> | 2010-11-18 20:10:50 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-12-11 18:43:09 -0800 |
commit | 8f07cc031b944668f18112fd9ec11228227e2207 (patch) | |
tree | ff9aaf163ebda1f0d6a6ef3834766a3449e03cce /firmware/microblaze | |
parent | a1f3a6605077ffb3275b094c58e8e9cdf78a899d (diff) | |
download | uhd-8f07cc031b944668f18112fd9ec11228227e2207.tar.gz uhd-8f07cc031b944668f18112fd9ec11228227e2207.tar.bz2 uhd-8f07cc031b944668f18112fd9ec11228227e2207.zip |
packet_router: take that back and only garp when link is up (FIXME initial state before garp call)
Diffstat (limited to 'firmware/microblaze')
-rw-r--r-- | firmware/microblaze/apps/txrx_uhd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/microblaze/apps/txrx_uhd.c b/firmware/microblaze/apps/txrx_uhd.c index c61bc647c..8e2a35f58 100644 --- a/firmware/microblaze/apps/txrx_uhd.c +++ b/firmware/microblaze/apps/txrx_uhd.c @@ -283,12 +283,12 @@ void link_changed_callback(int speed){ if (speed != 0){ hal_set_leds(LED_RJ45, LED_RJ45); pkt_ctrl_set_routing_mode(PKT_CTRL_ROUTING_MODE_MASTER); + send_gratuitous_arp(); } else{ hal_set_leds(0x0, LED_RJ45); pkt_ctrl_set_routing_mode(PKT_CTRL_ROUTING_MODE_SLAVE); } - send_gratuitous_arp(); } static void setup_network(void){ |