Commit Graph

16 Commits

Author SHA1 Message Date
kefren 2a2cde5c86 Use rbtree for storing peers FEC label bindings 2013-08-02 07:29:56 +00:00
kefren ae8b7d0074 don't connect on first hello, there are chances that ours is not seen yet
setproctitle with ldp id - useful for rump kernels testing
fix a memory leak in ldp_peer_new
don't holddown if already holded down
peer sockets are now non-blocking
connected routes deletes are now processed
check if peer is connected before attempting to sending label mappings
2013-07-20 05:16:08 +00:00
kefren 9b2110eba6 Make sure labels are always updated when a route is added and when a peer
is added
Rework mpls_add_label according to that so no route refresh is done anymore
Use poll when reading the PF_ROUTE socket
setsockopt SO_USELOOPBACK on the PF_ROUTE socket
Output some information on SIGINFO
Allow map changing for a ldp peer
Finally fix the connected routes admission into labels
Correct the route trigger when a label map is received
2013-07-18 06:07:45 +00:00
kefren 5f15a81b16 Local addresses vector is not needed anymore 2013-07-11 05:55:13 +00:00
kefren 2cc7bf11fa Constify a little bit 2013-07-11 05:45:23 +00:00
kefren bed325c414 move code around a little bit in order to call get_ldp_peer correctly
check also for transport_address in get_ldp_peer
2013-02-04 20:28:24 +00:00
kefren 0c72a2ff7e * Don't assume INET in connection path
* Lookup in hello list in order to get the correct LDP ID, instead of
  transport address
* Improve an error message
2013-02-04 17:14:31 +00:00
kefren c28e590b2c correct the sockaddr compare
modify a couple of debug messages
2013-02-04 09:52:43 +00:00
kefren fcfdc0a1a0 Be a little more strict when sending notifications and checking PDU 2013-01-28 21:35:34 +00:00
kefren 1dc912ec99 Use satos instead of inet_ntop
Fix an alloc problem
2013-01-28 21:08:14 +00:00
kefren 8835c2ab89 re-enable peer authentication 2013-01-27 05:53:21 +00:00
kefren 269ea2d396 modify structures in order to accomodate IPv6 according to
draft-ietf-mpls-ldp-ipv6. Correct a little bit IPv6 hello path
2013-01-26 17:29:55 +00:00
kefren 6cb0642362 * add initial IPv6 support - still incomplete at this moment, but it sends
out there IPv6 hellos. Interoperability not yet tested.
* sync man page with reality
2012-11-12 18:39:00 +00:00
kefren e64aab24d3 * add config file so one can control id, timers and label assignment and
use neighbour specific options - XXX: needs documentation
* add peer authentication using TCP_MD5SIG. Interoperability tested with
  Cisco IOS
* use SLIST_FOREACH_SAFE when deleting labels instead of re-looping.
2010-12-30 11:29:21 +00:00
christos 14db3bb9d8 - no cast for malloc
- malloc + memset = calloc
- sizeof(type) -> sizeof(*var)
- small indents
2010-12-09 00:10:59 +00:00
kefren e7341ada4c Add ldpd, a RFC 3036 compatible LDP speaker. 2010-12-08 07:20:14 +00:00