diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2017-03-03 17:50:22 -0300 | 
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2017-03-03 17:50:22 -0300 | 
| commit | aba50a83ea59e20bb23929f817560625153a0e25 (patch) | |
| tree | 364bebda19c78d7518a864f62f40079f05cad680 /ldpd/log.c | |
| parent | d4afb81972d9666d730445fa81090d711fc0d54f (diff) | |
ldpd: implement RFC 6667 (Typed Wildcard FEC for PWid)
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ldpd/log.c')
| -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 0e85daea29..5ad8ca0caf 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);  | 
