summaryrefslogtreecommitdiff
path: root/ldpd/address.c
AgeCommit message (Collapse)Author
2023-02-19Merge pull request #12845 from sri-mohan1/sri-mohan-ldpDonatas Abraitis
ldpd: changes for code maintainability
2023-02-19ldpd: changes for code maintainabilitysri-mohan1
these changes are for improving the code maintainability and readability Signed-off-by: sri-mohan1 <sri.mohan@samsung.com>
2023-02-09*: auto-convert to SPDX License IDsDavid Lamparter
Done with a combination of regex'ing and banging my head against a wall. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2020-10-22ldpd: replace inet_ntoaMark Stapp
Replace all use of inet_ntoa; use pI4 or inet_ntop instead. Signed-off-by: Mark Stapp <mjs@voltanet.io>
2020-02-27ldpd: Cleanup set but unused variablesDonald Sharp
There existed some variables set but never used. Clean this up. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-10-08ldpd: fix clang warningVincent JARDIN
size is not used for further parsing. Keep it updated but tell to the compiler that we know it is not used just in case one needs to extend the parsing somedays. Signed-off-by: Vincent Jardin <vincent.jardin@6wind.com>
2017-10-06ldpd: sprinkle in some asserts to make scan-build happyRenato Westphal
While here, fix the other SA warnings. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2017-08-04ldpd: Switch to using ETH_ALENDonald Sharp
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-03-20ldpd: provide more detailed information in some show commandsRenato Westphal
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2017-03-03ldpd: send VPLS MAC withdrawalsRenato Westphal
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>
2017-03-03ldpd: fix parsing of optional tlvs in address messagesRenato Westphal
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>
2017-03-03ldpd: send correct status code on error conditionRenato Westphal
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>
2017-03-03ldpd: create helper functions to log sent/received messagesRenato Westphal
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2017-03-03ldpd: kill send_notification_nbr()Renato Westphal
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>
2016-09-23ldpd: adapt the code for QuaggaRenato Westphal
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2016-09-23ldpd: copy original sources from OpenBSD (14/09/2016)Renato Westphal
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>