From owner-cvs-src-old@FreeBSD.ORG Sun Dec 13 15:19:26 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 843B51065670 for ; Sun, 13 Dec 2009 15:19:26 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 721F58FC15 for ; Sun, 13 Dec 2009 15:19:26 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id nBDFJQfm001445 for ; Sun, 13 Dec 2009 15:19:26 GMT (envelope-from hrs@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id nBDFJQaL001444 for cvs-src-old@freebsd.org; Sun, 13 Dec 2009 15:19:26 GMT (envelope-from hrs@repoman.freebsd.org) Message-Id: <200912131519.nBDFJQaL001444@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to hrs@repoman.freebsd.org using -f From: Hiroki Sato Date: Sun, 13 Dec 2009 15:19:01 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.sbin/ypserv yp_main.c ypserv.8 X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Dec 2009 15:19:26 -0000 hrs 2009-12-13 15:19:01 UTC FreeBSD src repository Modified files: usr.sbin/ypserv yp_main.c ypserv.8 Log: SVN rev 200478 on 2009-12-13 15:19:01Z by hrs - Fix main() to use two separated sockets for the two transports when "-P port" is specified. It invoked svc{tcp,udp}_create() for only one of the two allocated sockets, and prevented the TCP socket from binding to as the result. - Use TI-RPC functions and handle sockets in a transport-independent way. At this moment only AF_INET ("udp" and "tcp") is supported because others need rewrites of ACL handling and yp clients. - Add '-h addr' to specify addresses to bind to. - Convert _msgout() to use variable argument lists and remove asprintf() for error strings. - Remove register storage class specifier. Discussed with: kuriyama MFC after: 1 week Revision Changes Path 1.31 +290 -115 src/usr.sbin/ypserv/yp_main.c 1.44 +10 -1 src/usr.sbin/ypserv/ypserv.8