summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/bgpd/test_mp_attr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/bgpd/test_mp_attr.c b/tests/bgpd/test_mp_attr.c
index 34c35cfcc..9e0cb1f5c 100644
--- a/tests/bgpd/test_mp_attr.c
+++ b/tests/bgpd/test_mp_attr.c
@@ -1033,6 +1033,7 @@ static as_t asn = 100;
int main(void)
{
+ struct interface ifp;
struct peer *peer;
int i, j;
@@ -1065,6 +1066,9 @@ int main(void)
peer->status = Established;
peer->curr = stream_new(BGP_MAX_PACKET_SIZE);
+ ifp.ifindex = 0;
+ peer->nexthop.ifp = &ifp;
+
for (i = AFI_IP; i < AFI_MAX; i++)
for (j = SAFI_UNICAST; j < SAFI_MAX; j++) {
peer->afc[i][j] = 1;