summaryrefslogtreecommitdiff
path: root/zebra/zebra_vty.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/zebra_vty.c')
-rw-r--r--zebra/zebra_vty.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c
index 044448e1..ae4083ed 100644
--- a/zebra/zebra_vty.c
+++ b/zebra/zebra_vty.c
@@ -91,16 +91,16 @@ route_type_char (u_char type)
/* General fucntion for static route. */
int
-zebra_static_ipv4 (struct vty *vty, int add_cmd,
- char *dest_str, char *mask_str, char *gate_str,
- char *flag_str, char *distance_str)
+zebra_static_ipv4 (struct vty *vty, int add_cmd, const char *dest_str,
+ const char *mask_str, const char *gate_str,
+ const char *flag_str, const char *distance_str)
{
int ret;
u_char distance;
struct prefix p;
struct in_addr gate;
struct in_addr mask;
- char *ifname;
+ const char *ifname;
u_char flag = 0;
ret = str2prefix (dest_str, &p);
@@ -754,7 +754,9 @@ vty_show_ip_route (struct vty *vty, struct route_node *rn, struct rib *rib)
}
}
-#define SHOW_ROUTE_V4_HEADER "Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,%s I - ISIS, B - BGP, > - selected route, * - FIB route%s%s"
+#define SHOW_ROUTE_V4_HEADER "Codes: K - kernel route, C - connected, " \
+ "S - static, R - RIP, O - OSPF,%s I - ISIS, B - BGP, " \
+ "> - selected route, * - FIB route%s%s"
DEFUN (show_ip_route,
show_ip_route_cmd,
@@ -1114,8 +1116,9 @@ static_config_ipv4 (struct vty *vty)
#ifdef HAVE_IPV6
/* General fucntion for IPv6 static route. */
int
-static_ipv6_func (struct vty *vty, int add_cmd, char *dest_str,
- char *gate_str, char *ifname, char *flag_str, char *distance_str)
+static_ipv6_func (struct vty *vty, int add_cmd, const char *dest_str,
+ const char *gate_str, const char *ifname,
+ const char *flag_str, const char *distance_str)
{
int ret;
u_char distance;