FreeBSD Bugzilla – Attachment 16318 Details for
Bug 29962
sent broadcast packets get spurious 4 byte prefix
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 643 bytes, created by
kolya
on 2001-08-22 20:10:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
kolya
Created:
2001-08-22 20:10:01 UTC
Size:
643 bytes
patch
obsolete
>--- if_loop.c.orig Wed Aug 22 14:22:54 2001 >+++ if_loop.c Wed Aug 22 14:23:52 2001 >@@ -223,22 +223,8 @@ > } > > /* Let BPF see incoming packet */ >- if (ifp->if_bpf) { >- struct mbuf m0, *n = m; >- >- /* >- * We need to prepend the address family as >- * a four byte field. Cons up a dummy header >- * to pacify bpf. This is safe because bpf >- * will only read from the mbuf (i.e., it won't >- * try to free it or keep a pointer a to it). >- */ >- m0.m_next = m; >- m0.m_len = 4; >- m0.m_data = (char *)⁡ >- n = &m0; >- bpf_mtap(ifp, n); >- } >+ if (ifp->if_bpf) >+ bpf_mtap(ifp, m); > > /* Strip away media header */ > if (hlen > 0) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 29962
: 16318