diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-11-26 21:21:04 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-11-26 21:21:04 +0100 |
commit | b38b33b884d3ae4637d206c50e7f91a5c1b33857 (patch) | |
tree | b6213885a0d79603e0a0eca542fb2beb11f15231 /src/main.c | |
parent | e976df1b5bf333a9af10559fbe1de3ab6537ca64 (diff) |
mtp: Make the spare/ni configurable
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) { |