Lines Matching defs:ospf6_dump
28 #include "ospf6_dump.h"
35 struct ospf6_dump
43 struct ospf6_dump *ospf6_dump[DUMP_MAX];
53 if (cmd != &ospf6_dump[i]->cmd[command])
66 if (ospf6_dump[index] == NULL)
69 return ospf6_dump[index]->config;
81 vty_out (vty, " %-16s: %s%s", ospf6_dump[index]->name,
82 (ospf6_dump[index]->config ? "on" : "off"),
96 ospf6_dump[index]->config = 1;
109 ospf6_dump[index]->config = 0;
123 ospf6_dump[dump_size] = malloc (sizeof (struct ospf6_dump));
124 if (ospf6_dump[dump_size] == NULL)
126 memset (ospf6_dump[dump_size], 0, sizeof (struct ospf6_dump));
128 ospf6_dump[dump_size]->name = strdup (name);
130 cmd = &ospf6_dump[dump_size]->cmd[CMD_SHOW];
141 cmd = &ospf6_dump[dump_size]->cmd[CMD_ENABLE];
151 cmd = &ospf6_dump[dump_size]->cmd[CMD_DISABLE];
177 if (ospf6_dump[i] == NULL)
179 ospf6_dump_show (&ospf6_dump[i]->cmd[CMD_SHOW], vty, 0, NULL);
196 if (ospf6_dump[i] == NULL)
198 ospf6_dump_enable (&ospf6_dump[i]->cmd[CMD_ENABLE], vty, 0, NULL);
216 if (ospf6_dump[i] == NULL)
218 ospf6_dump_disable (&ospf6_dump[i]->cmd[CMD_DISABLE], vty, 0, NULL);
237 if (ospf6_dump[i] == NULL)
240 if (ospf6_dump[i]->config == 0)
243 vty_out (vty, "debug ospf6 %s%s", ospf6_dump[i]->name, VTY_NEWLINE);
255 memset (ospf6_dump, 0, sizeof (ospf6_dump));