Skip to content

Commit a66c356

Browse files
hessuPhirePhly
authored andcommitted
Removed source code comments which had TODO/FIXME items which should not be done.
iGate should not drop removed duplicates or filter packets it deems incorrect by content, as that is error-prone and hides broken packets in a way that no-one can diagnose them.
1 parent 7a8bc96 commit a66c356

File tree

2 files changed

+12
-19
lines changed

2 files changed

+12
-19
lines changed

igate.c

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -312,25 +312,18 @@ void igate_to_aprsis(const char *portname, const int tncid, const char *tnc2buf,
312312
goto redo_frame_filter;
313313
}
314314

315-
316-
317-
/* TODO: Verify message being of recognized APRS packet type */
318-
/* '\0x60', '\0x27': MIC-E, len >= 9
319-
* '!','=','/','{': Normal or compressed location packet..
320-
* '$': NMEA data, if it begins as '$GP'
321-
* '$': WX data (maybe) if not NMEA data
322-
* ';': Object data, len >= 31
323-
* ')': Item data, len >= 18
324-
* ':': message, bulletin or aanouncement, len >= 11
325-
* '<': Station Capabilities, len >= 2
326-
* '>': Status report
327-
* '}': Third-party message
328-
* ... and many more ...
315+
/* At this point, the packet is good for igating. The receiving igate
316+
* must not perform duplicate filtering, since the APRS-IS server
317+
* may well use those duplicates for something, such as propagation
318+
* analysis or smarter message routing. The APRS-IS server will do
319+
* duplicate filtering just fine.
320+
*
321+
* The receiving igate should also not validate or limit the packet
322+
* format/contents either, because that would impose limits on
323+
* future packet formats, experiments and improvements. The
324+
* packet's sender and recipient should agree on the format only.
329325
*/
330-
331-
// FIXME: Duplicate filter messages to APRSIS
332326

333-
334327
/* _NO_ ending CRLF, the APRSIS subsystem adds it. */
335328

336329
/*

kiss.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,8 @@ static int kissprocess(struct serialport *S)
430430
S->rdline[1..S->rdlinelen-1]
431431
*/
432432

433-
/* Send the frame to APRS-IS, return 1 if valid AX.25 UI message, does not
434-
validate against valid APRS message rules... (TODO: it could do that too) */
433+
/* Send the frame to APRS-IS, return 1 if valid AX.25 UI message, must not
434+
validate against valid APRS message rules; not igate's job to judge */
435435

436436
// The AX25_TO_TNC2 does validate the AX.25 packet,
437437
// converts it to "TNC2 monitor format" and sends it to

0 commit comments

Comments
 (0)