diff options
author | David Lamparter <equinox@diac24.net> | 2016-12-07 17:15:32 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2016-12-09 17:36:25 +0100 |
commit | cdc2d7650764bda9b84c3a1c43f26b83fdcb767c (patch) | |
tree | 4a6391d630d7d140b31a4bc4dc5bc89c749614eb /ripngd | |
parent | lib: make qobj NULL-safe/aware (diff) | |
download | frr-cdc2d7650764bda9b84c3a1c43f26b83fdcb767c.tar.xz frr-cdc2d7650764bda9b84c3a1c43f26b83fdcb767c.zip |
*: coccinelle-replace vty->index
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ripngd')
-rw-r--r-- | ripngd/ripng_interface.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/ripngd/ripng_interface.c b/ripngd/ripng_interface.c index 8505fd4c2..1ac9e40f6 100644 --- a/ripngd/ripng_interface.c +++ b/ripngd/ripng_interface.c @@ -1012,10 +1012,9 @@ DEFUN (ipv6_ripng_split_horizon, "Routing Information Protocol\n" "Perform split horizon\n") { - struct interface *ifp; + VTY_DECLVAR_CONTEXT(interface, ifp); struct ripng_interface *ri; - ifp = vty->index; ri = ifp->info; ri->split_horizon = RIPNG_SPLIT_HORIZON; @@ -1030,10 +1029,9 @@ DEFUN (ipv6_ripng_split_horizon_poisoned_reverse, "Perform split horizon\n" "With poisoned-reverse\n") { - struct interface *ifp; + VTY_DECLVAR_CONTEXT(interface, ifp); struct ripng_interface *ri; - ifp = vty->index; ri = ifp->info; ri->split_horizon = RIPNG_SPLIT_HORIZON_POISONED_REVERSE; @@ -1049,10 +1047,9 @@ DEFUN (no_ipv6_ripng_split_horizon, "Perform split horizon\n" "With poisoned-reverse\n") { - struct interface *ifp; + VTY_DECLVAR_CONTEXT(interface, ifp); struct ripng_interface *ri; - ifp = vty->index; ri = ifp->info; ri->split_horizon = RIPNG_NO_SPLIT_HORIZON; |