#
8bc5e3a3 |
| 03-Jul-2023 |
claudio <claudio@openbsd.org> |
Use new ibuf API. Use ibuf_data() and ibuf_size() instead of direct struct access and use ibuf_set_n16() to update the length field. OK tb@
|
#
9246985a |
| 04-Mar-2017 |
renato <renato@openbsd.org> |
Implement RFC 5919 (LDP End-of-LIB).
|
#
6702dd25 |
| 04-Mar-2017 |
renato <renato@openbsd.org> |
Implement RFC 6667 (Typed Wildcard FEC for PWid).
|
#
c7c5a728 |
| 04-Mar-2017 |
renato <renato@openbsd.org> |
Implement RFC 5918 (Typed Wildcard FEC).
|
#
3b4c1866 |
| 04-Mar-2017 |
renato <renato@openbsd.org> |
Implement RFC 5561 (LDP Capabilities).
This patch per-se doesn't introduce any useful functionality, but prepares the ground for new enhancements to ldpd (i.e. implementation of new RFCs that make u
Implement RFC 5561 (LDP Capabilities).
This patch per-se doesn't introduce any useful functionality, but prepares the ground for new enhancements to ldpd (i.e. implementation of new RFCs that make use of LDP capabilities).
show more ...
|
#
297a8bbe |
| 03-Mar-2017 |
renato <renato@openbsd.org> |
Create helper functions to log sent/received messages.
|
#
0101edf8 |
| 03-Mar-2017 |
renato <renato@openbsd.org> |
Kill send_notification_nbr().
Be more clever and trigger the PDU SENT event inside send_notification() when tcp->nbr is set. This way we can eliminate send_notification_nbr() and always use send_not
Kill send_notification_nbr().
Be more clever and trigger the PDU SENT event inside send_notification() when tcp->nbr is set. This way we can eliminate send_notification_nbr() and always use send_notification() instead.
show more ...
|
#
02a212ee |
| 03-Mar-2017 |
renato <renato@openbsd.org> |
Minor tweaks.
|
#
2163d027 |
| 02-Sep-2016 |
renato <renato@openbsd.org> |
Fix small memleak on error path.
|
#
c0cfacb4 |
| 02-Sep-2016 |
renato <renato@openbsd.org> |
Improve logging of sent and received messages.
* Standardize the logging format of sent and received messages: "msg-[in|out]: message type: lsr-id A.B.C.D [additional info]";
* Log sent label mes
Improve logging of sent and received messages.
* Standardize the logging format of sent and received messages: "msg-[in|out]: message type: lsr-id A.B.C.D [additional info]";
* Log sent label messages as well, not only the received ones;
* Move the logging of sent notification messages from send_notification_nbr() to send_notification_full(), this way notification triggered by the lde process are logged as well;
* Minor clean-up.
show more ...
|
#
00f5e67f |
| 08-Aug-2016 |
renato <renato@openbsd.org> |
Normalize the received prefixes.
We need to use ldp_applymask() to normalize the received prefixes. Example: 10.1.1.0/16 -> 10.1.0.0/16.
Additionally, stop using IANA's AF numbers in map->fec.prefi
Normalize the received prefixes.
We need to use ldp_applymask() to normalize the received prefixes. Example: 10.1.1.0/16 -> 10.1.0.0/16.
Additionally, stop using IANA's AF numbers in map->fec.prefix.af and use AF_INET/AF_INET6 instead. This makes the code much simpler, use AF_IPV[46] only when necessary (decoding/encoding prefixes).
ok claudio@
show more ...
|
#
a78ea73f |
| 16-Jul-2016 |
renato <renato@openbsd.org> |
Fix parsing of mal-formed optional TLVs/Sub-TLVs.
We must detect if a TLV's length extends beyond the end of the containing message. And, if so, send a fatal "Bad TLV Length" notification message.
Fix parsing of mal-formed optional TLVs/Sub-TLVs.
We must detect if a TLV's length extends beyond the end of the containing message. And, if so, send a fatal "Bad TLV Length" notification message.
Found with the Mu Dynamics Mu-8000 protocol fuzzer.
show more ...
|
#
4dcd314e |
| 15-Jul-2016 |
renato <renato@openbsd.org> |
Improve logging of reserved labels.
Print "exp-null" and "imp-null" instead of "0" and "3", for example. Also, remove print_label() and print_pw_type() from ldpctl.c and use the equivalent functions
Improve logging of reserved labels.
Print "exp-null" and "imp-null" instead of "0" and "3", for example. Also, remove print_label() and print_pw_type() from ldpctl.c and use the equivalent functions from ldpd's log.c.
While here, be more paranoid and use UINT32_MAX instead of UINT_MAX for NO_LABEL.
show more ...
|
#
5953eecf |
| 15-Jul-2016 |
renato <renato@openbsd.org> |
Explicitly ignore the Hop Count and Path Vector TLVs.
Since these are "well known" TLVs, we have to explicitly ignore them otherwise ldpd would send "Unknown TLV" Notification messages when it shoul
Explicitly ignore the Hop Count and Path Vector TLVs.
Since these are "well known" TLVs, we have to explicitly ignore them otherwise ldpd would send "Unknown TLV" Notification messages when it shouldn't.
Fixes regression caused by rev1.51.
show more ...
|
#
60e1e0e7 |
| 01-Jul-2016 |
renato <renato@openbsd.org> |
More renaming and whitespace cleanup.
No binary change after "strip -s".
|
#
5ba85977 |
| 01-Jul-2016 |
renato <renato@openbsd.org> |
Be more compliant with RFC 4447.
When sending a label withdraw during the pseudowire Control Word negotiation, append a "Wrong C-bit" status TLV after the FEC TLV (in conformance to RFC 4447 section
Be more compliant with RFC 4447.
When sending a label withdraw during the pseudowire Control Word negotiation, append a "Wrong C-bit" status TLV after the FEC TLV (in conformance to RFC 4447 section 6.2). Apparently this has no use other than aiding in troubleshooting.
Also, extend the recv_labelmessage() function to accept Status TLVs and ignore them instead of shutting down the session.
show more ...
|
#
d3e006a4 |
| 01-Jul-2016 |
renato <renato@openbsd.org> |
Several minor tweaks.
|
#
65f1d9c1 |
| 27-Jun-2016 |
renato <renato@openbsd.org> |
Handle ibuf_add() errors.
tweaks from claudio@
|
#
d0b141db |
| 18-Jun-2016 |
renato <renato@openbsd.org> |
Remove TODO comments about loop detection.
LDP loop detection is only necessary for ATM LSRs running in cell mode. We are never going to implement this "feature".
Also, add two more comments in lde
Remove TODO comments about loop detection.
LDP loop detection is only necessary for ATM LSRs running in cell mode. We are never going to implement this "feature".
Also, add two more comments in lde_check_request().
show more ...
|
#
c6d1c462 |
| 11-Jun-2016 |
renato <renato@openbsd.org> |
Send an 'Unknown FEC' Notification for unexpected wildcard FECs.
This is basically just to make ANVL happy, there's not much difference between sending an 'Unknown FEC' or a 'Malformed TLV' Notifica
Send an 'Unknown FEC' Notification for unexpected wildcard FECs.
This is basically just to make ANVL happy, there's not much difference between sending an 'Unknown FEC' or a 'Malformed TLV' Notification.
Fixes ANVL LDP test 15.6.
show more ...
|
#
2c943183 |
| 11-Jun-2016 |
renato <renato@openbsd.org> |
Make all TLV parsing functions look the same for consistency.
Also, add one more safety check in recv_init().
|
#
b502a0af |
| 11-Jun-2016 |
renato <renato@openbsd.org> |
Make it possible to parse unknown TLVs in the future.
In the parsing of label and notification messages, we were always unsetting the first bit of the TLV type before comparing it against the types
Make it possible to parse unknown TLVs in the future.
In the parsing of label and notification messages, we were always unsetting the first bit of the TLV type before comparing it against the types we know. We should not do this because our type constants can have this bit set when appropriate.
By now the only unknown TLV supported by ldpd(8) is TLV_TYPE_DUALSTACK, which is only used in Hello messages. But we might change this in the future with support for MAC List TLVs and maybe RFC 7473.
show more ...
|
#
e7143fa3 |
| 11-Jun-2016 |
renato <renato@openbsd.org> |
Fix parsing of multiple optional TLVs in label and notification messages.
We were accepting at most one optional TLV.
Fixes IxANVL LDP test 15.3.
|
#
5dc9330a |
| 23-May-2016 |
renato <renato@openbsd.org> |
Update copyright information.
|
#
5411bbb6 |
| 23-May-2016 |
renato <renato@openbsd.org> |
Remove superfluous includes.
|