nanog mailing list archives

Re: control characters in BGP shutdown communication(RFC 9003) messages and NETCONF


From: Martin Tonusoo via NANOG <nanog () lists nanog org>
Date: Tue, 9 Sep 2025 00:52:04 +0300

Job,

If I worked at Juniper/HPE ... I'd use something like strnvis() to
sanitize the (untrusted) network input contained within a Shutdown
Communication. See the documentation here https://man.openbsd.org/vis.3
This is what OpenBGPD uses in order to avoid logging raw control
character sequences into the router's syslog facility.

Thanks. For the sake of completeness, Junos appears to escape at least
some control characters in logs using caret notation. For example,
0x0b (vertical tab) in cease NOTIFICATION message is represented as
0x5e 0x4b (^K) in log message and 0x0d (carriage return) as 0x5e 0x4d
(^M). This formatting is present in both local log files and messages
forwarded to a syslog collector.


Yang,

Apologies for the trouble.

No worries.


Martin
_______________________________________________
NANOG mailing list 
https://lists.nanog.org/archives/list/nanog () lists nanog org/message/KQQ7UBRNHZSIEUHPWL2TXGEMI6ODJZP6/


Current thread: