• R/O
  • HTTP
  • SSH
  • HTTPS

multi_forward: Commit


Commit MetaInfo

Revision7686e070eddef108f7a6208cdc401715d2a9c2d0 (tree)
Zeit2019-10-24 16:50:13
AutorSatoshi Yasuda <7m3tjz@jarl...>
CommiterSatoshi Yasuda

Log Message

modified: forward_in.c

Ändern Zusammenfassung

Diff

--- a/forward_in.c
+++ b/forward_in.c
@@ -50,15 +50,6 @@ int forward_resend (void)
5050 fflush (log_file);
5151 return FALSE;
5252 }
53-#if 0
54- if (memcmp (inet_ntoa(fwd_addr.sin_addr), forward_addr, strlen(forward_addr)))
55- {
56- time(&atime);
57- fprintf (log_file, "%24.24s illigal access from %s %d\n", ctime(&atime), inet_ntoa(fwd_addr.sin_addr), fwd_addr.sin_port);
58- fflush (log_file);
59- return TRUE;
60- }
61-#endif
6253
6354 if (length < 10) return TRUE;
6455
@@ -451,26 +442,12 @@ void multi_read(struct MultiConnectTable *nextTable)
451442 if ((multi_buff.d_packet.trunk.FrameSeq & 0x1f) > 0x14) return;
452443 goto send;
453444 }
454-#if 0
455- else if ((length == 26) && (multi_buff.d_packet.l[1] == 0x10))
456- {
457- ret = sendto (fwd_sd, &multi_buff, length, 0,
458- (struct sockaddr *)&fwd_addr, sizeof(fwd_addr));
459- if (ret == -1)
460- {
461- time(&atime);
462- fprintf (log_file, "%24.24s mult->fwd error %s\n", ctime(&atime), strerror(errno));
463- fflush (log_file);
464- }
465- }
466-#endif
467445 return;
468446 send:
469447 ar_call_next = ar_callsign_pnt;
470448 while (ar_call_next)
471449 {
472450 if (!memcmp (ar_call_next->FrameID, multi_buff.d_packet.trunk.FrameID, 2))
473- //&& !memcmp (&ar_call_next->addr, &multi_addr, sizeof(struct sockaddr_in)))
474451 {
475452 time (&ar_call_next->status_time);
476453 multi_buff.d_packet.m[0] = (fwd_send_seq >> 8) & 0xff;
Show on old repository browser