summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ldpd/labelmapping.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Add missing #includes instead of assuming that some system header pulls inguenther2010-12-311-1/+2
| | | | | | the needed bits ok deraadt@, millert@
* Rewrite all packet parsers to be more careful about alignment. Untilclaudio2010-11-041-163/+230
| | | | | | | 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@
* Implement the optional label request message ID TLV.claudio2010-10-261-26/+57
| | | | Currently on the genaration side is done.
* For label release and withdraw messages make sure that a wildcardclaudio2010-10-261-6/+33
| | | | | | | FEC is the one and only FEC of that message. This is required by the RFC. While it is not correct to have multiple FEC in anything but label mapping messages ldpd will accept those since the RFC is extra vague about this feature and it does not hurt.
* struct mapping_entry should just have a struct map instead of ownclaudio2010-10-261-20/+20
| | | | | definition of a FEC mapping. This makes extending struct map simpler and makes it possible to access the additional data in struct map.
* Switch prefix in struct map to a struct in_addr instead of a u_int32_t.claudio2010-06-301-7/+7
| | | | Needed for further clean etc.
* Move the logging of FEC changes to the LDE and print the FEC and labelclaudio2010-06-091-19/+1
| | | | | information. This is more useful. OK michele
* Rename some imsg bits to make namespace collisions less likely buf tonicm2010-05-261-25/+25
| | | | | | ibuf, buf_read to ibuf_read, READ_BUF_SIZE to IBUF_READ_SIZE. ok henning gilles claudio jacekm deraadt
* Implement the missing label map recv functions and cleanup the other recvclaudio2010-05-251-77/+178
| | | | | functions a bit to make them all look more similar. All but the label req abort message are now parsed and passed to the lde.
* The host address encoding of FEC was killed in RFC5036 and we're happyclaudio2010-05-171-8/+3
| | | | about that. OK michele@
* Even though label withdraw, release, and abort requests are not fullyclaudio2010-04-151-5/+11
| | | | | | implemented use a correct return value so that ldpd has a chance to survive when one of those messages are received. OK michele@
* Do not use bufferevent for something that's already covered in the imsgclaudio2010-02-251-13/+6
| | | | | | | 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
* Correctly encode FEC prefixes. This makes my test setup much happyer.claudio2010-02-221-23/+20
| | | | OK michele
* Make send_* functions return void (and not int) as they can just succeedmichele2010-02-201-21/+11
| | | | | | or fatal(). ok claudio@
* Correctly parse the host address in the FEC TLV.michele2009-12-301-14/+36
| | | | ok claudio@
* Length of the host address in the FEC TLV must be encoded in numbermichele2009-12-101-4/+6
| | | | | | of octets. ok claudio@
* Correctly send notification messages when errors occur.michele2009-06-051-42/+19
| | | | ok claudio@ laurent@
* Welcome ldpd, the Label Distribution Protocol daemon.michele2009-06-011-0/+579
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@