diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2017-03-03 21:50:22 +0100 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2017-03-03 21:50:22 +0100 |
commit | aba50a83ea59e20bb23929f817560625153a0e25 (patch) | |
tree | 364bebda19c78d7518a864f62f40079f05cad680 /ldpd/log.c | |
parent | ldpd: implement RFC 5918 (Typed Wildcard FEC) (diff) | |
download | frr-aba50a83ea59e20bb23929f817560625153a0e25.tar.xz frr-aba50a83ea59e20bb23929f817560625153a0e25.zip |
ldpd: implement RFC 6667 (Typed Wildcard FEC for PWid)
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to '')
-rw-r--r-- | ldpd/log.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ldpd/log.c b/ldpd/log.c index 0e85daea2..5ad8ca0ca 100644 --- a/ldpd/log.c +++ b/ldpd/log.c @@ -342,6 +342,12 @@ log_map(const struct map *map) af_name(map->fec.twcard.u.prefix_af)) < 0) return ("???"); break; + case MAP_TYPE_PWID: + if (snprintf(buf + strlen(buf), sizeof(buf) - + strlen(buf), " (pwid, type %s)", + pw_type_name(map->fec.twcard.u.pw_type)) < 0) + return ("???"); + break; default: if (snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), " (unknown type)") < 0) @@ -598,6 +604,8 @@ pw_type_name(uint16_t pw_type) return ("Eth Tagged"); case PW_TYPE_ETHERNET: return ("Ethernet"); + case PW_TYPE_WILDCARD: + return ("Wildcard"); default: snprintf(buf, sizeof(buf), "[%0x]", pw_type); return (buf); |