[aprssig] Escaping \r\n in packets for APRS-IS

Iain R. Learmonth irl at hambsd.org
Fri May 8 10:42:52 EDT 2020


Hi,

On 08/05/2020 15:37, spam8mybrain wrote:
> Uh, oh. Not cool. I just checked my APRS-IS and SSL-APRS-IS port drivers
> in YAAC, and I send the packet as-is byte-for-byte, assuming it is only
> one line with no embedded control characters.

Ooops.

> Hmmm... in one of my displays, I replace all the ASCII control
> characters (byte values 0x00 through 0x1F) with their corresponding
> display glyphs in Unicode (\u2400 through \u241F), so they can be
> interpreted properly by the user. But that doesn't fix I-gating.

That would break MIC-E packets, I'm going with what Dire Wolf and Xastir
do which is to treat either a \r or \n as the end of the packet if
found, and then do the normal checks before gating.

It's only \r and \n that have special meaning to the server, all other
characters are fine.

Thanks,
Iain MM0ROR.

-- 
https://hambsd.org/



More information about the aprssig mailing list