]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Adjust received prefix count only when we validate the nexthop
authorDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 29 Nov 2022 14:56:36 +0000 (16:56 +0200)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 29 Nov 2022 15:02:41 +0000 (17:02 +0200)
commitb381ed97a6a68f5f920c32f2495e116aadd78008
tree960fe54811bdebd394837b75d5fbfeed3083ad6a
parent7591803d8827e3e96f2b9721cf341a53e092a587
bgpd: Adjust received prefix count only when we validate the nexthop

bgp_pcount_adjust() is called only when calling bgp_path_info_set_flag().

Before this patch the pcount is not advanced before checking for overflow.

Additionally, print:

```
[RZMGQ-A03CG] 192.168.255.1(r1) rcvd UPDATE about 172.16.255.254/32 IPv4 unicast -- DENIED due to: maximum-prefix overflow
```

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
bgpd/bgp_route.c