AllStarLink / app_rpt

Refactoring and upgrade of AllStarLink's app_rpt, etc.
4 stars 2 forks source link

app_rpt.c: Add RPT_ALINKS and RPT_NUMALINKS #289

Closed tsawyer closed 4 months ago

tsawyer commented 4 months ago

Thanks to ASL2 PR by mkmer

RPT_ALINKS and RPT_NUMALINKS are not initialized at startup. Once a remote node connects/disconnects the vars become available. Until a connection, MANY errors to be logged like this: WARNING[627] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected '='TILDE, expecting $end; Input: when using an event test for remote adjacent nodes as found in https://wiki.allstarlink.org/wiki/Event_Management

Simply adding the vars at startup (just like RPT_LINKS and RPT_NUMLINKS) addresses the issue.

Appoligies for the whitespace stripping.