summaryrefslogtreecommitdiff
path: root/ldpd/ldp.h
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-03-03 17:50:22 -0300
committerRenato Westphal <renato@opensourcerouting.org>2017-03-03 17:50:22 -0300
commitaba50a83ea59e20bb23929f817560625153a0e25 (patch)
tree364bebda19c78d7518a864f62f40079f05cad680 /ldpd/ldp.h
parentd4afb81972d9666d730445fa81090d711fc0d54f (diff)
ldpd: implement RFC 6667 (Typed Wildcard FEC for PWid)
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ldpd/ldp.h')
-rw-r--r--ldpd/ldp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ldpd/ldp.h b/ldpd/ldp.h
index 2edf0475c9..ffdadf8be9 100644
--- a/ldpd/ldp.h
+++ b/ldpd/ldp.h
@@ -278,8 +278,11 @@ struct address_list_tlv {
#define CONTROL_WORD_FLAG 0x8000
#define PW_TYPE_ETHERNET_TAGGED 0x0004
#define PW_TYPE_ETHERNET 0x0005
+#define PW_TYPE_WILDCARD 0x7FFF
#define DEFAULT_PW_TYPE PW_TYPE_ETHERNET
+#define PW_TWCARD_RESERVED_BIT 0x8000
+
/* RFC 4447 Sub-TLV record */
struct subtlv {
uint8_t type;