]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_packet.c
bgpd: fix error response to invalid BGP version number
authorLeonid Rosenboim <lrosenbo@wrs.com>
Fri, 7 Dec 2012 21:25:00 +0000 (21:25 +0000)
committerDavid Lamparter <equinox@opensourcerouting.org>
Mon, 14 Jan 2013 16:58:42 +0000 (17:58 +0100)
commita689e6a9f470d2a72493b907c94ef23516bbbda6
tree90dc123c2f7528c59e08c9aa492dfd4a92603aed
parenta0de1d16cd00694b07b266d4a5dae5985e9072ff
bgpd: fix error response to invalid BGP version number

BGP4-ANVL 20.1 ANVL tries to open BGP with version 5 and expects correct
notification in response. Quagga sends notification, but with incorrect
information in it.

The data needs to be a 2-byte value, and for now we respond with 0004 for any
peer version other than 4.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
bgpd/bgp_packet.c