version 1.1.1.1, 2012/02/21 17:26:12
|
version 1.1.1.2, 2016/11/02 10:09:11
|
Line 28 Software Foundation, Inc., 59 Temple Place - Suite 330
|
Line 28 Software Foundation, Inc., 59 Temple Place - Suite 330
|
#include "command.h" |
#include "command.h" |
#include "vty.h" |
#include "vty.h" |
#include "log.h" |
#include "log.h" |
| |
/* Vector for route match rules. */ |
/* Vector for route match rules. */ |
static vector route_match_vec; |
static vector route_match_vec; |
|
|
Line 72 route_map_rule_delete (struct route_map_rule_list *,
|
Line 72 route_map_rule_delete (struct route_map_rule_list *,
|
|
|
static void |
static void |
route_map_index_delete (struct route_map_index *, int); |
route_map_index_delete (struct route_map_index *, int); |
| |
/* New route map allocation. Please note route map's name must be |
/* New route map allocation. Please note route map's name must be |
specified. */ |
specified. */ |
static struct route_map * |
static struct route_map * |
Line 420 route_map_rule_new (void)
|
Line 420 route_map_rule_new (void)
|
new = XCALLOC (MTYPE_ROUTE_MAP_RULE, sizeof (struct route_map_rule)); |
new = XCALLOC (MTYPE_ROUTE_MAP_RULE, sizeof (struct route_map_rule)); |
return new; |
return new; |
} |
} |
| |
/* Install rule command to the match list. */ |
/* Install rule command to the match list. */ |
void |
void |
route_map_install_match (struct route_map_rule_cmd *cmd) |
route_map_install_match (struct route_map_rule_cmd *cmd) |
Line 897 route_map_finish (void)
|
Line 897 route_map_finish (void)
|
route_match_vec = NULL; |
route_match_vec = NULL; |
vector_free (route_set_vec); |
vector_free (route_set_vec); |
route_set_vec = NULL; |
route_set_vec = NULL; |
|
/* cleanup route_map */ |
|
while (route_map_master.head) |
|
route_map_delete (route_map_master.head); |
} |
} |
| |
/* VTY related functions. */ |
/* VTY related functions. */ |
DEFUN (route_map, |
DEFUN (route_map, |
route_map_cmd, |
route_map_cmd, |