inet_common.h 823 B

1234567891011121314151617181920212223242526
  1. /* vi: set sw=4 ts=4: */
  2. /*
  3. * stolen from net-tools-1.59 and stripped down for busybox by
  4. * Erik Andersen <andersen@codepoet.org>
  5. *
  6. * Heavily modified by Manuel Novoa III Mar 12, 2001
  7. *
  8. */
  9. #include "platform.h"
  10. /* hostfirst!=0 If we expect this to be a hostname,
  11. try hostname database first
  12. */
  13. int INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst) FAST_FUNC;
  14. /* numeric: & 0x8000: "default" instead of "*",
  15. * & 0x4000: host instead of net,
  16. * & 0x0fff: don't resolve
  17. */
  18. int INET6_resolve(const char *name, struct sockaddr_in6 *sin6) FAST_FUNC;
  19. /* These return malloced string */
  20. char *INET_rresolve(struct sockaddr_in *s_in, int numeric, uint32_t netmask) FAST_FUNC;
  21. char *INET6_rresolve(struct sockaddr_in6 *sin6, int numeric) FAST_FUNC;