diff options
author | Denis Ovsienko <infrastation@yandex.ru> | 2011-10-10 19:08:33 +0200 |
---|---|---|
committer | Denis Ovsienko <infrastation@yandex.ru> | 2011-10-17 17:07:02 +0200 |
commit | 565b828dc00cafd477dd69ce15f0f551ece67710 (patch) | |
tree | e1d5c6c38f89b6d022339df14c9b5224de7c0ca9 /tests | |
parent | bgpd: fix spelling of CLUSTER_LIST (diff) | |
download | frr-565b828dc00cafd477dd69ce15f0f551ece67710.tar.xz frr-565b828dc00cafd477dd69ce15f0f551ece67710.zip |
bgpd: add flag checks for MP_(UN)REACH_NLRI
* bgp_attr.[ch]
* bgp_mp_reach_parse(): add extra arguments and a uniform flag
check block
* bgp_mp_unreach_parse(): idem
* bgp_attr_parse(): provide extra arguments
* bgp_mp_attr_test.c
* parse_test(): justify respective calls
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bgp_mp_attr_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/bgp_mp_attr_test.c b/tests/bgp_mp_attr_test.c index d6e9f0ce5..9cbe9f224 100644 --- a/tests/bgp_mp_attr_test.c +++ b/tests/bgp_mp_attr_test.c @@ -449,9 +449,9 @@ parse_test (struct peer *peer, struct test_segment *t, int type) printf ("%s: %s\n", t->name, t->desc); if (type == BGP_ATTR_MP_REACH_NLRI) - ret = bgp_mp_reach_parse (peer, t->len, &attr, &nlri); + ret = bgp_mp_reach_parse (peer, t->len, &attr, BGP_ATTR_FLAG_OPTIONAL, BGP_INPUT_PNT (peer), &nlri); else - ret = bgp_mp_unreach_parse (peer, t->len, &nlri); + ret = bgp_mp_unreach_parse (peer, t->len, BGP_ATTR_FLAG_OPTIONAL, BGP_INPUT_PNT (peer), &nlri); if (!ret) { |