From owner-cvs-all@FreeBSD.ORG Thu Apr 19 15:48:17 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 35BB816A403; Thu, 19 Apr 2007 15:48:17 +0000 (UTC) (envelope-from mtm@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 0E9E713C45A; Thu, 19 Apr 2007 15:48:17 +0000 (UTC) (envelope-from mtm@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l3JFmGub033465; Thu, 19 Apr 2007 15:48:16 GMT (envelope-from mtm@repoman.freebsd.org) Received: (from mtm@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l3JFmGAF033464; Thu, 19 Apr 2007 15:48:16 GMT (envelope-from mtm) Message-Id: <200704191548.l3JFmGAF033464@repoman.freebsd.org> From: Mike Makonnen Date: Thu, 19 Apr 2007 15:48:16 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/sys socket.h src/lib/libc/net rthdr.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Apr 2007 15:48:17 -0000 mtm 2007-04-19 15:48:16 UTC FreeBSD src repository Modified files: sys/sys socket.h lib/libc/net rthdr.c Log: Make inet6_rth_* family of functions more compliant with RFC3542: 1. CMSG_NXTHDR(mhdr, cmsg) is supposed to dereference cmsg and return the next header in the chain. If cmsg is NULL it should return the first header, behaving essentially like CMSG_FIRSTHDR(). 2. inet6_rth_(space|init|add) should do basic checking on their input to verify that the number of headers (segments) is between 0 and 127 inclusive. MFC-After: 1 month Revision Changes Path 1.9 +9 -1 src/lib/libc/net/rthdr.c 1.93 +4 -2 src/sys/sys/socket.h