diff options
author | 2016-06-11 02:01:46 +0000 | |
---|---|---|
committer | 2016-06-11 02:01:46 +0000 | |
commit | c6d1c46204cf00ef33fedf2746feab98d012f537 (patch) | |
tree | 843959d60d9c9834d56093747fe407bc5beb73e6 | |
parent | Make all TLV parsing functions look the same for consistency. (diff) | |
download | wireguard-openbsd-c6d1c46204cf00ef33fedf2746feab98d012f537.tar.xz wireguard-openbsd-c6d1c46204cf00ef33fedf2746feab98d012f537.zip |
Send an 'Unknown FEC' Notification for unexpected wildcard FECs.
This is basically just to make ANVL happy, there's not much difference
between sending an 'Unknown FEC' or a 'Malformed TLV' Notification.
Fixes ANVL LDP test 15.6.
-rw-r--r-- | usr.sbin/ldpd/labelmapping.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ldpd/labelmapping.c b/usr.sbin/ldpd/labelmapping.c index 48bb19414b4..5cb14787ee4 100644 --- a/usr.sbin/ldpd/labelmapping.c +++ b/usr.sbin/ldpd/labelmapping.c @@ -1,4 +1,4 @@ -/* $OpenBSD: labelmapping.c,v 1.49 2016/06/11 01:55:35 renato Exp $ */ +/* $OpenBSD: labelmapping.c,v 1.50 2016/06/11 02:01:46 renato Exp $ */ /* * Copyright (c) 2014, 2015 Renato Westphal <renato@openbsd.org> @@ -193,7 +193,7 @@ recv_labelmessage(struct nbr *nbr, char *buf, uint16_t len, uint16_t type) case MSG_TYPE_LABELMAPPING: case MSG_TYPE_LABELREQUEST: case MSG_TYPE_LABELABORTREQ: - session_shutdown(nbr, S_BAD_TLV_VAL, lm.msgid, + session_shutdown(nbr, S_UNKNOWN_FEC, lm.msgid, lm.type); goto err; default: |