Revision | 2c7476a125d0c80f446470967b7aec55ee8ea5eb (tree) |
---|---|
Zeit | 2022-06-04 03:16:12 |
Autor | Satoshi Yasuda <7m3tjz@jarl...> |
Commiter | Satoshi Yasuda |
modified: dmonitor_utils.c
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 01.79" | |
105 | +#define PACKAGE_STRING "dmonitor 02.00" | |
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 "01.79" | |
114 | +#define PACKAGE_VERSION "02.00" | |
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 "01.79" | |
120 | +#define VERSION "02.00" | |
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 01.79. | |
3 | +# Generated by GNU Autoconf 2.69 for dmonitor 02.00. | |
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='01.79' | |
584 | -PACKAGE_STRING='dmonitor 01.79' | |
583 | +PACKAGE_VERSION='02.00' | |
584 | +PACKAGE_STRING='dmonitor 02.00' | |
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 01.79 to adapt to many kinds of systems. | |
1280 | +\`configure' configures dmonitor 02.00 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 01.79:";; | |
1347 | + short | recursive ) echo "Configuration of dmonitor 02.00:";; | |
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 01.79 | |
1438 | +dmonitor configure 02.00 | |
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 01.79, which was | |
1915 | +It was created by dmonitor $as_me 02.00, 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='01.79' | |
2776 | + VERSION='02.00' | |
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 01.79, which was | |
5046 | +This file was extended by dmonitor $as_me 02.00, 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 01.79 | |
5112 | +dmonitor config.status 02.00 | |
5113 | 5113 | configured by $0, generated by GNU Autoconf 2.69, |
5114 | 5114 | with options \\"\$ac_cs_config\\" |
5115 | 5115 |
@@ -321,10 +321,12 @@ void send_keep_alive(void) | ||
321 | 321 | |
322 | 322 | in_addr.sin_family = AF_INET; |
323 | 323 | in_addr.sin_port = htons(hole_punch_port); |
324 | - in_addr.sin_addr.s_addr = inet_addr(hole_punch_server); | |
324 | + //in_addr.sin_addr.s_addr = inet_addr(hole_punch_server); | |
325 | + in_addr.sin_addr.s_addr = inet_addr(server_address); | |
326 | +syslog(LOG_DEBUG, "%s", server_address); | |
325 | 327 | if (in_addr.sin_addr.s_addr == 0xffffffff) |
326 | 328 | { |
327 | - host = gethostbyname(hole_punch_server); | |
329 | + host = gethostbyname(server_address); | |
328 | 330 | if (host == NULL) return; |
329 | 331 | in_addr.sin_addr.s_addr = *(unsigned int *)host->h_addr_list[0]; |
330 | 332 | } |
@@ -137,8 +137,10 @@ int main(int argc, char *argv[]) | ||
137 | 137 | invalid_os (); |
138 | 138 | return -1; |
139 | 139 | os_ok: |
140 | +syslog (LOG_DEBUG, "debug 100"); | |
140 | 141 | fclose (os_release_file); |
141 | 142 | right_os (); |
143 | +syslog (LOG_DEBUG, "debug 110"); | |
142 | 144 | |
143 | 145 | dmonitor_file = fopen (DMONITOR_FILE, "r"); |
144 | 146 | if (dmonitor_file == NULL) |
@@ -213,12 +215,13 @@ os_ok: | ||
213 | 215 | } |
214 | 216 | memcpy (connect_call, argv[1], len); |
215 | 217 | dest_address = argv[2]; |
216 | - server_address = argb[6]; | |
218 | + server_address = argv[6]; | |
219 | +printf ("%s %s\n", argv[6], server_address); | |
217 | 220 | dest_inet_port = (unsigned short)atoi(argv[3]); |
218 | 221 | memcpy (area_call, argv[4], strlen(argv[4])); |
219 | 222 | memcpy (zone_call, argv[4], strlen(argv[4])); |
220 | 223 | zone_call[7] = 'G'; |
221 | - if (argc == 6) | |
224 | + if (argc == 7) | |
222 | 225 | { |
223 | 226 | if (!memcmp (argv[6], "SCAN", 4)) scan_sw = TRUE; |
224 | 227 | else if (!memcmp (argv[6], "NO_DAEMON", 9)) no_daemon = TRUE; |
@@ -228,13 +231,13 @@ os_ok: | ||
228 | 231 | zone_call[7] = 'G'; |
229 | 232 | } |
230 | 233 | } |
231 | - if (argc == 7) | |
234 | + if (argc == 8) | |
232 | 235 | { |
233 | 236 | if (!memcmp (argv[7], "SCAN", 4)) scan_sw = TRUE; |
234 | 237 | else if (!memcmp (argv[7], "NO_DAEMON", 9)) no_daemon = TRUE; |
235 | 238 | } |
236 | 239 | |
237 | - if (argc >= 5) send_sw = TRUE; | |
240 | + if (argc >= 6) send_sw = TRUE; | |
238 | 241 | if (!scan_sw) |
239 | 242 | { |
240 | 243 | if (!no_daemon) ret = daemon(0, 0); |
@@ -236,7 +236,7 @@ void prase (char str[]) | ||
236 | 236 | active_col++; |
237 | 237 | } |
238 | 238 | else |
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", | |
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 | 240 | ip_addr, port, callsign, &rep_temp[8], zr_call, server_ip, call, &rep_temp[8]); |
241 | 241 | |
242 | 242 | goto mast_close; |
@@ -245,7 +245,7 @@ void prase (char str[]) | ||
245 | 245 | } |
246 | 246 | if (status) |
247 | 247 | { |
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", | |
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 | 249 | rpt1_call, rpt2_call, ur_call, my_call, ip_addr, port, callsign, zr_call, server_ip, call); |
250 | 250 | if (active_col == 0) |
251 | 251 | { |