summaryrefslogtreecommitdiff
path: root/usr.sbin/ldpd
AgeCommit message (Collapse)Author
2010-03-01nitpicking, NULL instead of 0 in lde_imsg_compose_ldpe() call.Claudio Jeker
2010-02-25One more substitution of label 0 with NO_LABEL.Michele Marchetto
ok claudio@
2010-02-25Whitespaces cleanup.Michele Marchetto
2010-02-25NO_LABEL (instead of zero) must be used to mean that no labels are associatedMichele Marchetto
with the prefix. ok claudio@
2010-02-25Do not use bufferevent for something that's already covered in the imsgClaudio Jeker
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
2010-02-24sort SEE ALSO;Jason McIntyre
2010-02-23Fix .Oo .Xo .Oc .Xc mis-nesting by just dropping the .Xo and .Xc which,Ingo Schwarze
in these cases, is useless anyway. Found by and fixing the build with mandoc; still fine with both old and new groff. ok jmc@
2010-02-22Correctly encode FEC prefixes. This makes my test setup much happyer.Claudio Jeker
OK michele
2010-02-21Kill double declaration of control_imsg_relay().Michele Marchetto
From Christiano F. Haesbaert. ok claudio@
2010-02-21Check bufferevent_new() return value. If it is NULL print an error messageMichele Marchetto
and return. From Martin Hedenfalk. ok claudio@
2010-02-20Make send_* functions return void (and not int) as they can just succeedMichele Marchetto
or fatal(). ok claudio@
2010-02-20Remove unneeded abstraction in neighbor fsm.Michele Marchetto
ok claudio@
2010-02-19Oups, unbreak build.Claudio Jeker
2010-02-19Cleanup a bit, remove unneeded dummy neighbor and initialize queue headsClaudio Jeker
in the correct place. Queue mappings ordered by inserting at tail. OK michele
2010-02-19If a neighbor goes down we need to cleanup the LIB from all FEC that pointClaudio Jeker
via that neighbor. Fixes a use after free and an additional NULL dereference in a log_debug is fixed as well. OK michele
2010-02-19Do not double free a knode when kroute_insert() fails. kroute_insert()Claudio Jeker
will free the node if something fails. OK michele
2010-02-18Make the output of printconf() look like a real config file.Claudio Jeker
OK michele@
2010-02-18Set the correct defaults for label advertisement, retention and distribution.Michele Marchetto
ok claudio@
2010-02-18We need to set SO_REUSEADDR before doing the bind() of the tcp socket.Claudio Jeker
It does not help to set SO_REUSEPORT after doing the bind. Fixes failures to start ldpd because of TIME_WAIT sessions. OK michele
2010-02-18Remove some debug messages that are too verbose and no longer needed.Claudio Jeker
OK michele@
2010-02-18Close a fd leak when opening the tcp connection to the neighbor.Claudio Jeker
OK michele
2010-02-16Make ldpd less verbose.Michele Marchetto
ok claudio@
2010-02-16Plug a memory leak in pushfile().Michele Marchetto
ok claudio@
2010-01-19Don't fatalx() when a static route is deleted.Michele Marchetto
ok claudio@
2010-01-08Implement section A.1.6 of RFC 5036: "Recognize new FEC".Michele Marchetto
When a new prefix is learnt, redistribute the local label associated with it to the other connected peers. ok claudio@
2010-01-02sort SEE ALSO;Jason McIntyre
2010-01-02The .Rs macro must be followed by .Re, and empty .Rs is useless anyway.Ingo Schwarze
Markup syntax error found by mandoc(1), also required to fix the mandoc build. ok jmc@ sobrado@
2010-01-02In the "ldpctl show lib" output print every known label and make clear if itMichele Marchetto
is currently in use or not. ok claudio@
2009-12-30Correctly parse the host address in the FEC TLV.Michele Marchetto
ok claudio@
2009-12-10Length of the host address in the FEC TLV must be encoded in numberMichele Marchetto
of octets. ok claudio@
2009-12-09Enable parsing of the optional Transport Address TLV in the helloMichele Marchetto
message. ok claudio@
2009-12-08porcesses -> processesJonathan Gray
2009-12-06During the session's initialization, when playing the passive role, sendMichele Marchetto
the initialization message before the keepalive. This fixes session initialazion failures noticed by Christophe Fillot. ok claudio@
2009-12-02log_warn() consistency.Michael Knudsen
`OK' claudio
2009-11-02More IMSG_CTL_LOG_VERBOSE, still doing the same toggeling of log_debug().Claudio Jeker
2009-11-01Initialize "len" before using it in accept(2).Michele Marchetto
Found by Christophe Fillot ok claudio@
2009-10-28remove an unimplemented flag from both usage() and getopt(3)'sIgor Sobrado
option string. ok claudio@, michele@
2009-10-27write UNIX-domain in a more consistent way.Igor Sobrado
2009-09-28When a route is deleted, ldpd should remove labels associated with it fromMichele Marchetto
lfib (the kernel lib) but not from the lib. These could be used later on when the route come back. ok claudio@
2009-09-15Enclose repeated buffer draining code in a new msgbuf_drain()Jacek Masiulaniec
function, which is additionally exported for use by others. It will be needed by smtpd's SSL module when the SMTP client code is changed to replace libevent's evbuffers with our msgbuf_* API. ok gilles@ henning@ guenther@ eric@
2009-08-08Make imsg_clear close and free any fds in the received fd queue as well asNicholas Marriott
freeing the msgbuf. While here also remove an unnecessary while loop. ok eric pyr
2009-08-06ldpd must not add/delete AF_INET routes, it just have to change themMichele Marchetto
inserting/deleting MPLS infos. ok claudio@
2009-08-02"ldpctl show lib" output cleanup.Michele Marchetto
- Show only the remote/local labels of the prefixes currently present in fib. - Write a "-" instead of "0" when a remote label is not present (the prefix is directly connected). It avoids confusion with explicit null label. ok claudio@
2009-08-01Pass the right size of the structure "map" to the ldpd engine.Michele Marchetto
2009-08-01Correctly print interface state and neighbor uptime in ldpctl show neighbor.Michele Marchetto
2009-07-23make buf_write() behave like msgbuf_write(): send out only theEric Faurot
bytes that were filled, not the whole buffer. ok pyr@ gilles@
2009-07-13Get rid of the multipath code, as it is not needed.Michele Marchetto
ok claudio@ laurent@
2009-07-08Detect nexthop change.Michele Marchetto
React installing the label associated with the new nexthop in the kernel routing table. ok claudio@
2009-06-19When operating in liberal mode, retain labels even if they aren't learntMichele Marchetto
from current nexthop. ok laurent@
2009-06-08revert this change by eric@:David Gwynne
Make the imsg protocol network-safe. it might be network safe, but half the imsg based daemons on my firewalls dont run anymore.