aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/lib/net_common.h
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-03-16 17:54:54 -0700
committerJosh Blum <josh@joshknows.com>2010-03-16 17:54:54 -0700
commit6458eca9540f11fb8dd5bee184e6124998023c4f (patch)
tree17d69f06e918b346e50e4b3aad24a1da071fd2cf /firmware/microblaze/lib/net_common.h
parent52dc73891474827a9c686f73cbfe70618a2dd6e4 (diff)
downloaduhd-6458eca9540f11fb8dd5bee184e6124998023c4f.tar.gz
uhd-6458eca9540f11fb8dd5bee184e6124998023c4f.tar.bz2
uhd-6458eca9540f11fb8dd5bee184e6124998023c4f.zip
Added recovery app to use raw socket to burn known ip addr.
Fixed up fw so the device can reply after new addrs are set.
Diffstat (limited to 'firmware/microblaze/lib/net_common.h')
-rw-r--r--firmware/microblaze/lib/net_common.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/firmware/microblaze/lib/net_common.h b/firmware/microblaze/lib/net_common.h
index 6cd45bf69..112669b46 100644
--- a/firmware/microblaze/lib/net_common.h
+++ b/firmware/microblaze/lib/net_common.h
@@ -33,21 +33,12 @@ extern dbsm_t *ac_could_be_sending_to_eth;
void stop_streaming(void);
-/*!
- * Helpful typedefs for callback
- */
typedef void (*udp_receiver_t)(struct socket_address src, struct socket_address dst,
unsigned char *payload, int payload_len);
-typedef eth_mac_addr_t (*get_eth_mac_addr_t)(void);
-typedef struct ip_addr (*get_ip_addr_t)(void);
-
-/*!
- * Functions to register callbacks
- */
-void register_get_eth_mac_addr(get_eth_mac_addr_t get_eth_mac_addr);
+void register_mac_addr(const eth_mac_addr_t *mac_addr);
-void register_get_ip_addr(get_ip_addr_t get_ip_addr);
+void register_ip_addr(const struct ip_addr *ip_addr);
void register_udp_listener(int port, udp_receiver_t rcvr);