From 8f8671bcde738890d312ab91336f101465b3eeac Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Wed, 3 Jan 2018 15:44:05 +0100 Subject: [PATCH] Filter: Handle undefined BGP paths as empty The same is already done for clists. Also fixes defined() to work properly for paths and clists. --- doc/bird.sgml | 4 ++-- filter/filter.c | 28 +++++++++++++++++++++++----- 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/doc/bird.sgml b/doc/bird.sgml index c725081a..3a2607b4 100644 --- a/doc/bird.sgml +++ b/doc/bird.sgml @@ -1498,8 +1498,8 @@ if 1234 = i then printn "."; else { like it accesses variables. Attempts to access undefined attribute result in a runtime error; you can check if an attribute is defined by using the defined( attribute ) operator. One notable exception to this -rule are attributes of clist type, where undefined value is regarded as empty -clist for most purposes. +rule are attributes of bgppath and *clist types, where undefined value is +regarded as empty bgppath/*clist for most purposes.