3 #include <exec/types.h>
5 #include <api/amiga_kernvars.h>
6 #include <kern/amiga_netdb.h>
9 extern struct ifnet
*ifnet
;
10 extern struct icmpstat icmpstat
;
11 extern struct rtstat rtstat
;
12 extern struct radix_node_head
*rt_tables
[];
14 struct kernel_var kvars
[] = {
15 { "_mbstat" , &mbstat
},
16 { "_ipstat" , &ipstat
},
18 { "_tcpstat", &tcpstat
},
20 { "_udpstat" , &udpstat
},
21 { "_ifnet" , &ifnet
},
22 { "_icmpstat" , &icmpstat
},
23 { "_rtstat" , &rtstat
},
24 { "_rt_tables" , &rt_tables
},
26 { "_igmpstat" , &igmpstat
},
28 #ifdef ENABLE_MULTICAST
29 { "_ip_mrtproto" , &ip_mrtptoto
},
30 { "_mrtstat" , &mrtstat
},
31 { "_mrttable" , &mrttable
},
32 { "_viftable" , &viftable
},
39 AROS_LH1(void *, FindKernelVar
,
40 AROS_LHA(STRPTR
, name
, A0
),
41 struct MiamiBase
*, MiamiBase
, 59, Miami
46 struct kernel_var
*kvar
;
48 for (kvar
= kvars
; kvar
->v_name
; kvar
++)
49 if (!strcmp(name
, kvar
->v_name
))