version 1.1.1.2, 2012/10/09 09:22:29
|
version 1.1.1.3, 2013/07/21 23:54:40
|
Line 8
|
Line 8
|
#include "bgpd/bgpd.h" |
#include "bgpd/bgpd.h" |
#include "bgpd/bgp_open.h" |
#include "bgpd/bgp_open.h" |
#include "bgpd/bgp_debug.h" |
#include "bgpd/bgp_debug.h" |
|
#include "bgpd/bgp_packet.h" |
|
|
#define VT100_RESET "\x1b[0m" |
#define VT100_RESET "\x1b[0m" |
#define VT100_RED "\x1b[31m" |
#define VT100_RED "\x1b[31m" |
Line 35 static struct test_segment {
|
Line 36 static struct test_segment {
|
#define SHOULD_PARSE 0 |
#define SHOULD_PARSE 0 |
#define SHOULD_ERR -1 |
#define SHOULD_ERR -1 |
int parses; /* whether it should parse or not */ |
int parses; /* whether it should parse or not */ |
int peek_for; /* what peek_for_as4_capability should say */ | as_t peek_for; /* what peek_for_as4_capability should say */ |
|
|
/* AFI/SAFI validation */ |
/* AFI/SAFI validation */ |
int validate_afi; |
int validate_afi; |
Line 617 main (void)
|
Line 618 main (void)
|
|
|
master = thread_master_create (); |
master = thread_master_create (); |
bgp_master_init (); |
bgp_master_init (); |
|
bgp_option_set (BGP_OPT_NO_LISTEN); |
|
|
if (fileno (stdout) >= 0) |
if (fileno (stdout) >= 0) |
tty = isatty (fileno (stdout)); |
tty = isatty (fileno (stdout)); |
Line 625 main (void)
|
Line 627 main (void)
|
return -1; |
return -1; |
|
|
peer = peer_create_accept (bgp); |
peer = peer_create_accept (bgp); |
peer->host = "foo"; | peer->host = (char *) "foo"; |
|
|
for (i = AFI_IP; i < AFI_MAX; i++) |
for (i = AFI_IP; i < AFI_MAX; i++) |
for (j = SAFI_UNICAST; j < SAFI_MAX; j++) |
for (j = SAFI_UNICAST; j < SAFI_MAX; j++) |