• R/O
  • HTTP
  • SSH
  • HTTPS

multi_forward: Commit


Commit MetaInfo

Revision04ed01c873df57f8467ff52974afed0e4f35a1d0 (tree)
Time2019-09-11 10:20:40
AuthorSatoshi Yasuda <yasuda@jk1z...>
CommiterSatoshi Yasuda

Log Message

modified: forward_in.c
modified: multi_forward_utils.c

Change Summary

Incremental Difference

--- a/forward_in.c
+++ b/forward_in.c
@@ -321,11 +321,6 @@ void multi_connect (void)
321321 }
322322 if (length == 24)
323323 {
324- if (!memcmp (multi_buff.multi_buffer, "DISCONNECT", 10))
325- {
326- delete_MultiConnectTable (multi_addr);
327- return;
328- }
329324 if (!ja_check (&multi_buff.multi_buffer[16]))
330325 {
331326 time(&atime);
@@ -352,6 +347,11 @@ void multi_connect (void)
352347 #endif
353348
354349 next:
350+ if ((length == 24) && !memcmp(&multi_buff.multi_buffer, "DISCONNECT", 10))
351+ {
352+ delete_MultiConnectTable (multi_addr);
353+ return;
354+ }
355355 if (!memcmp (multi_buff.d_packet.id, "DSTR", 4))
356356 {
357357 if (((multi_buff.d_packet.c & C_MASK) == VOICE)
--- a/multi_forward_utils.c
+++ b/multi_forward_utils.c
@@ -92,6 +92,12 @@ void delete_MultiConnectTable (struct sockaddr_in multi_addr)
9292 {
9393 if (!memcmp (&multi_addr, &next->multi_addr, sizeof (multi_addr)))
9494 {
95+ fprintf (log_file, "%24.24s Disconnect from %8.8s %s(%d)\n",
96+ ctime(&cur_time),
97+ next->auth_callsign, inet_ntoa (next->multi_addr.sin_addr),
98+ next->multi_addr.sin_port);
99+ fflush (log_file);
100+
95101 Rp = next->Rp;
96102 while (Rp)
97103 {
Show on old repository browser