| Summary: | patch to bpf.c to support writing to a ppp device | ||
|---|---|---|---|
| Product: | Base System | Reporter: | ala <ala> |
| Component: | kern | Assignee: | Brian Somers <brian> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 3.4-RELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
Responsible Changed From-To: freebsd-bugs->brian Over to ppp / bpf maintainer. This should apply cleanly to -current as well. 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 |
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); }