1 #ifndef _NETINET_ETHER_H
2 #include <inet/netinet/ether.h>
6 libc_hidden_proto (ether_aton_r
)
7 libc_hidden_proto (ether_ntoa_r
)
9 /* Because the `ethers' lookup does not fit so well in the scheme we
10 define a dummy struct here which helps us to use the available
15 struct ether_addr e_addr
;
18 #define DECLARE_NSS_PROTOTYPES(service) \
19 extern enum nss_status _nss_ ## service ## _setetherent (int __stayopen); \
20 extern enum nss_status _nss_ ## service ## _endetherent (void); \
21 extern enum nss_status _nss_ ## service ## _getetherent_r \
22 (struct etherent *result, char *buffer, \
23 size_t buflen, int *errnop); \
24 extern enum nss_status _nss_ ## service ## _gethostton_r \
25 (const char *name, struct etherent *eth, \
26 char *buffer, size_t buflen, int *errnop); \
27 extern enum nss_status _nss_ ## service ## _getntohost_r \
28 (const struct ether_addr *addr, \
29 struct etherent *eth, \
30 char *buffer, size_t buflen, int *errnop);
32 DECLARE_NSS_PROTOTYPES (files
)
34 #undef DECLARE_NSS_PROTOTYPES
36 # endif /* !_ISOMAC */