diff options
author | Renato Westphal <renato@cvs.openbsd.org> | 2016-07-01 23:33:47 +0000 |
---|---|---|
committer | Renato Westphal <renato@cvs.openbsd.org> | 2016-07-01 23:33:47 +0000 |
commit | b0e895600dbc97157dbeb3c284253888aafacecf (patch) | |
tree | d7cb3a4dbb7693c1cb67b543f01281c36decb08b /usr.sbin/ldpd/ldpe.h | |
parent | 2d65c4f7cd8db7125bb35dfe33fffd414d78888d (diff) |
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.
Diffstat (limited to 'usr.sbin/ldpd/ldpe.h')
-rw-r--r-- | usr.sbin/ldpd/ldpe.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 <renato@openbsd.org> @@ -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); |