]> git.proxmox.com Git - mirror_frr.git/commit
tests: Fix crash in test_mp_attr
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 11 Apr 2018 12:56:44 +0000 (08:56 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 25 Apr 2018 16:39:17 +0000 (12:39 -0400)
commitd0fa84c228262e18d14207af4cb7b4e0a8ffdafb
tree034e7aee0a5eb9dc1911a698919e77396a2a574c
parentbb4f6190d9cda8c6f4452ace0ad1c69886ccad2d
tests: Fix crash in test_mp_attr

Some recent changes in BGP now require that the
peer's nexthop have a valid ifp when we are looking
at:

case BGP_ATTR_NHLEN_IPV6_GLOBAL_AND_LL:
case BGP_ATTR_NHLEN_VPNV6_GLOBAL_AND_LL:

This assumption makes sense for this type of Nexthop Attribute.
So for the test let's jimmy up a `fake` enough interface pointer
so that the actual test we can focus on what we are actually
testing.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
tests/bgpd/test_mp_attr.c