tools/adflib: build only host variant which is used by Sam440 target
[AROS.git] / workbench / network / stacks / AROSTCP / bsdsocket / api / amiga_kernvars.c
blob456078007903866591002f3cbc08dac627cdbcd4
1 #include <conf.h>
3 #include <exec/types.h>
4 #include <sys/types.h>
5 #include <api/amiga_kernvars.h>
6 #include <kern/amiga_netdb.h>
7 #include <net/pfil.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 },
17 { "_tcb" , &tcb },
18 { "_tcpstat", &tcpstat },
19 { "_udb" , &udb },
20 { "_udpstat" , &udpstat },
21 { "_ifnet" , &ifnet },
22 { "_icmpstat" , &icmpstat },
23 { "_rtstat" , &rtstat },
24 { "_rt_tables" , &rt_tables },
25 #ifdef ENABLE_IGMP
26 { "_igmpstat" , &igmpstat },
27 #endif
28 #ifdef ENABLE_MULTICAST
29 { "_ip_mrtproto" , &ip_mrtptoto },
30 { "_mrtstat" , &mrtstat },
31 { "_mrttable" , &mrttable },
32 { "_viftable" , &viftable },
33 #endif
34 { NULL , NULL }
37 struct MiamiBase;
39 AROS_LH1(void *, FindKernelVar,
40 AROS_LHA(STRPTR, name, A0),
41 struct MiamiBase *, MiamiBase, 59, Miami
44 AROS_LIBFUNC_INIT
46 struct kernel_var *kvar;
48 for (kvar = kvars; kvar->v_name; kvar++)
49 if (!strcmp(name, kvar->v_name))
50 return kvar->v_addr;
51 return NULL;
53 AROS_LIBFUNC_EXIT