diff options
author | 2016-07-15 17:05:50 +0000 | |
---|---|---|
committer | 2016-07-15 17:05:50 +0000 | |
commit | 5953eecf8de1e1eca62522bdb390230fe1ab37f5 (patch) | |
tree | 53ed2d10a0c9296eefdc026b9e8854046a942fa9 /usr.sbin/ldpd/labelmapping.c | |
parent | Update per-neighbor GTSM options on config reload. (diff) | |
download | wireguard-openbsd-5953eecf8de1e1eca62522bdb390230fe1ab37f5.tar.xz wireguard-openbsd-5953eecf8de1e1eca62522bdb390230fe1ab37f5.zip |
Explicitly ignore the Hop Count and Path Vector TLVs.
Since these are "well known" TLVs, we have to explicitly ignore them
otherwise ldpd would send "Unknown TLV" Notification messages when it
shouldn't.
Fixes regression caused by rev1.51.
Diffstat (limited to 'usr.sbin/ldpd/labelmapping.c')
-rw-r--r-- | usr.sbin/ldpd/labelmapping.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/ldpd/labelmapping.c b/usr.sbin/ldpd/labelmapping.c index 6b592f020d9..b6a736a3657 100644 --- a/usr.sbin/ldpd/labelmapping.c +++ b/usr.sbin/ldpd/labelmapping.c @@ -1,4 +1,4 @@ -/* $OpenBSD: labelmapping.c,v 1.55 2016/07/01 23:36:38 renato Exp $ */ +/* $OpenBSD: labelmapping.c,v 1.56 2016/07/15 17:05:50 renato Exp $ */ /* * Copyright (c) 2014, 2015 Renato Westphal <renato@openbsd.org> @@ -270,6 +270,10 @@ recv_labelmessage(struct nbr *nbr, char *buf, uint16_t len, uint16_t type) break; } break; + case TLV_TYPE_HOPCOUNT: + case TLV_TYPE_PATHVECTOR: + /* ignore */ + break; case TLV_TYPE_GENERICLABEL: switch (type) { case MSG_TYPE_LABELWITHDRAW: |