]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd-capability-cleanup.patch
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 22 Jul 2015 19:35:38 +0000 (12:35 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 22 Jul 2015 19:35:38 +0000 (12:35 -0700)
commit14051b36154982e4027b62ba07eebcd0470dd969
treec27fc78323fe9222c4db3a8815c130f703a947de
parent54f41f07b7dd2e9d5cf4b4f01a3bc7de283d6507
bgpd-capability-cleanup.patch

BGP: Make Capability handling a little more robust

This patch does two things:
- Returns the right sub error code when a malformed capability is rcvd
- Verifies that the capability length is a multiple of an individual unit

Signed-off-by: Dinesh G Dutt <ddutt@cumulusnetworks.com>
Reviewed-by: Vivek Venkataraman <vivek@cumulusnetworks.com>
bgpd/bgp_open.c
bgpd/bgp_packet.c
bgpd/bgpd.h