• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Révision14482b60cddceb9661b9ad2d6af99736516d93a9 (tree)
l'heure2019-07-24 22:20:29
AuteurSatoshi Yasuda <7m3tjz@jarl...>
CommiterSatoshi Yasuda

Message de Log

modified: dmonitor_utils.c
modified: repeater_mon.c
modified: repeater_mon.h
modified: repeater_scan.c

Change Summary

Modification

--- a/config.h
+++ b/config.h
@@ -86,7 +86,7 @@
8686 #define PACKAGE_NAME "dmonitor"
8787
8888 /* Define to the full name and version of this package. */
89-#define PACKAGE_STRING "dmonitor 00.49"
89+#define PACKAGE_STRING "dmonitor 00.50"
9090
9191 /* Define to the one symbol short name of this package. */
9292 #define PACKAGE_TARNAME "dmonitor"
@@ -95,10 +95,10 @@
9595 #define PACKAGE_URL ""
9696
9797 /* Define to the version of this package. */
98-#define PACKAGE_VERSION "00.49"
98+#define PACKAGE_VERSION "00.50"
9999
100100 /* Define to 1 if you have the ANSI C header files. */
101101 #define STDC_HEADERS 1
102102
103103 /* Version number of package */
104-#define VERSION "00.49"
104+#define VERSION "00.50"
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
11 #! /bin/sh
22 # Guess values for system-dependent variables and create Makefiles.
3-# Generated by GNU Autoconf 2.69 for dmonitor 00.49.
3+# Generated by GNU Autoconf 2.69 for dmonitor 00.50.
44 #
55 # Report bugs to <7m3tjz@jarl.com>.
66 #
@@ -580,8 +580,8 @@ MAKEFLAGS=
580580 # Identity of this package.
581581 PACKAGE_NAME='dmonitor'
582582 PACKAGE_TARNAME='dmonitor'
583-PACKAGE_VERSION='00.49'
584-PACKAGE_STRING='dmonitor 00.49'
583+PACKAGE_VERSION='00.50'
584+PACKAGE_STRING='dmonitor 00.50'
585585 PACKAGE_BUGREPORT='7m3tjz@jarl.com'
586586 PACKAGE_URL=''
587587
@@ -1277,7 +1277,7 @@ if test "$ac_init_help" = "long"; then
12771277 # Omit some internal or obsolete options to make the list less imposing.
12781278 # This message is too long to be a string in the A/UX 3.1 sh.
12791279 cat <<_ACEOF
1280-\`configure' configures dmonitor 00.49 to adapt to many kinds of systems.
1280+\`configure' configures dmonitor 00.50 to adapt to many kinds of systems.
12811281
12821282 Usage: $0 [OPTION]... [VAR=VALUE]...
12831283
@@ -1344,7 +1344,7 @@ fi
13441344
13451345 if test -n "$ac_init_help"; then
13461346 case $ac_init_help in
1347- short | recursive ) echo "Configuration of dmonitor 00.49:";;
1347+ short | recursive ) echo "Configuration of dmonitor 00.50:";;
13481348 esac
13491349 cat <<\_ACEOF
13501350
@@ -1435,7 +1435,7 @@ fi
14351435 test -n "$ac_init_help" && exit $ac_status
14361436 if $ac_init_version; then
14371437 cat <<\_ACEOF
1438-dmonitor configure 00.49
1438+dmonitor configure 00.50
14391439 generated by GNU Autoconf 2.69
14401440
14411441 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1804,7 +1804,7 @@ cat >config.log <<_ACEOF
18041804 This file contains any messages produced by compilers while
18051805 running configure, to aid debugging if configure makes a mistake.
18061806
1807-It was created by dmonitor $as_me 00.49, which was
1807+It was created by dmonitor $as_me 00.50, which was
18081808 generated by GNU Autoconf 2.69. Invocation command line was
18091809
18101810 $ $0 $@
@@ -2670,7 +2670,7 @@ fi
26702670
26712671 # Define the identity of the package.
26722672 PACKAGE='dmonitor'
2673- VERSION='00.49'
2673+ VERSION='00.50'
26742674
26752675
26762676 cat >>confdefs.h <<_ACEOF
@@ -4768,7 +4768,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47684768 # report actual input values of CONFIG_FILES etc. instead of their
47694769 # values after options handling.
47704770 ac_log="
4771-This file was extended by dmonitor $as_me 00.49, which was
4771+This file was extended by dmonitor $as_me 00.50, which was
47724772 generated by GNU Autoconf 2.69. Invocation command line was
47734773
47744774 CONFIG_FILES = $CONFIG_FILES
@@ -4834,7 +4834,7 @@ _ACEOF
48344834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48354835 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
48364836 ac_cs_version="\\
4837-dmonitor config.status 00.49
4837+dmonitor config.status 00.50
48384838 configured by $0, generated by GNU Autoconf 2.69,
48394839 with options \\"\$ac_cs_config\\"
48404840
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
1+dmonitor (00.50) unstable; urgency=low
2+
3+ * update Closes: (#046)
4+ * keep alive time changed 5 to 10
5+
6+ -- Satoshi Yasuda <7m3tjz@jarl.com> Thu, 18 Jul 2019 20:29:00 +0900
7+
18 dmonitor (00.49) unstable; urgency=low
29
310 * update Closes: (#045)
--- a/debian/dmonitor/DEBIAN/control
+++ b/debian/dmonitor/DEBIAN/control
@@ -1,5 +1,5 @@
11 Package: dmonitor
2-Version: 00.49
2+Version: 00.50
33 Architecture: armhf
44 Maintainer: Satoshi Yasuda <7m3tjz@jarl.com>
55 Installed-Size: 105
--- a/debian/dmonitor/DEBIAN/md5sums
+++ b/debian/dmonitor/DEBIAN/md5sums
@@ -1,9 +1,9 @@
11 b06db91f69046646316dbe873cab1658 usr/bin/auto_repmon
2-9ba470908b4d7166489ce1c12cd4020b usr/bin/dmonitor
2+808e36d978623f9210338d5b2c707248 usr/bin/dmonitor
33 6d4fb928a92fe66a0cfde11e70d8cdf2 usr/bin/repeater_mon
44 7a467dfff10c33523ed2bcf2a7f6e91b usr/bin/repeater_scan
55 fd7d34a7321d40fd2c1c039565778ec9 usr/bin/rig_port_check
6-ce08bced1e077eda1614f2ae9a34bd7a usr/share/doc/dmonitor/changelog.gz
6+03b539e389ee0b4b45280185f8f58f5b usr/share/doc/dmonitor/changelog.gz
77 50704bff5afce197b1ea87f23e44f64a usr/share/doc/dmonitor/copyright
88 9a0eeb38ddbd0829e064a5fdb29dc87f var/www/cgi-bin/add_buffer
99 c2cb1bcb277afdc44fd678198404b57e var/www/cgi-bin/kill_dmon
Binary files a/debian/dmonitor/usr/bin/dmonitor and b/debian/dmonitor/usr/bin/dmonitor differ
Binary files a/debian/dmonitor/usr/share/doc/dmonitor/changelog.gz and b/debian/dmonitor/usr/share/doc/dmonitor/changelog.gz differ
--- a/debian/files
+++ b/debian/files
@@ -1,3 +1,3 @@
1-dmonitor-dbgsym_00.49_armhf.deb debug extra
2-dmonitor_00.49_armhf.buildinfo hamradio optional
3-dmonitor_00.49_armhf.deb hamradio optional
1+dmonitor-dbgsym_00.50_armhf.deb debug extra
2+dmonitor_00.50_armhf.buildinfo hamradio optional
3+dmonitor_00.50_armhf.deb hamradio optional
--- a/dmonitor_utils.c
+++ b/dmonitor_utils.c
@@ -103,19 +103,6 @@ void send_keep_alive(void)
103103 struct hostent *host;
104104
105105 in_addr.sin_family = AF_INET;
106- in_addr.sin_port = htons(dest_inet_port);
107- in_addr.sin_addr.s_addr = inet_addr(dest_address);
108- if (in_addr.sin_addr.s_addr == 0xffffffff)
109- {
110- host = gethostbyname(dest_address);
111- if (host == NULL) return;
112- in_addr.sin_addr.s_addr = *(unsigned int *)host->h_addr_list[0];
113- }
114- sprintf (&buff[4], "%s", inet_ntoa (in_addr.sin_addr));
115- sendto(in_addr_sock, &buff[4], 16, 0, (struct sockaddr *)&in_addr, sizeof(in_addr));
116- time (&send_time);
117-
118- in_addr.sin_family = AF_INET;
119106 in_addr.sin_port = htons(hole_punch_port);
120107 in_addr.sin_addr.s_addr = inet_addr(hole_punch_server);
121108 if (in_addr.sin_addr.s_addr == 0xffffffff)
@@ -127,6 +114,18 @@ void send_keep_alive(void)
127114 memcpy (buff, "HPCH", 4);
128115 sendto(in_addr_sock, buff, 20, 0,
129116 (struct sockaddr *)&in_addr, sizeof(in_addr));
117+ in_addr.sin_family = AF_INET;
118+ in_addr.sin_port = htons(dest_inet_port);
119+ in_addr.sin_addr.s_addr = inet_addr(dest_address);
120+ if (in_addr.sin_addr.s_addr == 0xffffffff)
121+ {
122+ host = gethostbyname(dest_address);
123+ if (host == NULL) return;
124+ in_addr.sin_addr.s_addr = *(unsigned int *)host->h_addr_list[0];
125+ }
126+ sprintf (&buff[4], "%s", inet_ntoa (in_addr.sin_addr));
127+ sendto(in_addr_sock, &buff[4], 16, 0, (struct sockaddr *)&in_addr, sizeof(in_addr));
128+ time (&send_time);
130129 }
131130
132131 void inet_send_buff_set(void)
--- a/repeater_mon.c
+++ b/repeater_mon.c
@@ -233,7 +233,20 @@ void main(int argc, char** argv)
233233 addr.sin_addr.s_addr = *(unsigned int *)host->h_addr_list[0];
234234 }
235235
236- connect(sd, (struct sockaddr *)&addr, sizeof(struct sockaddr_in));
236+ ret = -1;
237+ while (ret == -1)
238+ {
239+ ret = connect(sd, (struct sockaddr *)&addr, sizeof(struct sockaddr_in));
240+ if (ret == -1)
241+ {
242+ if (errno == ECONNREFUSED)
243+ {
244+ sleep (1);
245+ }
246+ else
247+ return;
248+ }
249+ }
237250
238251 if(send(sd, "REQ", 3, 0) < 0) {
239252 perror("send");
--- a/repeater_mon.h
+++ b/repeater_mon.h
@@ -11,6 +11,7 @@
1111 #include <unistd.h>
1212 #include <time.h>
1313 #include <signal.h>
14+#include <errno.h>
1415
1516 #define HOLE_PUNCH_SERVER "hole-punch.d-star.info"
1617 #define JSON_PORT 30011 // json port
--- a/repeater_scan.c
+++ b/repeater_scan.c
@@ -152,7 +152,20 @@ int main(int argc, char** argv)
152152 addr.sin_addr.s_addr = *(unsigned int *)host->h_addr_list[0];
153153 }
154154
155- connect(sd, (struct sockaddr *)&addr, sizeof(struct sockaddr_in));
155+ ret = -1;
156+ while (ret == -1)
157+ {
158+ ret = connect(sd, (struct sockaddr *)&addr, sizeof(struct sockaddr_in));
159+ if (ret == -1)
160+ {
161+ if (errno == ECONNREFUSED)
162+ {
163+ sleep (1);
164+ }
165+ else
166+ return -1;
167+ }
168+ }
156169
157170 if(send(sd, "REQ", 3, 0) < 0) {
158171 perror("send");