}
/* Set access-list name to the distribute list. */
-static struct distribute *
+static void
distribute_list_set (const char *ifname, enum distribute_type type,
const char *alist_name)
{
/* Apply this distribute-list to the interface. */
(*distribute_add_hook) (dist);
-
- return dist;
}
/* Unset distribute-list. If matched distribute-list exist then
}
/* Set access-list name to the distribute list. */
-static struct distribute *
+static void
distribute_list_prefix_set (const char *ifname, enum distribute_type type,
const char *plist_name)
{
/* Apply this distribute-list to the interface. */
(*distribute_add_hook) (dist);
-
- return dist;
}
/* Unset distribute-list. If matched distribute-list exist then
DISTRIBUTE_IN : DISTRIBUTE_OUT;
/* Set appropriate function call */
- int (*distfn)(const char *, enum distribute_type, const char *) = prefix ?
+ void (*distfn)(const char *, enum distribute_type, const char *) = prefix ?
&distribute_list_prefix_set : &distribute_list_set;
/* if interface is present, get name */
{
ns_id_t ns_id = NS_DEFAULT;
struct ns *ns = NULL;
- char *pathname = ns_netns_pathname (vty, argv[1]);
+ char *pathname = ns_netns_pathname (vty, argv[3]->arg);
if (!pathname)
return CMD_WARNING;
- VTY_GET_INTEGER ("NS ID", ns_id, argv[0]);
+ VTY_GET_INTEGER ("NS ID", ns_id, argv[1]->arg);
ns = ns_get (ns_id);
if (ns->name && strcmp (ns->name, pathname) != 0)
{
ns_id_t ns_id = NS_DEFAULT;
struct ns *ns = NULL;
- char *pathname = ns_netns_pathname (vty, argv[1]);
+ char *pathname = ns_netns_pathname (vty, argv[4]->arg);
if (!pathname)
return CMD_WARNING;
- VTY_GET_INTEGER ("NS ID", ns_id, argv[0]);
+ VTY_GET_INTEGER ("NS ID", ns_id, argv[2]->arg);
ns = ns_lookup (ns_id);
if (!ns)