aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2017-08-24 14:10:36 +0200
committerPetter Reinholdtsen <pere@hungry.com>2017-08-24 14:10:36 +0200
commit898f74c160b4402ed309d9495878b90d9e311710 (patch)
tree24c678dcbf43f48843fea8c79e44f7adfa659539
parent6c4304da43346150d00b2bdc5a520746c2f45906 (diff)
Make address and port of collector point configurable.
Introduce new command line arguments --collector <host> and --collectorport <portnumber> to make it possible to send the GSM packages outside localhost.
-rw-r--r--apps/grgsm_livemon.grc92
1 files changed, 89 insertions, 3 deletions
diff --git a/apps/grgsm_livemon.grc b/apps/grgsm_livemon.grc
index 40bee70..98613f8 100644
--- a/apps/grgsm_livemon.grc
+++ b/apps/grgsm_livemon.grc
@@ -384,7 +384,7 @@
</param>
<param>
<key>host</key>
- <value>127.0.0.1</value>
+ <value>collector</value>
</param>
<param>
<key>id</key>
@@ -392,7 +392,7 @@
</param>
<param>
<key>mtu</key>
- <value>10000</value>
+ <value>1500</value>
</param>
<param>
<key>maxoutbuf</key>
@@ -404,7 +404,7 @@
</param>
<param>
<key>port</key>
- <value>4729</value>
+ <value>collectorport</value>
</param>
<param>
<key>tcp_no_delay</key>
@@ -2876,6 +2876,92 @@
<value>400e3</value>
</param>
</block>
+ <block>
+ <key>parameter</key>
+ <param>
+ <key>alias</key>
+ <value></value>
+ </param>
+ <param>
+ <key>comment</key>
+ <value></value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(1248, 8)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>id</key>
+ <value>collector</value>
+ </param>
+ <param>
+ <key>label</key>
+ <value>IP or DNS name of collector point</value>
+ </param>
+ <param>
+ <key>short_id</key>
+ <value></value>
+ </param>
+ <param>
+ <key>type</key>
+ <value>string</value>
+ </param>
+ <param>
+ <key>value</key>
+ <value>localhost</value>
+ </param>
+ </block>
+ <block>
+ <key>parameter</key>
+ <param>
+ <key>alias</key>
+ <value></value>
+ </param>
+ <param>
+ <key>comment</key>
+ <value></value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(1248, 96)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>id</key>
+ <value>collectorport</value>
+ </param>
+ <param>
+ <key>label</key>
+ <value>UDP port number of collector</value>
+ </param>
+ <param>
+ <key>short_id</key>
+ <value></value>
+ </param>
+ <param>
+ <key>type</key>
+ <value>string</value>
+ </param>
+ <param>
+ <key>value</key>
+ <value>4729</value>
+ </param>
+ </block>
<connection>
<source_block_id>blocks_rotator_cc_0</source_block_id>
<sink_block_id>gsm_input_0</sink_block_id>