summaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/lib
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/microblaze/lib')
-rw-r--r--firmware/microblaze/lib/pkt_ctrl.c5
-rw-r--r--firmware/microblaze/lib/pkt_ctrl.h2
2 files changed, 4 insertions, 3 deletions
diff --git a/firmware/microblaze/lib/pkt_ctrl.c b/firmware/microblaze/lib/pkt_ctrl.c
index d2bfc339d..7e095ec00 100644
--- a/firmware/microblaze/lib/pkt_ctrl.c
+++ b/firmware/microblaze/lib/pkt_ctrl.c
@@ -20,10 +20,11 @@
#include <nonstdio.h>
void pkt_ctrl_program_inspector(
- const struct ip_addr *ip_addr, uint16_t dsp_udp_port
+ const struct ip_addr *ip_addr, uint16_t ctrl_port, uint16_t data_port
){
buffer_pool_ctrl->ip_addr = ip_addr->addr;
- buffer_pool_ctrl->udp_ports = dsp_udp_port;
+ buffer_pool_ctrl->ctrl_ports = ctrl_port;
+ buffer_pool_ctrl->data_ports = data_port;
}
void pkt_ctrl_set_routing_mode(pkt_ctrl_routing_mode_t mode){
diff --git a/firmware/microblaze/lib/pkt_ctrl.h b/firmware/microblaze/lib/pkt_ctrl.h
index 927d1fc7a..346e22094 100644
--- a/firmware/microblaze/lib/pkt_ctrl.h
+++ b/firmware/microblaze/lib/pkt_ctrl.h
@@ -30,7 +30,7 @@ typedef enum {
//! Program the decision values into the packet inspector
void pkt_ctrl_program_inspector(
- const struct ip_addr *ip_addr, uint16_t dsp_udp_port
+ const struct ip_addr *ip_addr, uint16_t ctrl_port, uint16_t data_port
);
//! Set the routing mode for this device