summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrenato <renato@openbsd.org>2017-03-03 23:56:54 +0000
committerrenato <renato@openbsd.org>2017-03-03 23:56:54 +0000
commitbd4a767a42e3854695ec733058582555cd304a05 (patch)
treeb7c092114ad4f1e1a56bb989cd65e46a7e9b91f3
parentSend correct status code on error condition. (diff)
downloadwireguard-openbsd-bd4a767a42e3854695ec733058582555cd304a05.tar.xz
wireguard-openbsd-bd4a767a42e3854695ec733058582555cd304a05.zip
The PW Status is an unknown TLV.
Without this fix, any LDP speaker that doesn't implement RFC 4447 will shut down the session upon receipt of a PWid Label Mapping (unless the use of the PW-Status TLV is disabled via configuration).
-rw-r--r--usr.sbin/ldpd/ldp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ldpd/ldp.h b/usr.sbin/ldpd/ldp.h
index 82ee6976f8d..e8c007a9c08 100644
--- a/usr.sbin/ldpd/ldp.h
+++ b/usr.sbin/ldpd/ldp.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldp.h,v 1.36 2017/03/03 23:41:27 renato Exp $ */
+/* $OpenBSD: ldp.h,v 1.37 2017/03/03 23:56:54 renato Exp $ */
/*
* Copyright (c) 2013, 2016 Renato Westphal <renato@openbsd.org>
@@ -94,7 +94,7 @@
#define TLV_TYPE_FRSESSION 0x0502
#define TLV_TYPE_LABELREQUEST 0x0600
/* RFC 4447 */
-#define TLV_TYPE_PW_STATUS 0x096A
+#define TLV_TYPE_PW_STATUS 0x896A
#define TLV_TYPE_PW_IF_PARAM 0x096B
#define TLV_TYPE_PW_GROUP_ID 0x096C
/* RFC 7552 */