diff options
| author | Avneesh Sachdev <avneesh@opensourcerouting.org> | 2012-04-09 00:25:15 -0700 | 
|---|---|---|
| committer | Avneesh Sachdev <avneesh@opensourcerouting.org> | 2012-04-09 00:25:15 -0700 | 
| commit | 3cf6c2b4e43f44a977d218c96c26250654ae333e (patch) | |
| tree | e017cde2015fbf3ef6c250327428d7c6152aa8f7 /tests/bgp_mp_attr_test.c | |
| parent | 01d7ff0a2166a422c56bd26f04fc22832a9e690b (diff) | |
| parent | e96b312150d8e376c1ef463793d1929eca3618d5 (diff) | |
Merge branch 'quagga' into google-bgp-multipath
Conflicts:
	bgpd/bgp_route.c
Diffstat (limited to 'tests/bgp_mp_attr_test.c')
| -rw-r--r-- | tests/bgp_mp_attr_test.c | 16 | 
1 files changed, 8 insertions, 8 deletions
| diff --git a/tests/bgp_mp_attr_test.c b/tests/bgp_mp_attr_test.c index dde0df2f..9cbe9f22 100644 --- a/tests/bgp_mp_attr_test.c +++ b/tests/bgp_mp_attr_test.c @@ -286,10 +286,10 @@ static struct test_segment {      SHOULD_ERR,      AFI_IP, SAFI_UNICAST, VALID_AFI,    }, -  { "IPv4-vpnv4", -    "IPv4/VPNv4 MP Reach, RD, Nexthop, 3 NLRIs",  +  { "IPv4-MLVPN", +    "IPv4/MPLS-labeled VPN MP Reach, RD, Nexthop, 3 NLRIs",       { -      /* AFI / SAFI */		0x0, AFI_IP, BGP_SAFI_VPNV4, +      /* AFI / SAFI */		0x0, AFI_IP, SAFI_MPLS_LABELED_VPN,        /* nexthop bytes */	12,        /* RD */			0, 0, 1, 2,                                  0, 0xff, 3, 4, @@ -409,10 +409,10 @@ static struct test_segment mp_unreach_segments [] =      SHOULD_ERR,      AFI_IP, SAFI_UNICAST, VALID_AFI,    }, -  { "IPv4-unreach-vpnv4", -    "IPv4/VPNv4 MP Unreach, RD, 3 NLRIs",  +  { "IPv4-unreach-MLVPN", +    "IPv4/MPLS-labeled VPN MP Unreach, RD, 3 NLRIs",       { -      /* AFI / SAFI */		0x0, AFI_IP, BGP_SAFI_VPNV4, +      /* AFI / SAFI */		0x0, AFI_IP, SAFI_MPLS_LABELED_VPN,        /* nexthop bytes */	12,        /* RD */			0, 0, 1, 2,                                  0, 0xff, 3, 4, @@ -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)      { | 
