From 0b228fca04c8a9a81af6a4973877ceba9aede3f0 Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Sun, 10 Nov 2019 02:06:07 +0100 Subject: [PATCH] BGP: Add option to enforce first AS in AS_PATH This is optional check described in RFC 4271. Although this can be also done by filters, it is widely implemented option in BGP implementations. Thanks to Eugene Bogomazov for the original patch. --- doc/bird.sgml | 9 +++++++++ proto/bgp/attrs.c | 24 +++++++++++++++++++----- proto/bgp/bgp.c | 3 +++ proto/bgp/bgp.h | 1 + proto/bgp/config.Y | 4 +++- 5 files changed, 35 insertions(+), 6 deletions(-) diff --git a/doc/bird.sgml b/doc/bird.sgml index d2a4fc143..aeea613fd 100644 --- a/doc/bird.sgml +++ b/doc/bird.sgml @@ -2405,6 +2405,15 @@ using the following configuration parameters: malformed and corresponding BGP updates are treated as withdraws. Default: on. +