From nobody@FreeBSD.ORG  Thu May 11 10:28:41 2000
Return-Path: <nobody@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
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: patch to bpf.c to support writing to a ppp device
X-Send-Pr-Version: www-1.0

>Number:         18506
>Category:       kern
>Synopsis:       patch to bpf.c to support writing to a ppp device
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    brian
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 11 10:30:00 PDT 2000
>Closed-Date:    Sat Sep 16 07:17:19 PDT 2000
>Last-Modified:  Sat Sep 16 07:18:16 PDT 2000
>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:
Responsible-Changed-From-To: freebsd-bugs->brian 
Responsible-Changed-By: johan 
Responsible-Changed-When: Sat Sep 16 05:37:15 PDT 2000 
Responsible-Changed-Why:  
Over to ppp / bpf maintainer. 
This should apply cleanly to -current as well. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=18506 
State-Changed-From-To: open->closed 
State-Changed-By: brian 
State-Changed-When: Sat Sep 16 07:17:19 PDT 2000 
State-Changed-Why:  
Applied to -current - thanks. 

BTW, to the originator, your cut'n'pasted diff didn't work because it 
changed all tabs to spaces.  Cutting & pasting patches is not a good idea :-I 

http://www.freebsd.org/cgi/query-pr.cgi?pr=18506 
>Unformatted:
