version 1.1.1.1, 2012/02/21 17:26:11
|
version 1.1.1.2, 2012/10/09 09:22:29
|
Line 1
|
Line 1
|
|
/* this testcase is currently broken |
|
* -- 2012-05-01 David Lamparter <equinox@diac24.net> |
|
*/ |
|
int main() { return 0; } |
|
|
#include <zebra.h> |
#include <zebra.h> |
|
|
#include "vty.h" |
#include "vty.h" |
Line 24
|
Line 29
|
struct zebra_privs_t *bgpd_privs = NULL; |
struct zebra_privs_t *bgpd_privs = NULL; |
struct thread_master *master = NULL; |
struct thread_master *master = NULL; |
|
|
|
#if 0 |
static int failed = 0; |
static int failed = 0; |
static int tty = 0; |
static int tty = 0; |
|
|
Line 286 static struct test_segment {
|
Line 292 static struct test_segment {
|
SHOULD_ERR, |
SHOULD_ERR, |
AFI_IP, SAFI_UNICAST, VALID_AFI, |
AFI_IP, SAFI_UNICAST, VALID_AFI, |
}, |
}, |
{ "IPv4-vpnv4", | { "IPv4-MLVPN", |
"IPv4/VPNv4 MP Reach, RD, Nexthop, 3 NLRIs", | "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, |
/* nexthop bytes */ 12, |
/* RD */ 0, 0, 1, 2, |
/* RD */ 0, 0, 1, 2, |
0, 0xff, 3, 4, |
0, 0xff, 3, 4, |
Line 409 static struct test_segment mp_unreach_segments [] =
|
Line 415 static struct test_segment mp_unreach_segments [] =
|
SHOULD_ERR, |
SHOULD_ERR, |
AFI_IP, SAFI_UNICAST, VALID_AFI, |
AFI_IP, SAFI_UNICAST, VALID_AFI, |
}, |
}, |
{ "IPv4-unreach-vpnv4", | { "IPv4-unreach-MLVPN", |
"IPv4/VPNv4 MP Unreach, RD, 3 NLRIs", | "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, |
/* nexthop bytes */ 12, |
/* RD */ 0, 0, 1, 2, |
/* RD */ 0, 0, 1, 2, |
0, 0xff, 3, 4, |
0, 0xff, 3, 4, |
Line 449 parse_test (struct peer *peer, struct test_segment *t,
|
Line 455 parse_test (struct peer *peer, struct test_segment *t,
|
printf ("%s: %s\n", t->name, t->desc); |
printf ("%s: %s\n", t->name, t->desc); |
|
|
if (type == BGP_ATTR_MP_REACH_NLRI) |
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 |
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) |
if (!ret) |
{ |
{ |
Line 533 main (void)
|
Line 539 main (void)
|
printf ("failures: %d\n", failed); |
printf ("failures: %d\n", failed); |
return failed; |
return failed; |
} |
} |
|
#endif /* #if 0 */ |