ether_hostton and ether_ntohost are entry points for nss functionality.
This commit moves them from the 'inet' subdirectory to 'nss', and
adjusts any references accordingly.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
deadline \
ether_aton \
ether_aton_r \
deadline \
ether_aton \
ether_aton_r \
ether_line \
ether_ntoa \
ether_ntoa_r \
ether_line \
ether_ntoa \
ether_ntoa_r \
gethstbyad \
gethstbyad_r \
gethstbynm \
gethstbyad \
gethstbyad_r \
gethstbynm \
endaliasent; endhostent; endnetent; endnetgrent; endprotoent; endservent;
# e*
endaliasent; endhostent; endnetent; endnetgrent; endprotoent; endservent;
# e*
- ether_aton; ether_aton_r; ether_hostton; ether_line; ether_ntoa;
- ether_ntoa_r; ether_ntohost;
+ ether_aton; ether_aton_r; ether_line; ether_ntoa;
+ ether_ntoa_r;
# g*
getdomainname; gethostbyaddr; gethostbyaddr_r; gethostbyname;
# g*
getdomainname; gethostbyaddr; gethostbyaddr_r; gethostbyname;
CFLAGS-getaliasent.c += -fexceptions
endif
CFLAGS-getaliasent.c += -fexceptions
endif
+# ethers routines:
+routines += \
+ ether_hton \
+ ether_ntoh \
+ # routines
+
# grp routines:
routines += \
fgetgrent \
# grp routines:
routines += \
fgetgrent \
endgrent;
endpwent;
endspent;
endgrent;
endpwent;
endspent;
+ ether_hostton; ether_ntohost;
# f*
fgetgrent; fgetgrent_r;
# f*
fgetgrent; fgetgrent_r;
#include <netinet/if_ether.h>
#include <string.h>
#include <netinet/if_ether.h>
#include <string.h>
-#include "../nss/nsswitch.h"
/* Type of the lookup function we need here. */
typedef int (*lookup_function) (const char *, struct etherent *, char *, int,
/* Type of the lookup function we need here. */
typedef int (*lookup_function) (const char *, struct etherent *, char *, int,
#include <netinet/if_ether.h>
#include <string.h>
#include <netinet/if_ether.h>
#include <string.h>
-#include <nss/nsswitch.h>
/* Type of the lookup function we need here. */
/* Type of the lookup function we need here. */