FreeBSD Bugzilla – Attachment 30965 Details for
Bug 51831
ATM/HARP BPF support
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 896 bytes, created by
Vincent Jardin
on 2003-05-06 08:10:23 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Vincent Jardin
Created:
2003-05-06 08:10:23 UTC
Size:
896 bytes
patch
obsolete
>--- atm_device.c.orig Mon Apr 21 02:45:20 2003 >+++ atm_device.c Tue May 6 08:58:17 2003 >@@ -37,6 +37,8 @@ >=20 > #include <netatm/kern_include.h> >=20 >+#include <net/bpf.h> >+ > #ifndef lint > __RCSID("@(#) $FreeBSD: src/sys/netatm/atm_device.c,v 1.5 1999/08/28 00:= >48:35=20 >peter Exp $"); > #endif >@@ -351,6 +353,16 @@ > tok, state ); > KB_FREEALL((KBuffer *)arg1); > break; >+ } >+ >+ /* >+ * Send the packet to the interface's bpf if this vc has = >one. >+ */ >+ if (cvcp->cvc_vcc && cvcp->cvc_vcc->vc_nif) { >+ struct ifnet *ifp =3D (struct ifnet=20 >*)cvcp->cvc_vcc->vc_nif; >+ >+ if (ifp->if_bpf) >+ bpf_mtap(ifp, (KBuffer *)arg1); > } >=20 > /*
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 51831
: 30965 |
30966