summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ldpd/keepalive.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* More renaming and whitespace cleanup.renato2016-07-011-4/+4
| | | | No binary change after "strip -s".
* Remove superfluous includes.renato2016-05-231-15/+2
|
* Fix mess caused by my commit script.renato2016-05-231-6/+5
| | | | I screwed up everything... trying to fix now.
* Improve the parser of TCP/session packets.renato2016-05-231-8/+5
| | | | | | | | | | Add more safeguards against malformed packets and fix existing ones. Also, rename a few variables and constants to match their real meaning. For example, rename gen_msg_tlv() to gen_msg_hdr() because this function generates an LDP header, not a TLV. Finally, clean-up all the send_* functions so they all follow the same pattern.
* Replace manually written function names with __func__.renato2016-05-231-2/+2
|
* Remove unnecessary netinet/in_systm.h include.lteo2014-10-251-2/+1
| | | | ok millert@
* Generate the NBR_EVT_PDU_RCVD event in a single point.renato2013-10-151-3/+1
| | | | OK claudio@
* Always accept TCP connection requests and identify to which neighborclaudio2013-06-041-2/+2
| | | | | | | | it belongs only _after_ receiving an Initialization message containing the information we need. Before an Initialization message is received, the TCP connection shouldn't be associated with any neighbor/adjacency. Therefor refactor that part into a own module. From Renato Westphal
* Drop support for per-interface labelspaces.claudio2013-06-011-2/+2
| | | | | | | Support for per-interface labelspaces is only necessary for legacy ATM/FR interfaces running in cell-mode. We shouldn't worry about this. For platform-wide label spaces the label space id is always 0. Diff by Renato Westphal
* Drop support for passive interfaces.claudio2013-06-011-4/+1
| | | | | | Support for passive interfaces was inherited from ospfd but it doesn't make any sense at all for ldpd. Diff from Renato Westphal
* Rewrite all packet parsers to be more careful about alignment. Untilclaudio2010-11-041-9/+6
| | | | | | | now ldpd had no chance to run on a strict alignment architecture but this makes ldpd happy on sparc64. Be careful to do all needed overflow checks and try to make all parsing functions look similar. OK michele@
* Rename some imsg bits to make namespace collisions less likely buf tonicm2010-05-261-3/+3
| | | | | | ibuf, buf_read to ibuf_read, READ_BUF_SIZE to IBUF_READ_SIZE. ok henning gilles claudio jacekm deraadt
* Do not use bufferevent for something that's already covered in the imsgclaudio2010-02-251-3/+2
| | | | | | | buffer API. This fixes a few possible problems in session_read and does some further cleanup in various places. Wrap msgbuf into evbuf to add libevent functionality and use buf_read to handle the read side of a session. OK michele@ and dlg@ did not see anything evil
* Make send_* functions return void (and not int) as they can just succeedmichele2010-02-201-5/+3
| | | | | | or fatal(). ok claudio@
* Remove some debug messages that are too verbose and no longer needed.claudio2010-02-181-5/+1
| | | | OK michele@
* Correctly send notification messages when errors occur.michele2009-06-051-5/+2
| | | | ok claudio@ laurent@
* Welcome ldpd, the Label Distribution Protocol daemon.michele2009-06-011-0/+94
Built using the imsg/three process framework, its main aim is to redistribute MPLS labels between peers. Right now it has some really basic functionalities, the basic protocol works and peers are able to exchange labels and insert them in the kernel. It still does not react to changes of topology. Not yet connected to the builds. ok claudio@ deraadt@