|
Packit |
6c4009 |
#ifndef _NETINET_ETHER_H
|
|
Packit |
6c4009 |
#include <inet/netinet/ether.h>
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# ifndef _ISOMAC
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
libc_hidden_proto (ether_aton_r)
|
|
Packit |
6c4009 |
libc_hidden_proto (ether_ntoa_r)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Because the `ethers' lookup does not fit so well in the scheme we
|
|
Packit |
6c4009 |
define a dummy struct here which helps us to use the available
|
|
Packit |
6c4009 |
functions. */
|
|
Packit |
6c4009 |
struct etherent
|
|
Packit |
6c4009 |
{
|
|
Packit |
6c4009 |
const char *e_name;
|
|
Packit |
6c4009 |
struct ether_addr e_addr;
|
|
Packit |
6c4009 |
};
|
|
Packit |
6c4009 |
|
|
Packit Bot |
0c2104 |
struct parser_data;
|
|
Packit Bot |
0c2104 |
extern int _nss_files_parse_etherent (char *line, struct etherent *result,
|
|
Packit Bot |
0c2104 |
struct parser_data *data,
|
|
Packit Bot |
0c2104 |
size_t datalen, int *errnop);
|
|
Packit Bot |
0c2104 |
libnss_files_hidden_proto (_nss_files_parse_etherent)
|
|
Packit Bot |
0c2104 |
|
|
Packit |
6c4009 |
#define DECLARE_NSS_PROTOTYPES(service) \
|
|
Packit |
6c4009 |
extern enum nss_status _nss_ ## service ## _setetherent (int __stayopen); \
|
|
Packit |
6c4009 |
extern enum nss_status _nss_ ## service ## _endetherent (void); \
|
|
Packit |
6c4009 |
extern enum nss_status _nss_ ## service ## _getetherent_r \
|
|
Packit |
6c4009 |
(struct etherent *result, char *buffer, \
|
|
Packit |
6c4009 |
size_t buflen, int *errnop); \
|
|
Packit |
6c4009 |
extern enum nss_status _nss_ ## service ## _gethostton_r \
|
|
Packit |
6c4009 |
(const char *name, struct etherent *eth, \
|
|
Packit |
6c4009 |
char *buffer, size_t buflen, int *errnop); \
|
|
Packit |
6c4009 |
extern enum nss_status _nss_ ## service ## _getntohost_r \
|
|
Packit |
6c4009 |
(const struct ether_addr *addr, \
|
|
Packit |
6c4009 |
struct etherent *eth, \
|
|
Packit |
6c4009 |
char *buffer, size_t buflen, int *errnop);
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
DECLARE_NSS_PROTOTYPES (files)
|
|
Packit |
6c4009 |
DECLARE_NSS_PROTOTYPES (nis)
|
|
Packit |
6c4009 |
DECLARE_NSS_PROTOTYPES (nisplus)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#undef DECLARE_NSS_PROTOTYPES
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# endif /* !_ISOMAC */
|
|
Packit |
6c4009 |
#endif
|