From b0e895600dbc97157dbeb3c284253888aafacecf Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Fri, 1 Jul 2016 23:33:47 +0000 Subject: Be more compliant with RFC 4447. When sending a label withdraw during the pseudowire Control Word negotiation, append a "Wrong C-bit" status TLV after the FEC TLV (in conformance to RFC 4447 section 6.2). Apparently this has no use other than aiding in troubleshooting. Also, extend the recv_labelmessage() function to accept Status TLVs and ignore them instead of shutting down the session. --- usr.sbin/ldpd/ldpe.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.sbin/ldpd/ldpe.h') diff --git a/usr.sbin/ldpd/ldpe.h b/usr.sbin/ldpd/ldpe.h index 4d9d77dfc57..84f4c2a74ef 100644 --- a/usr.sbin/ldpd/ldpe.h +++ b/usr.sbin/ldpd/ldpe.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ldpe.h,v 1.65 2016/07/01 23:29:55 renato Exp $ */ +/* $OpenBSD: ldpe.h,v 1.66 2016/07/01 23:33:46 renato Exp $ */ /* * Copyright (c) 2013, 2016 Renato Westphal @@ -163,6 +163,7 @@ void send_notification(uint32_t, struct tcp_conn *, uint32_t, uint16_t); void send_notification_nbr(struct nbr *, uint32_t, uint32_t, uint16_t); int recv_notification(struct nbr *, char *, uint16_t); +int gen_status_tlv(struct ibuf *, uint32_t, uint32_t, uint16_t); /* address.c */ void send_address(struct nbr *, int, struct if_addr *, int); -- cgit v1.2.3