Bug 18506

Summary: patch to bpf.c to support writing to a ppp device
Product: Base System Reporter: ala <ala>
Component: kernAssignee: Brian Somers <brian>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.4-RELEASE   
Hardware: Any   
OS: Any   

Description ala 2000-05-11 18:30:00 UTC
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);
        }
Comment 1 Johan Karlsson freebsd_committer freebsd_triage 2000-09-16 13:37:15 UTC
Responsible Changed
From-To: freebsd-bugs->brian

Over to ppp / bpf maintainer. 
This should apply cleanly to -current as well.
Comment 2 Brian Somers freebsd_committer freebsd_triage 2000-09-16 15:17:19 UTC
State Changed
From-To: open->closed

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