From owner-freebsd-arch@FreeBSD.ORG Fri Dec 12 12:42:55 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FE8416A4CE for ; Fri, 12 Dec 2003 12:42:55 -0800 (PST) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 38FB143D37 for ; Fri, 12 Dec 2003 12:42:54 -0800 (PST) (envelope-from sam@errno.com) Received: from 66.127.85.91 ([66.127.85.91]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.9) with ESMTP id hBCKgpHQ059365 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Fri, 12 Dec 2003 12:42:53 -0800 (PST) (envelope-from sam@errno.com) From: Sam Leffler Organization: Errno Consulting To: arch@freebsd.org Date: Fri, 12 Dec 2003 12:45:59 -0800 User-Agent: KMail/1.5.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200312121245.59954.sam@errno.com> Subject: bpf cleanup X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Dec 2003 20:42:55 -0000 http://people.freebsd.org/~sam/bpf.patch has changes to eliminate the widespread use of stack-based mbufs for use with bpf. The patch replaces them with a new bpf_mtap2 routine that does the right thing w/o exposing the internal workings of bpf. I've restored the M_ASSERTVALID macro to BPF_MTAP but should probably just move this to the bpf_mtap/bpf_mtap2 routines. Buried in this patch are also some changes to make consistent the prepending of the address family for some devices. Previously some code was assuming sizeof(int) == sizeof(u_int) == 4 bytes; they've all been changed to use u_int32_t. Pending feedback I'll commit this stuff after the freeze is lifted. Sam