summaryrefslogtreecommitdiffstats
path: root/tests/bgpd/test_packet.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2019-08-01 18:50:56 +0200
committerDavid Lamparter <equinox@diac24.net>2019-12-06 15:13:32 +0100
commit5d5393b943c500c63770a06df9036a1558d0f100 (patch)
tree8fd004831109cc803cf92ad81d4afbf66038676d /tests/bgpd/test_packet.c
parentbgpd: move config-write to bgp_vty.c (diff)
downloadfrr-5d5393b943c500c63770a06df9036a1558d0f100.tar.xz
frr-5d5393b943c500c63770a06df9036a1558d0f100.zip
bgpd: use new defaults system (v2)
This moves all the DFLT_BGP_* stuff over to the new defaults mechanism. bgp_timers_nondefault() added to get better file-scoping. v2: moved everything into bgp_vty.c so that the core BGP code is independent of the CLI-specific defaults. This should make the future northbound conversion easier. Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'tests/bgpd/test_packet.c')
-rw-r--r--tests/bgpd/test_packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bgpd/test_packet.c b/tests/bgpd/test_packet.c
index 7a038fb02..d2c093fbe 100644
--- a/tests/bgpd/test_packet.c
+++ b/tests/bgpd/test_packet.c
@@ -63,7 +63,7 @@ int main(int argc, char *argv[])
vrf_init(NULL, NULL, NULL, NULL, NULL);
bgp_option_set(BGP_OPT_NO_LISTEN);
- if (bgp_get(&bgp, &asn, NULL, BGP_INSTANCE_TYPE_DEFAULT))
+ if (bgp_get(&bgp, &asn, NULL, BGP_INSTANCE_TYPE_DEFAULT) < 0)
return -1;
peer = peer_create_accept(bgp);