diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2017-01-27 14:22:47 -0200 |
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2017-02-01 22:03:36 -0200 |
| commit | 45a8eba9721f8d9b9939a2c916c476eb8be3e78d (patch) | |
| tree | b9851dca94e1bba2341bdfc70d070af1e1ba7b4c /lib/filter.c | |
| parent | 28e8294caa010c246bccbff308cb2118b7d52bdb (diff) | |
ldpd: introduce advanced filtering capabilities
This patch introduces several new configuration commands to ldpd. These
commands should allow the operator to define advanced filtering policies
for things like label advertisement, label allocation, etc.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/filter.c')
| -rw-r--r-- | lib/filter.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/filter.c b/lib/filter.c index cd17a562f0..46e0bbe804 100644 --- a/lib/filter.c +++ b/lib/filter.c @@ -1259,6 +1259,14 @@ filter_set_zebra (struct vty *vty, const char *name_str, const char *type_str, struct access_list *access; struct prefix p; + if (strlen(name_str) > ACL_NAMSIZ) + { + vty_out (vty, "%% ACL name %s is invalid: length exceeds " + "%d characters%s", + name_str, ACL_NAMSIZ, VTY_NEWLINE); + return CMD_WARNING; + } + /* Check of filter type. */ if (strncmp (type_str, "p", 1) == 0) type = FILTER_PERMIT; |
