FreeBSD Bugzilla – Attachment 30966 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), 1.44 KB, 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:
1.44 KB
patch
obsolete
>--- atm_if.c.orig Thu Apr 17 01:28:43 2003 >+++ atm_if.c Tue May 6 09:01:42 2003 >@@ -37,6 +37,8 @@ >=20 > #include <netatm/kern_include.h> >=20 >+#include <net/bpf.h> >+ > #ifndef lint > __RCSID("@(#) $FreeBSD: src/sys/netatm/atm_if.c,v 1.5 1999/08/28 00:48:3= >5=20 >peter Exp $"); > #endif >@@ -51,8 +53,10 @@ > */ > static int atm_physif_ioctl __P((int, caddr_t, caddr_t)); > #if (defined(BSD) && (BSD >=3D 199306)) >+#if defined(__FreeBSD__) && (__FreeBSD_version < 440000) > static int atm_netif_rtdel __P((struct radix_node *, void *)); > #endif >+#endif > static int atm_if_ioctl __P((struct ifnet *, u_long, caddr_t)); > static int atm_ifparse __P((char *, char *, int, int *)); >=20 >@@ -762,6 +766,13 @@ > if_attach(ifp); >=20 > /* >+ * Add to BPF interface list >+ * DLT_ATM_RFC1483 cannot be used because both NULL and LLC/SNAP = >could >+ * be provisionned. >+ */ >+ bpfattach(ifp, DLT_ATM_CLIP, T_ATM_LLC_MAX_LEN); >+ >+ /* > * Add to physical interface list > */ > LINK2TAIL(nip, struct atm_nif, pip->pif_nif, nif_pnext); >@@ -807,11 +818,14 @@ > struct atm_nif *nip; > { > struct atm_ncm *ncp; >- int s, i; >+ int s; > struct ifnet *ifp =3D &nip->nif_if; >+#if defined(__FreeBSD__) && (__FreeBSD_version < 440000) >+ int i; > struct ifaddr *ifa; > struct in_ifaddr *ia; > struct radix_node_head *rnh; >+#endif
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