|
Lines 37-42
Link Here
|
| 37 |
#include <netatm/kern_include.h> |
37 |
#include <netatm/kern_include.h> |
|
|
38 |
#include <net/bpf.h> |
| 39 |
|
| 38 |
#ifndef lint |
40 |
#ifndef lint |
| 39 |
__RCSID("@(#) $FreeBSD: src/sys/netatm/atm_if.c,v 1.5 1999/08/28 00:48:3= |
41 |
__RCSID("@(#) $FreeBSD: src/sys/netatm/atm_if.c,v 1.5 1999/08/28 00:48:3= |
| 40 |
#endif |
42 |
#endif |
|
Lines 51-58
Link Here
|
| 51 |
*/ |
53 |
*/ |
| 52 |
static int atm_physif_ioctl __P((int, caddr_t, caddr_t)); |
54 |
static int atm_physif_ioctl __P((int, caddr_t, caddr_t)); |
| 53 |
#if (defined(BSD) && (BSD >=3D 199306)) |
55 |
#if (defined(BSD) && (BSD >=3D 199306)) |
|
|
56 |
#if defined(__FreeBSD__) && (__FreeBSD_version < 440000) |
| 54 |
static int atm_netif_rtdel __P((struct radix_node *, void *)); |
57 |
static int atm_netif_rtdel __P((struct radix_node *, void *)); |
| 55 |
#endif |
58 |
#endif |
|
|
59 |
#endif |
| 56 |
static int atm_if_ioctl __P((struct ifnet *, u_long, caddr_t)); |
60 |
static int atm_if_ioctl __P((struct ifnet *, u_long, caddr_t)); |
| 57 |
static int atm_ifparse __P((char *, char *, int, int *)); |
61 |
static int atm_ifparse __P((char *, char *, int, int *)); |
|
Lines 762-767
Link Here
|
| 762 |
if_attach(ifp); |
766 |
if_attach(ifp); |
| 763 |
/* |
767 |
/* |
|
|
768 |
* Add to BPF interface list |
| 769 |
* DLT_ATM_RFC1483 cannot be used because both NULL and LLC/SNAP = |
| 770 |
* be provisionned. |
| 771 |
*/ |
| 772 |
bpfattach(ifp, DLT_ATM_CLIP, T_ATM_LLC_MAX_LEN); |
| 773 |
|
| 774 |
/* |
| 764 |
* Add to physical interface list |
775 |
* Add to physical interface list |
| 765 |
*/ |
776 |
*/ |
| 766 |
LINK2TAIL(nip, struct atm_nif, pip->pif_nif, nif_pnext); |
777 |
LINK2TAIL(nip, struct atm_nif, pip->pif_nif, nif_pnext); |
|
Lines 807-817
Link Here
|
| 807 |
struct atm_nif *nip; |
818 |
struct atm_nif *nip; |
| 808 |
{ |
819 |
{ |
| 809 |
struct atm_ncm *ncp; |
820 |
struct atm_ncm *ncp; |
| 810 |
int s, i; |
821 |
int s; |
| 811 |
struct ifnet *ifp =3D &nip->nif_if; |
822 |
struct ifnet *ifp =3D &nip->nif_if; |
|
|
823 |
#if defined(__FreeBSD__) && (__FreeBSD_version < 440000) |
| 824 |
int i; |
| 812 |
struct ifaddr *ifa; |
825 |
struct ifaddr *ifa; |
| 813 |
struct in_ifaddr *ia; |
826 |
struct in_ifaddr *ia; |
| 814 |
struct radix_node_head *rnh; |
827 |
struct radix_node_head *rnh; |
|
|
828 |
#endif |