]> git.puffer.fish Git - mirror/frr.git/commit
BGP: Only accept prefixes for negotiated address families
authorvivek <vivek@cumulusnetworks.com>
Fri, 8 Jan 2016 06:14:38 +0000 (22:14 -0800)
committervivek <vivek@cumulusnetworks.com>
Fri, 8 Jan 2016 06:14:38 +0000 (22:14 -0800)
commit4b150ae78a51298c07de1bde940a19f1bd4a4d1e
tree1d5dacaf5f44818272bfcf6bfb82dffb224bebda
parenta656dafaf2bab7e1e3ee1f9d68fe521d86ace958
BGP: Only accept prefixes for negotiated address families

When handling a received Update message, only process and store the
prefixes if the corresponding address family has been negotiated with
the peer. Prior to this change, the receive processing only checked
whether the address family was locally configured, trusting to the peer
to not advertise prefixes for an address family that has not been
negotiated. Most implementations conform to this but a misbehavior could
result in processing and memory overhead.

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
Ticket: CM-5594
Reviewed By: CCR-3946
Testing Done: Sanity test (good case)
bgpd/bgp_packet.c