aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/lib/pkt_ctrl.h
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-11-21 13:36:25 -0800
committerJosh Blum <josh@joshknows.com>2010-12-11 18:43:09 -0800
commit6004410a7b73a52d95b8f5f0cf0fa969bef4e910 (patch)
tree0f3cfd706b992c9008a90b75d9eb2315d4f8b7c6 /firmware/microblaze/lib/pkt_ctrl.h
parentfe35b8ae0785fff7d33e18b62e3b435cfd5a5475 (diff)
downloaduhd-6004410a7b73a52d95b8f5f0cf0fa969bef4e910.tar.gz
uhd-6004410a7b73a52d95b8f5f0cf0fa969bef4e910.tar.bz2
uhd-6004410a7b73a52d95b8f5f0cf0fa969bef4e910.zip
packet_router: implemented code to program the addresses into the router
Diffstat (limited to 'firmware/microblaze/lib/pkt_ctrl.h')
-rw-r--r--firmware/microblaze/lib/pkt_ctrl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/microblaze/lib/pkt_ctrl.h b/firmware/microblaze/lib/pkt_ctrl.h
index 86fb46d32..761209530 100644
--- a/firmware/microblaze/lib/pkt_ctrl.h
+++ b/firmware/microblaze/lib/pkt_ctrl.h
@@ -19,12 +19,19 @@
#define INCLUDED_PKT_CTRL_H
#include <stddef.h>
+#include <lwip/ip_addr.h>
+#include <net/eth_mac_addr.h>
typedef enum {
PKT_CTRL_ROUTING_MODE_SLAVE,
PKT_CTRL_ROUTING_MODE_MASTER,
} pkt_ctrl_routing_mode_t;
+//! Register this devices addresses into the router
+void pkt_ctrl_register_addrs(
+ const eth_mac_addr_t *mac_addr, const struct ip_addr *ip_addr
+);
+
//! Set the routing mode for this device
void pkt_ctrl_set_routing_mode(pkt_ctrl_routing_mode_t mode);