CVSROOT: /cvs Module name: src Changes by: ren...@cvs.openbsd.org 2016/05/23 09:53:40
Modified files: usr.sbin/ldpd : hello.c ldp.h ldpd.conf.5 Log message: Validate received hello holdtime and keepalive time. Refuse a keepalive time of zero because it's invalid. For the hello holdtime, zero is valid and means infinite. Additionally, refuse values smaller than three for both the keepalive timer and the hello holdtime. The keepalive/hello interval is calculated as one third of their holdtime, which means that if the holdtime is one or two, the calculated interval would be zero using integer arithmetic. If anyone wants to use such a small holdtime, he or she should use BFD instead.