CVSROOT: /cvs Module name: src Changes by: ren...@cvs.openbsd.org 2016/05/23 12:25:30
Modified files: usr.sbin/ldpd : ldpd.h ldpe.c socket.c Log message: Move socket creation and setup into a specialized function. Right now we use three network sockets in ldpd: * the discovery socket (udp+mcast); * the extended discovery socket (udp); * the session socket (tcp). When we introduce IPv6 support, we'll get three more sockets. In order to prevent code duplication in the future, add a specialized function that creates a socket according to the given type (and address-family later). This also improves readability because it makes it easier to see the differences between each socket.