From owner-freebsd-bugs Thu May 11 10:30: 7 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id ACD5D37BBAE for ; Thu, 11 May 2000 10:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id KAA14422; Thu, 11 May 2000 10:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 3FCE537B973; Thu, 11 May 2000 10:28:41 -0700 (PDT) Message-Id: <20000511172841.3FCE537B973@hub.freebsd.org> Date: Thu, 11 May 2000 10:28:41 -0700 (PDT) From: ala@merit.edu To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: kern/18506: patch to bpf.c to support writing to a ppp device Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 18506 >Category: kern >Synopsis: patch to bpf.c to support writing to a ppp device >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu May 11 10:30:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Andy Adams >Release: 3.4-RELEASE >Organization: GateD Project >Environment: FreeBSD arten.merit.edu 3.4-RELEASE FreeBSD 3.4-RELEASE #2: Thu May 11 09:18:11 EDT 2000 ala@arten.merit.edu:/usr/src/sys-altq-pim/compile/ALTQ-PIM i386 >Description: This is a small patch to allow bpf.c:bpfwrite (actually bpf_movein) to handle writing to ppp devices. Here is the patch. Thanks! -Andy Adams GateD Team *** /usr/src/sys/net/bpf.c Sun Aug 29 12:28:09 1999 --- /usr/src/sys-altq-pim/net/bpf.c Thu May 11 09:17:56 2000 *************** *** 211,216 **** --- 211,220 ---- break; #endif + case DLT_PPP: + sockp->sa_family = AF_UNSPEC; + hlen = 4; /* This should match PPP_HDRLEN */ + break; default: return (EIO); } >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message