diff options
author | Josh Blum <josh@joshknows.com> | 2010-11-21 13:36:25 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-12-11 18:43:09 -0800 |
commit | 6004410a7b73a52d95b8f5f0cf0fa969bef4e910 (patch) | |
tree | 0f3cfd706b992c9008a90b75d9eb2315d4f8b7c6 /firmware/microblaze/apps | |
parent | fe35b8ae0785fff7d33e18b62e3b435cfd5a5475 (diff) | |
download | uhd-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/apps')
-rw-r--r-- | firmware/microblaze/apps/txrx_uhd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/microblaze/apps/txrx_uhd.c b/firmware/microblaze/apps/txrx_uhd.c index f922ce4af..741167c0e 100644 --- a/firmware/microblaze/apps/txrx_uhd.c +++ b/firmware/microblaze/apps/txrx_uhd.c @@ -348,9 +348,9 @@ main(void) printf("Firmware compatibility number: %d\n", USRP2_FW_COMPAT_NUM); //1) register the addresses into the network stack - register_mac_addr(ethernet_mac_addr()); - register_ip_addr(get_ip_addr()); - + register_addrs(ethernet_mac_addr(), get_ip_addr()); + pkt_ctrl_register_addrs(ethernet_mac_addr(), get_ip_addr()); + //2) register callbacks for udp ports we service register_udp_listener(USRP2_UDP_CTRL_PORT, handle_udp_ctrl_packet); register_udp_listener(USRP2_UDP_DATA_PORT, handle_udp_data_packet); |