diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-12-08 10:08:14 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-12-08 10:08:14 +0100 |
commit | 396282ef8e5d93dd6e20ab9f82060a6977940e32 (patch) | |
tree | c62a05541447ebcdcfcd9024719a4b5c2be68f56 | |
parent | e15fa4cafeebc1298c81e78116f3e33f47ab86e2 (diff) |
udt_relay: Initialize the ni_ni as well here
-rw-r--r-- | src/main_udt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main_udt.c b/src/main_udt.c index 3e41d91..b60071d 100644 --- a/src/main_udt.c +++ b/src/main_udt.c @@ -21,6 +21,7 @@ */ #include <mtp_data.h> +#include <mtp_level3.h> #include <mtp_pcap.h> #include <thread.h> #include <bsc_data.h> @@ -228,6 +229,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(); @@ -278,6 +281,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) { |