Revision | c4124a788e17db39e3465beedcceef16e5ee9a05 (tree) |
---|---|
Zeit | 2022-06-03 23:38:15 |
Autor | Satoshi Yasuda <7m3tjz@jarl...> |
Commiter | Satoshi Yasuda |
modified: dmonitor.h
modified: extern_dmonitor.h
modified: main.c
modified: repeater_mon.c
@@ -102,7 +102,7 @@ | ||
102 | 102 | #define PACKAGE_NAME "dmonitor" |
103 | 103 | |
104 | 104 | /* Define to the full name and version of this package. */ |
105 | -#define PACKAGE_STRING "dmonitor 02.00" | |
105 | +#define PACKAGE_STRING "dmonitor 01.79" | |
106 | 106 | |
107 | 107 | /* Define to the one symbol short name of this package. */ |
108 | 108 | #define PACKAGE_TARNAME "dmonitor" |
@@ -111,13 +111,13 @@ | ||
111 | 111 | #define PACKAGE_URL "" |
112 | 112 | |
113 | 113 | /* Define to the version of this package. */ |
114 | -#define PACKAGE_VERSION "02.00" | |
114 | +#define PACKAGE_VERSION "01.79" | |
115 | 115 | |
116 | 116 | /* Define to 1 if you have the ANSI C header files. */ |
117 | 117 | #define STDC_HEADERS 1 |
118 | 118 | |
119 | 119 | /* Version number of package */ |
120 | -#define VERSION "02.00" | |
120 | +#define VERSION "01.79" | |
121 | 121 | |
122 | 122 | /* Define for Solaris 2.5.1 so the uint32_t typedef from <sys/synch.h>, |
123 | 123 | <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the |
@@ -1,6 +1,6 @@ | ||
1 | 1 | #! /bin/sh |
2 | 2 | # Guess values for system-dependent variables and create Makefiles. |
3 | -# Generated by GNU Autoconf 2.69 for dmonitor 02.00. | |
3 | +# Generated by GNU Autoconf 2.69 for dmonitor 01.79. | |
4 | 4 | # |
5 | 5 | # Report bugs to <7m3tjz@jarl.com>. |
6 | 6 | # |
@@ -580,8 +580,8 @@ MAKEFLAGS= | ||
580 | 580 | # Identity of this package. |
581 | 581 | PACKAGE_NAME='dmonitor' |
582 | 582 | PACKAGE_TARNAME='dmonitor' |
583 | -PACKAGE_VERSION='02.00' | |
584 | -PACKAGE_STRING='dmonitor 02.00' | |
583 | +PACKAGE_VERSION='01.79' | |
584 | +PACKAGE_STRING='dmonitor 01.79' | |
585 | 585 | PACKAGE_BUGREPORT='7m3tjz@jarl.com' |
586 | 586 | PACKAGE_URL='' |
587 | 587 |
@@ -1277,7 +1277,7 @@ if test "$ac_init_help" = "long"; then | ||
1277 | 1277 | # Omit some internal or obsolete options to make the list less imposing. |
1278 | 1278 | # This message is too long to be a string in the A/UX 3.1 sh. |
1279 | 1279 | cat <<_ACEOF |
1280 | -\`configure' configures dmonitor 02.00 to adapt to many kinds of systems. | |
1280 | +\`configure' configures dmonitor 01.79 to adapt to many kinds of systems. | |
1281 | 1281 | |
1282 | 1282 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1283 | 1283 |
@@ -1344,7 +1344,7 @@ fi | ||
1344 | 1344 | |
1345 | 1345 | if test -n "$ac_init_help"; then |
1346 | 1346 | case $ac_init_help in |
1347 | - short | recursive ) echo "Configuration of dmonitor 02.00:";; | |
1347 | + short | recursive ) echo "Configuration of dmonitor 01.79:";; | |
1348 | 1348 | esac |
1349 | 1349 | cat <<\_ACEOF |
1350 | 1350 |
@@ -1435,7 +1435,7 @@ fi | ||
1435 | 1435 | test -n "$ac_init_help" && exit $ac_status |
1436 | 1436 | if $ac_init_version; then |
1437 | 1437 | cat <<\_ACEOF |
1438 | -dmonitor configure 02.00 | |
1438 | +dmonitor configure 01.79 | |
1439 | 1439 | generated by GNU Autoconf 2.69 |
1440 | 1440 | |
1441 | 1441 | Copyright (C) 2012 Free Software Foundation, Inc. |
@@ -1912,7 +1912,7 @@ cat >config.log <<_ACEOF | ||
1912 | 1912 | This file contains any messages produced by compilers while |
1913 | 1913 | running configure, to aid debugging if configure makes a mistake. |
1914 | 1914 | |
1915 | -It was created by dmonitor $as_me 02.00, which was | |
1915 | +It was created by dmonitor $as_me 01.79, which was | |
1916 | 1916 | generated by GNU Autoconf 2.69. Invocation command line was |
1917 | 1917 | |
1918 | 1918 | $ $0 $@ |
@@ -2773,7 +2773,7 @@ fi | ||
2773 | 2773 | |
2774 | 2774 | # Define the identity of the package. |
2775 | 2775 | PACKAGE='dmonitor' |
2776 | - VERSION='02.00' | |
2776 | + VERSION='01.79' | |
2777 | 2777 | |
2778 | 2778 | |
2779 | 2779 | cat >>confdefs.h <<_ACEOF |
@@ -5043,7 +5043,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
5043 | 5043 | # report actual input values of CONFIG_FILES etc. instead of their |
5044 | 5044 | # values after options handling. |
5045 | 5045 | ac_log=" |
5046 | -This file was extended by dmonitor $as_me 02.00, which was | |
5046 | +This file was extended by dmonitor $as_me 01.79, which was | |
5047 | 5047 | generated by GNU Autoconf 2.69. Invocation command line was |
5048 | 5048 | |
5049 | 5049 | CONFIG_FILES = $CONFIG_FILES |
@@ -5109,7 +5109,7 @@ _ACEOF | ||
5109 | 5109 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
5110 | 5110 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
5111 | 5111 | ac_cs_version="\\ |
5112 | -dmonitor config.status 02.00 | |
5112 | +dmonitor config.status 01.79 | |
5113 | 5113 | configured by $0, generated by GNU Autoconf 2.69, |
5114 | 5114 | with options \\"\$ac_cs_config\\" |
5115 | 5115 |
@@ -1,11 +1,16 @@ | ||
1 | +dmonitor (01.79) unstable; urgency=low | |
2 | + | |
3 | + * update Closes: (#139) | |
4 | + * addes dmonitor_start script | |
5 | + | |
6 | + -- Satoshi Yasuda <7m3tjz@jarl.com> Tue, 31 May 2022 18:15:00 +0900 | |
7 | + | |
1 | 8 | dmonitor (01.78) unstable; urgency=low |
2 | 9 | |
3 | 10 | * update Closes: (#138) |
4 | 11 | * changed assist rpt2 |
5 | - * addes dmonitor_start script | |
6 | - | |
7 | - -- Satoshi Yasuda <7m3tjz@jarl.com> Fri, 27 May 2022 15:20:00 +0900 | |
8 | 12 | |
13 | + -- Satoshi Yasuda <7m3tjz@jarl.com> Tue, 31 May 2022 13:45:00 +0900 | |
9 | 14 | |
10 | 15 | dmonitor (01.77) unstable; urgency=low |
11 | 16 |
@@ -104,7 +104,6 @@ dvap.conf.save /var/www | ||
104 | 104 | dvmega.conf.save /var/www |
105 | 105 | node.conf.save /var/www |
106 | 106 | 99-dstar.rules /var/tmp |
107 | -#resize_dmon.sh.org /var/tmp | |
108 | 107 | dmonitor_update /var/tmp |
109 | 108 | dmonitor_update_surf /var/tmp |
110 | 109 | dmonitor_start /var/tmp |
@@ -116,7 +116,6 @@ override_dh_prep: | ||
116 | 116 | cp /var/www/rpt_mast.txt debian/tmp/ |
117 | 117 | cp /etc/udev/rules.d/99-dstar.rules debian/tmp/ |
118 | 118 | cp /usr/share/javascript/jquery/jquery.cookie.js debian/tmp/ |
119 | - #cp /usr/local/bin/resize_dmon.sh.org debian/tmp/ | |
120 | 119 | cp /usr/local/bin/dmonitor_update debian/tmp/ |
121 | 120 | cp /usr/local/bin/dmonitor_update_surf debian/tmp/ |
122 | 121 | cp /usr/local/bin/dmonitor_start debian/tmp/ |
@@ -113,6 +113,7 @@ int rig_buff_next; | ||
113 | 113 | |
114 | 114 | int dest_inet_port; |
115 | 115 | char *dest_address; |
116 | +char *server_address; | |
116 | 117 | char inet_send_buff[58]; |
117 | 118 | int m_seq; |
118 | 119 | int frameID; |
@@ -235,7 +236,7 @@ int alt_header_pnt; | ||
235 | 236 | int gw_on; |
236 | 237 | |
237 | 238 | char cmd[256]; |
238 | -unsigned char recvBuff[1024]; | |
239 | +unsigned char recvBuff[256]; | |
239 | 240 | int code_sq; |
240 | 241 | |
241 | 242 | unsigned char msg_temp[21]; |
@@ -113,6 +113,7 @@ extern int rig_buff_next; | ||
113 | 113 | |
114 | 114 | extern int dest_inet_port; |
115 | 115 | extern char *dest_address; |
116 | +extern char *server_address; | |
116 | 117 | extern char inet_send_buff[58]; |
117 | 118 | extern int m_seq; |
118 | 119 | extern int frameID; |
@@ -235,7 +236,7 @@ extern int alt_header_pnt; | ||
235 | 236 | extern int gw_on; |
236 | 237 | |
237 | 238 | extern char cmd[256]; |
238 | -extern unsigned char recvBuff[1024]; | |
239 | +extern unsigned char recvBuff[256]; | |
239 | 240 | extern int code_sq; |
240 | 241 | |
241 | 242 | extern unsigned char msg_temp[21]; |
@@ -186,7 +186,7 @@ os_ok: | ||
186 | 186 | if (length <= 0 ) return -1; |
187 | 187 | pg_path[length] = 0x00; |
188 | 188 | if (ETagGen (pg_path, MD5_dmonitor) < 0) return 5; |
189 | - memcpy (MD5_dmonitor, "5ebe211107266a57b1af14a7fdcd8480", 32); | |
189 | + //memcpy (MD5_dmonitor, "5ebe211107266a57b1af14a7fdcd8480", 32); | |
190 | 190 | |
191 | 191 | Rp = malloc (sizeof (struct FifoPkt) - 1024); |
192 | 192 | Wp = Rp; |
@@ -196,10 +196,10 @@ os_ok: | ||
196 | 196 | recv_frame_seq = 0x00; |
197 | 197 | |
198 | 198 | memset (connect_call, 0x20, 8); |
199 | - if (argc < 5) | |
199 | + if (argc < 6) | |
200 | 200 | { |
201 | 201 | syslog (LOG_ERR, |
202 | - "Usage dmonitor my_call ip_address port area_call [zone_call]"); | |
202 | + "Usage dmonitor my_call ip_address port area_call zone_call server_ip"); | |
203 | 203 | return 5; |
204 | 204 | } |
205 | 205 | len = strlen(argv[1]); |
@@ -213,14 +213,15 @@ os_ok: | ||
213 | 213 | } |
214 | 214 | memcpy (connect_call, argv[1], len); |
215 | 215 | dest_address = argv[2]; |
216 | + server_address = argb[6]; | |
216 | 217 | dest_inet_port = (unsigned short)atoi(argv[3]); |
217 | 218 | memcpy (area_call, argv[4], strlen(argv[4])); |
218 | 219 | memcpy (zone_call, argv[4], strlen(argv[4])); |
219 | 220 | zone_call[7] = 'G'; |
220 | 221 | if (argc == 6) |
221 | 222 | { |
222 | - if (!memcmp (argv[5], "SCAN", 4)) scan_sw = TRUE; | |
223 | - else if (!memcmp (argv[5], "NO_DAEMON", 9)) no_daemon = TRUE; | |
223 | + if (!memcmp (argv[6], "SCAN", 4)) scan_sw = TRUE; | |
224 | + else if (!memcmp (argv[6], "NO_DAEMON", 9)) no_daemon = TRUE; | |
224 | 225 | else |
225 | 226 | { |
226 | 227 | memcpy (zone_call, argv[5], strlen(argv[5])); |
@@ -229,8 +230,8 @@ os_ok: | ||
229 | 230 | } |
230 | 231 | if (argc == 7) |
231 | 232 | { |
232 | - if (!memcmp (argv[6], "SCAN", 4)) scan_sw = TRUE; | |
233 | - else if (!memcmp (argv[6], "NO_DAEMON", 9)) no_daemon = TRUE; | |
233 | + if (!memcmp (argv[7], "SCAN", 4)) scan_sw = TRUE; | |
234 | + else if (!memcmp (argv[7], "NO_DAEMON", 9)) no_daemon = TRUE; | |
234 | 235 | } |
235 | 236 | |
236 | 237 | if (argc >= 5) send_sw = TRUE; |
@@ -62,6 +62,7 @@ void prase (char str[]) | ||
62 | 62 | char callsign[8]; |
63 | 63 | char call[64]; |
64 | 64 | char ip_addr[20]; |
65 | + char server_ip[20]; | |
65 | 66 | int port; |
66 | 67 | char rep_temp[128]; |
67 | 68 | char ur_call[8]; |
@@ -97,6 +98,19 @@ void prase (char str[]) | ||
97 | 98 | ip_addr[m++] = str[n]; |
98 | 99 | } |
99 | 100 | } |
101 | + else if (!memcmp (&str[k], "server_ip", 9)) | |
102 | + { | |
103 | + m = 0; | |
104 | + for (n = k + 12; n < len ; n++) | |
105 | + { | |
106 | + if (str[n] == '"') | |
107 | + { | |
108 | + server_ip[m] = 0x00; | |
109 | + break; | |
110 | + } | |
111 | + server_ip[m++] = str[n]; | |
112 | + } | |
113 | + } | |
100 | 114 | else if (!memcmp (&str[k], "port", 4)) |
101 | 115 | { |
102 | 116 | port = atoi (&str[k+6]); |
@@ -209,21 +223,21 @@ void prase (char str[]) | ||
209 | 223 | rep_temp[l] = 0x00; |
210 | 224 | if (status) |
211 | 225 | { |
212 | - fprintf (html_fd, "<td title=\"rpt1:%8.8s rpt2:%8.8s ur:%8.8s my:%8.8s\"<tt><a href=\"/cgi-bin/monitor?ip_addr=%s&port=%d&callsign='%8.8s'&rep_name='%s'&zr_call='%8.8s'\" target=\"cmd1\" style=\"color:red;\">%s</a></tt></td><td>%s</td>\n", | |
213 | - rpt1_call, rpt2_call, ur_call, my_call, ip_addr, port, callsign, &rep_temp[8], zr_call, call, &rep_temp[8]); | |
226 | + fprintf (html_fd, "<td title=\"rpt1:%8.8s rpt2:%8.8s ur:%8.8s my:%8.8s\"<tt><a href=\"/cgi-bin/monitor?ip_addr=%s&port=%d&callsign='%8.8s'&rep_name='%s'&zr_call='%8.8s'&server_ip=%s\" target=\"cmd1\" style=\"color:red;\">%s</a></tt></td><td>%s</td>\n", | |
227 | + rpt1_call, rpt2_call, ur_call, my_call, ip_addr, port, callsign, &rep_temp[8], server_ip, zr_call, call, &rep_temp[8]); | |
214 | 228 | if (active_col == 0) |
215 | 229 | { |
216 | 230 | fprintf (html_active_fd, "<table border=\"1\" style=\"font-size:1.0em;\">\n"); |
217 | 231 | fprintf (html_active_fd, "<tr><td><center>Rep. Call</center></td><td><center>Rep. Name</center></td><td><center>GW Call</center></td><td><center>Ur Call</center></td><td><center>My Call</center></td></tr>\n"); |
218 | 232 | } |
219 | - fprintf (html_active_fd, "<tr><td><tt><a href=\"/cgi-bin/monitor?ip_addr=%s&port=%d&callsign='%8.8s'&rep_name='%s'&zr_call='%8.8s'\" target=\"cmd1\" style=\"color:red;\">%s</a></tt></td><td>%s</td><td><tt>%8.8s</tt></td><td><tt>%8.8s</tt></td><td><tt>%8.8s</tt></td></tr>\n", | |
233 | + fprintf (html_active_fd, "<tr><td><tt><a href=\"/cgi-bin/monitor?ip_addr=%s&port=%d&callsign='%8.8s'&rep_name='%s'&zr_call='%8.8s'&server_ip=%s\" target=\"cmd1\" style=\"color:red;\">%s</a></tt></td><td>%s</td><td><tt>%8.8s</tt></td><td><tt>%8.8s</tt></td><td><tt>%8.8s</tt></td></tr>\n", | |
220 | 234 | ip_addr, port, callsign, |
221 | -&rep_temp[8], zr_call, call, &rep_temp[8], zr_call, ur_call, my_call); | |
235 | +&rep_temp[8], zr_call, server_ip, call, &rep_temp[8], zr_call, ur_call, my_call); | |
222 | 236 | active_col++; |
223 | 237 | } |
224 | 238 | else |
225 | - fprintf (html_fd, "<td><tt><a href=\"/cgi-bin/monitor?ip_addr=%s&port=%d&callsign='%8.8s'&rep_name='%s'&zr_call='%8.8s'\" target=\"cmd1\">%s</a></tt></td><td>%s</td>\n", | |
226 | - ip_addr, port, callsign, &rep_temp[8], zr_call, call, &rep_temp[8]); | |
239 | + fprintf (html_fd, "<td><tt><a href=\"/cgi-bin/monitor?ip_addr=%s&port=%d&callsign='%8.8s'&rep_name='%s'&zr_call='%8.8s'&server_ip='%s\" target=\"cmd1\">%s</a></tt></td><td>%s</td>\n", | |
240 | + ip_addr, port, callsign, &rep_temp[8], zr_call, server_ip, call, &rep_temp[8]); | |
227 | 241 | |
228 | 242 | goto mast_close; |
229 | 243 | } |
@@ -231,8 +245,8 @@ void prase (char str[]) | ||
231 | 245 | } |
232 | 246 | if (status) |
233 | 247 | { |
234 | - fprintf (html_fd, "<td title=\"rpt1:%8.8s rpt2:%8.8s ur:%8.8s my:%8.8s\"><tt><a href=\"/cgi-bin/monitor?ip_addr=%s&port=%d&callsign='%8.8s'&zr_call='%8.8s'\" target=\"cmd1\" style=\"color:red;\">%s</a></td></tt><td> </td>\n", | |
235 | - rpt1_call, rpt2_call, ur_call, my_call, ip_addr, port, callsign, zr_call, call); | |
248 | + fprintf (html_fd, "<td title=\"rpt1:%8.8s rpt2:%8.8s ur:%8.8s my:%8.8s\"><tt><a href=\"/cgi-bin/monitor?ip_addr=%s&port=%d&callsign='%8.8s'&zr_call='%8.8s'&server_ip='%s\" target=\"cmd1\" style=\"color:red;\">%s</a></td></tt><td> </td>\n", | |
249 | + rpt1_call, rpt2_call, ur_call, my_call, ip_addr, port, callsign, zr_call, server_ip, call); | |
236 | 250 | if (active_col == 0) |
237 | 251 | { |
238 | 252 | fprintf (html_active_fd, "<table border=\"1\" style=\"font-size:0.9em;\">\n"); |
@@ -245,8 +259,8 @@ void prase (char str[]) | ||
245 | 259 | } |
246 | 260 | else |
247 | 261 | { |
248 | - fprintf (html_fd, "<td><tt><a href=\"/cgi-bin/monitor?ip_addr=%s&port=%d&callsign='%8.8s'&zr_call='%8.8s'\" target=\"cmd1\">%s</a></tt></td><td></td>\n", | |
249 | - ip_addr, port, callsign, zr_call, call); | |
262 | + fprintf (html_fd, "<td><tt><a href=\"/cgi-bin/monitor?ip_addr=%s&port=%d&callsign='%8.8s'&zr_call='%8.8s'&server_ip=%s\" target=\"cmd1\">%s</a></tt></td><td></td>\n", | |
263 | + ip_addr, port, callsign, zr_call, server_ip, call); | |
250 | 264 | } |
251 | 265 | mast_close: |
252 | 266 | fprintf (conn_fd, "%8.8sdmonitor '%8.8s' %s %d '%8.8s' '%8.8s'\n", callsign, ConnectCall, ip_addr, port, callsign, zr_call); |