From 63f1c4d918209ba4210024638011f7b9ccdd894b Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Tue, 14 Mar 2023 16:02:32 +0100 Subject: [PATCH 1/2] Use RTA_MAX_SIZE in rta_do_cow() This allows to modify MPLS label stack in filters. Fixes a bug in handling of 'gw_mpls' attribute. --- nest/rt-attr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nest/rt-attr.c b/nest/rt-attr.c index 7beb119b..25936d81 100644 --- a/nest/rt-attr.c +++ b/nest/rt-attr.c @@ -1264,7 +1264,7 @@ rta__free(rta *a) rta * rta_do_cow(rta *o, linpool *lp) { - rta *r = lp_alloc(lp, rta_size(o)); + rta *r = lp_alloc(lp, RTA_MAX_SIZE); memcpy(r, o, rta_size(o)); for (struct nexthop **nhn = &(r->nh.next), *nho = o->nh.next; nho; nho = nho->next) { From 06301a991d80597a2a0a9e449d0cdf4bc1eda6d1 Mon Sep 17 00:00:00 2001 From: Michal Rada Date: Tue, 17 Oct 2023 14:58:14 +0200 Subject: [PATCH 2/2] Doc: prefix match prefix pattern definition typo (in sets of prefixes definition) --- doc/bird.sgml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/bird.sgml b/doc/bird.sgml index f2063325..d2b6459b 100644 --- a/doc/bird.sgml +++ b/doc/bird.sgml @@ -1704,7 +1704,7 @@ in the foot). Prefix ip1/len1 matches prefix pattern ip2/len2{l,h} if the first min(len1, len2) bits of len1 <= ip1 <= len2. A valid prefix pattern + identical and l <= len1 <= h. A valid prefix pattern has to satisfy low <= high, but