aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-11-26 21:21:04 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-11-26 21:21:04 +0100
commitb38b33b884d3ae4637d206c50e7f91a5c1b33857 (patch)
treeb6213885a0d79603e0a0eca542fb2beb11f15231 /src/main.c
parente976df1b5bf333a9af10559fbe1de3ab6537ca64 (diff)
mtp: Make the spare/ni configurable
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index a5f850f..2677771 100644
--- a/src/main.c
+++ b/src/main.c
@@ -21,6 +21,7 @@
*/
#include <mtp_data.h>
+#include <mtp_level3.h>
#include <mtp_pcap.h>
#include <thread.h>
#include <bss_patch.h>
@@ -722,6 +723,8 @@ int main(int argc, char **argv)
bsc.udp_port = 3456;
bsc.udp_ip = NULL;
bsc.src_port = 1313;
+ bsc.ni_ni = MTP_NI_NATION_NET;
+ bsc.ni_spare = 0;
mtp_link_init();
thread_init();
@@ -771,6 +774,8 @@ int main(int argc, char **argv)
bsc.link.the_link->opc = bsc.opc;
bsc.link.the_link->link = 0;
bsc.link.the_link->sltm_once = bsc.once;
+ bsc.link.the_link->ni = bsc.ni_ni;
+ bsc.link.the_link->spare = bsc.ni_spare;
bsc.link.bsc = &bsc;
if (bsc.udp_ip) {