summaryrefslogtreecommitdiffstats
path: root/bgpd
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2016-12-07 17:24:05 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2016-12-09 17:36:25 +0100
commit52c6b0e20a94e29126e3ddb180704d9d4c87e14f (patch)
treeb3b6f93bac172c24c738152991ff22ffbb66c96f /bgpd
parent*: coccinelle-replace vty->index (diff)
downloadfrr-52c6b0e20a94e29126e3ddb180704d9d4c87e14f.tar.xz
frr-52c6b0e20a94e29126e3ddb180704d9d4c87e14f.zip
*: fix remaining vty->index & add coccinelle patch
Fix instances that the coccinelle patch didn't catch (or which coccinelle couldn't parse), and add the patch file for future posterity (and application to yet-unmerged branches). Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/rfp-example/librfp/rfp_example.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/rfp-example/librfp/rfp_example.c b/bgpd/rfp-example/librfp/rfp_example.c
index 614e2464a..b7dfe7987 100644
--- a/bgpd/rfp-example/librfp/rfp_example.c
+++ b/bgpd/rfp-example/librfp/rfp_example.c
@@ -45,7 +45,7 @@ DEFUN (rfp_example_config_value,
{
uint32_t value = 0;
struct rfp_instance_t *rfi = NULL;
- rfi = rfapi_get_rfp_start_val (vty->index); /* index=bgp for BGP_NODE */
+ rfi = rfapi_get_rfp_start_val (VTY_GET_CONTEXT (bgp)); /* BGP_NODE */
assert (rfi != NULL);
VTY_GET_INTEGER ("Example value", value, argv[2]->arg);