Age | Commit message (Collapse) | Author |
|
|
|
The LDE only tracks neighbors with a running sessions, no session no
neighbor needed. So do not wait until the neighbor is removed in the
engine to signal the LDE since that happens a lot later.
Solves a fatal in LDE when restarting a remote ldpd quickly.
OK michele
|
|
information. This is more useful.
OK michele
|
|
|
|
Add the necessary ntohl() and shifts in various places and cleanup the byte
order mess we had before. michele@ agrees.
|
|
reason why ldpd needs to check for ip forwarding so remove that check
as well. Reminded by phessler@
|
|
route table and the per neighbor request and mapping lists.
The received and sent mappings are added to the per neighbor RB tree and
additionally linked to the route table. This makes lookups, etc. a lot
easier. While there flip the neighbor hash list over to a RB tree.
OK michele@
|
|
status instead upon creation (when the first HELLO is received). The LDE
needs only to know about operational neighbors or it may happen that the
LDE is sending messages to neighbors that have no session open resulting
in a crash because of unitialized structures.
OK michele@
|
|
Minor bump for libutil.
Previous versions of this diff and man page looked at by various people.
"you should just commit" deraadt
|
|
ibuf, buf_read to ibuf_read, READ_BUF_SIZE to IBUF_READ_SIZE.
ok henning gilles claudio jacekm deraadt
|
|
|
|
and so there is no need to carry ext_tag and rtlabels around.
"Yes! kill kill kill" michele@
|
|
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.
|
|
Add missing bits to struct map and restructure/simplify the lde.c imsg
code.
|
|
That function will be needed soon.
|
|
default or else we bomb on the first read access.
|
|
more readable, and fixes a spacing bug we had in smtpd.8;
|
|
neighbor self and all the madness surrounding this amazing concept.
LDP is not self aware so there is no need for this.
OK michele@
|
|
the MPLS part of those routes.
OK michele@
|
|
about that. OK michele@
|
|
|
|
to send the notification. On accept use write() else queue message and try
to send the queued messages out via msgbuf_write(). This may still fail but
is better then the code beforehands.
OK michele@
|
|
way the memory is zeroed. This is equivalent to the relayd commit by reyk.
OK reyk, jsg
|
|
notifications.
|
|
|
|
|
|
|
|
ok michele@ claudio@
|
|
of most of the IF_TYPE_ special cases and most interface types.
Point-to-point and broadcast still present because of find_iface()
which needs addtional fixing.
OK michele@
|
|
ok eric
|
|
a bit easier.
OK michele@
|
|
that have nothing to do with LDP.
OK michele@
|
|
session_close() which does the event_del(&nbr->rev) so no need to do it
twice. There is also no need to send two S_SHUTDOWN messages.
OK michele@
|
|
OK michele@
|
|
session_socket_blockmode() everywhere.
Additionally make two fatal() distinguishable.
OK michele@
|
|
u_int16_t) and must therefor be __packed or sizeof() returns a to large size
and causes some very nasty issues.
"embrace __packed" dlg@ OK michele@
While there add new notification status types defined in RFC5036
|
|
implemented use a correct return value so that ldpd has a chance to survive
when one of those messages are received.
OK michele@
|
|
This allow us to correcly do penultimate hop popping.
From Thomas Habets. Thanks.
ok claudio@
|
|
If this happens the imsg may no longer be usable as there may be queued
messages, but this is a) already the case with the code now, and b)
would be the case if recvmsg() fails anyway, so we can document that -1
from imsg_read() invalidates the struct imsgbuf.
discussed with and ok eric
|
|
call session_close(nbr) instead since only that will do all needed cleanup.
Still not prefect but at least the lde is no longer eating all CPU when a
session times out. OK michele@
|
|
file descriptor. If not done, we will loop forever on this event.
OK michele@
|
|
prefix/len and nexthop but do not consider the priority. send_rtmsg() needs
to use the kroute element and not the one sent from the LDE since that one
has no priority set (which is needed). This seems to solve a problem where
ldpd modified the wrong routes. OK michele
|
|
modify a possible better route instead. A bit more is still needed.
OK michele@
|
|
a lot more. Main reason for this is to add priority support. Additionally
add some additional NO_LABEL fixes.
OK michele@
|
|
|
|
ok claudio@
|
|
|
|
with the prefix.
ok claudio@
|
|
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
|
|
|