From: Philippe Guibert Date: Mon, 23 Jan 2017 13:42:02 +0000 (+0100) Subject: tests: update bgp_nlri_parse function usage in bgp testing X-Git-Tag: frr-3.0-branchpoint~29^2~51 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=b2055847534536fcb6503a433e71b68df14b1d22;p=matthieu%2Ffrr.git tests: update bgp_nlri_parse function usage in bgp testing Because the bgp_nlri_parse function has been extended with one parameter, when doing bgp testing against some packets, the correct call to bgp_nlri_parse must be done. Signed-off-by: Philippe Guibert --- diff --git a/tests/bgpd/test_mp_attr.c b/tests/bgpd/test_mp_attr.c index 397612c315..96a0e0759d 100644 --- a/tests/bgpd/test_mp_attr.c +++ b/tests/bgpd/test_mp_attr.c @@ -725,9 +725,9 @@ parse_test (struct peer *peer, struct test_segment *t, int type) if (!parse_ret) { if (type == BGP_ATTR_MP_REACH_NLRI) - nlri_ret = bgp_nlri_parse (peer, &attr, &nlri); + nlri_ret = bgp_nlri_parse (peer, &attr, &nlri, 0); else - nlri_ret = bgp_nlri_parse (peer, NULL, &nlri); + nlri_ret = bgp_nlri_parse (peer, &attr, &nlri, 1); } zlog_err("xxxxxxxxxxxxxxxx nlri ret %u", nlri_ret); handle_result (peer, t, parse_ret, nlri_ret);