Index | Thread | Search

From:
Claudio Jeker <cjeker@diehard.n-r-g.com>
Subject:
bgpd: kill old aspa-set provider-as code that includes an AFI
To:
tech@openbsd.org
Date:
Mon, 21 Sep 2026 16:00:39 +0200

Download raw body.

Thread
This has been dead for a long time and I think it is time to burn it
properly. Kill the backwards compat code that allowed loading old
rpki-client output files that included an AFI in the provider-as list.

-- 
:wq Claudio

Index: parse.y
===================================================================
RCS file: /cvs/src/usr.sbin/bgpd/parse.y,v
diff -u -p -r1.504 parse.y
--- parse.y	30 Aug 2026 23:43:22 -0000	1.504
+++ parse.y	21 Sep 2026 13:56:46 -0000
@@ -668,12 +668,6 @@ aspa_tas	: as4number_any {
 			$$->as = $1;
 			$$->num = 1;
 		}
-		| as4number_any af {
-			if (($$ = calloc(1, sizeof(*$$))) == NULL)
-				fatal(NULL);
-			$$->as = $1;
-			$$->num = 1;
-		}
 		;
 
 rtr		: RTR address	{