#endif
#if defined(AFS_SUN510_ENV)
-#include <sys/sunddi.h>
-#include <net/if.h>
+#include "h/sunddi.h"
extern ddi_taskq_t *afs_taskq;
extern krwlock_t afsifinfo_lock;
+/* this should be in rx/SOLARIS/rx_knet.c accessed via accessor functions,
+ eventually */
+#include "net/if.h"
/* Global interface info struct */
struct afs_ifinfo {
- char ifname[LIFNAMSIZ];
- ipaddr_t ipaddr;
- ipaddr_t netmask;
- uint_t mtu;
- uint64_t flags;
- int metric;
- ipaddr_t dstaddr;
+ char ifname[LIFNAMSIZ];
+ ipaddr_t ipaddr;
+ ipaddr_t netmask;
+ uint_t mtu;
+ uint64_t flags;
+ int metric;
+ ipaddr_t dstaddr;
};
-
-extern struct afs_ifinfo afsifinfo[ADDRSPERSITE];
#endif
-
#endif /* _OSI_MACHDEP_H_ */
extern struct domain inetdomain;
#endif /* AFS_XBSD_ENV */
+#if defined(AFS_SUN510_ENV)
+extern struct afs_ifinfo afsifinfo[ADDRSPERSITE];
+#endif
+
#endif /* _RX_KCOMMON_H_ */
#endif
#endif
extern void osi_StopListener(void);
-
/* ARCH/rx_kmutex.c */
#if defined(KERNEL) && defined(AFS_LINUX20_ENV)
extern void afs_mutex_init(afs_kmutex_t * l);
#endif
extern int osi_NetReceive(osi_socket so, struct sockaddr_in *addr,
struct iovec *dvec, int nvecs, int *lengthp);
-#if defined(AFS_SUN510_ENV)
+#if defined(KERNEL) && defined(AFS_SUN510_ENV)
extern void osi_StartNetIfPoller(void);
extern void osi_NetIfPoller(void);
+extern struct afs_ifinfo afsifinfo[ADDRSPERSITE];
#endif
extern void osi_StopListener(void);
extern int rxi_FindIfMTU(afs_uint32 addr);