Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 May 2000 10:28:41 -0700 (PDT)
From:      ala@merit.edu
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/18506: patch to bpf.c to support writing to a ppp device
Message-ID:  <20000511172841.3FCE537B973@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000511172841.3FCE537B973>