summaryrefslogtreecommitdiffstats
path: root/ldpd/address.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ldpd: Switch to using ETH_ALENDonald Sharp2017-08-041-3/+3
| | | | Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* ldpd: provide more detailed information in some show commandsRenato Westphal2017-03-211-0/+12
| | | | Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
* ldpd: send VPLS MAC withdrawalsRenato Westphal2017-03-031-7/+72
| | | | | | | | | | RFC 4762 says that MAC address withdrawal messages can be used to improve convergence time in VPLS networks. This patch makes ldpd send MAC withdrawals whenever a non-pseudowire interface pertaining to a VPLS goes down. The processing of received MAC withdrawals will be implemented later. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
* ldpd: fix parsing of optional tlvs in address messagesRenato Westphal2017-03-031-14/+59
| | | | | | | | We were aborting the session upon receipt of MAC Address Withdrawal messages. Now make the parser aware that optional TLVs are possible in address messages. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
* ldpd: send correct status code on error conditionRenato Westphal2017-03-031-2/+2
| | | | | | | | | | | | | | | | The Unknown TLV status code is reserved for cases where we don't know how to process a given TLV and its Unknown TLV bit is not set. In the case of Address Messages, the Address List TLV is mandatory and should appear before any optional TLV in the message. If that doesn't happen the correct status notification to send is "Missing Message Parameters" (non-fatal error). Also, add a missing htons when creating an Address List TLV. Since the value of TLV_TYPE_ADDRLIST is 0x0101 this missing htons wasn't noticed earlier. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
* ldpd: create helper functions to log sent/received messagesRenato Westphal2017-03-031-5/+12
| | | | Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
* ldpd: kill send_notification_nbr()Renato Westphal2017-03-031-1/+1
| | | | | | | | Be more clever and trigger the PDU SENT event inside send_notification() when tcp->nbr is set. This way we can eliminate send_notification_nbr() and always use send_notification() instead. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
* ldpd: adapt the code for QuaggaRenato Westphal2016-09-231-8/+5
| | | | Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
* ldpd: copy original sources from OpenBSD (14/09/2016)Renato Westphal2016-09-231-0/+297
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>