From owner-cvs-src@FreeBSD.ORG Sun Jun 26 18:11:12 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C28916A41C; Sun, 26 Jun 2005 18:11:12 +0000 (GMT) (envelope-from dwmalone@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id F152F43D1F; Sun, 26 Jun 2005 18:11:11 +0000 (GMT) (envelope-from dwmalone@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j5QIBBjg086043; Sun, 26 Jun 2005 18:11:11 GMT (envelope-from dwmalone@repoman.freebsd.org) Received: (from dwmalone@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j5QIBBcD086042; Sun, 26 Jun 2005 18:11:11 GMT (envelope-from dwmalone) Message-Id: <200506261811.j5QIBBcD086042@repoman.freebsd.org> From: David Malone Date: Sun, 26 Jun 2005 18:11:11 +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/dev/iicbus if_ic.c src/sys/i4b/driver i4b_ipr.c src/sys/net bpf.c if_disc.c if_faith.c if_gif.c if_gre.c if_loop.c if_stf.c if_tun.c src/sys/netgraph ng_iface.c ng_sppp.c src/sys/netinet ip_carp.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jun 2005 18:11:12 -0000 dwmalone 2005-06-26 18:11:11 UTC FreeBSD src repository Modified files: sys/dev/iicbus if_ic.c sys/i4b/driver i4b_ipr.c sys/net bpf.c if_disc.c if_faith.c if_gif.c if_gre.c if_loop.c if_stf.c if_tun.c sys/netgraph ng_iface.c ng_sppp.c sys/netinet ip_carp.c Log: Fix some long standing bugs in writing to the BPF device attached to a DLT_NULL interface. In particular: 1) Consistently use type u_int32_t for the header of a DLT_NULL device - it continues to represent the address family as always. 2) In the DLT_NULL case get bpf_movein to store the u_int32_t in a sockaddr rather than in the mbuf, to be consistent with all the DLT types. 3) Consequently fix a bug in bpf_movein/bpfwrite which only permitted packets up to 4 bytes less than the MTU to be written. 4) Fix all DLT_NULL devices to have the code required to allow writing to their bpf devices. 5) Move the code to allow writing to if_lo from if_simloop to looutput, because it only applies to DLT_NULL devices but was being applied to other devices that use if_simloop possibly incorrectly. PR: 82157 Submitted by: Matthew Luckie Approved by: re (scottl) Revision Changes Path 1.23 +7 -1 src/sys/dev/iicbus/if_ic.c 1.34 +9 -1 src/sys/i4b/driver/i4b_ipr.c 1.152 +19 -13 src/sys/net/bpf.c 1.48 +5 -6 src/sys/net/if_disc.c 1.36 +6 -7 src/sys/net/if_faith.c 1.52 +9 -2 src/sys/net/if_gif.c 1.31 +8 -1 src/sys/net/if_gre.c 1.106 +10 -10 src/sys/net/if_loop.c 1.50 +12 -2 src/sys/net/if_stf.c 1.152 +6 -7 src/sys/net/if_tun.c 1.43 +5 -8 src/sys/netgraph/ng_iface.c 1.8 +1 -1 src/sys/netgraph/ng_sppp.c 1.26 +9 -0 src/sys/netinet/ip_carp.c