summaryrefslogtreecommitdiffstats
path: root/zebra
diff options
context:
space:
mode:
authorhasso <hasso>2004-02-11 23:42:16 +0100
committerhasso <hasso>2004-02-11 23:42:16 +0100
commit55906724d8d460b16f11c2fe05eeb799325f97ba (patch)
tree858bcea4e941ce2ab503761821ad575de00b698f /zebra
parentDon't crash when attempting to read path->oi->ifp if oi doesn't exist any (diff)
downloadfrr-55906724d8d460b16f11c2fe05eeb799325f97ba.tar.xz
frr-55906724d8d460b16f11c2fe05eeb799325f97ba.zip
Added "ipv6 forwarding" command and fixed "no ipv6 forwarding" help.
Diffstat (limited to 'zebra')
-rw-r--r--zebra/ChangeLog3
-rw-r--r--zebra/zserv.c23
2 files changed, 24 insertions, 2 deletions
diff --git a/zebra/ChangeLog b/zebra/ChangeLog
index 8256c1ccc..b6df396fa 100644
--- a/zebra/ChangeLog
+++ b/zebra/ChangeLog
@@ -1,3 +1,6 @@
+2004-02-12 Hasso Tepper <hasso@estpak.ee>
+ * zserv.c: Added "ipv6 forwarding" command.
+
2004-01-08 Greg Troxel <gdt@fnord.ir.bbn.com>
* kernel_socket.c (kernel_read): Use sockaddr_storage in buffer
diff --git a/zebra/zserv.c b/zebra/zserv.c
index 3ea1a1683..0f30a559b 100644
--- a/zebra/zserv.c
+++ b/zebra/zserv.c
@@ -1902,12 +1902,30 @@ DEFUN (show_ipv6_forwarding,
return CMD_SUCCESS;
}
+DEFUN (ipv6_forwarding,
+ ipv6_forwarding_cmd,
+ "ipv6 forwarding",
+ IPV6_STR
+ "Turn on IPv6 forwarding")
+{
+ int ret;
+
+ ret = ipforward_ipv6_on ();
+ if (ret != 0)
+ {
+ vty_out (vty, "Can't turn on IPv6 forwarding%s", VTY_NEWLINE);
+ return CMD_WARNING;
+ }
+
+ return CMD_SUCCESS;
+}
+
DEFUN (no_ipv6_forwarding,
no_ipv6_forwarding_cmd,
"no ipv6 forwarding",
NO_STR
- IP_STR
- "Doesn't forward IPv6 protocol packet")
+ IPV6_STR
+ "Turn off IPv6 forwarding")
{
int ret;
@@ -1985,6 +2003,7 @@ zebra_init ()
#ifdef HAVE_IPV6
install_element (VIEW_NODE, &show_ipv6_forwarding_cmd);
install_element (ENABLE_NODE, &show_ipv6_forwarding_cmd);
+ install_element (CONFIG_NODE, &ipv6_forwarding_cmd);
install_element (CONFIG_NODE, &no_ipv6_forwarding_cmd);
#endif /* HAVE_IPV6 */