From 8f07cc031b944668f18112fd9ec11228227e2207 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Thu, 18 Nov 2010 20:10:50 -0800 Subject: packet_router: take that back and only garp when link is up (FIXME initial state before garp call) --- firmware/microblaze/apps/txrx_uhd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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){ -- cgit v1.2.3