ares_set_local_ip6.3 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. .\"
  2. .\" Copyright 2010 by Ben Greear <[email protected]>
  3. .\"
  4. .\" Permission to use, copy, modify, and distribute this
  5. .\" software and its documentation for any purpose and without
  6. .\" fee is hereby granted, provided that the above copyright
  7. .\" notice appear in all copies and that both that copyright
  8. .\" notice and this permission notice appear in supporting
  9. .\" documentation, and that the name of M.I.T. not be used in
  10. .\" advertising or publicity pertaining to distribution of the
  11. .\" software without specific, written prior permission.
  12. .\" M.I.T. makes no representations about the suitability of
  13. .\" this software for any purpose. It is provided "as is"
  14. .\" without express or implied warranty.
  15. .\"
  16. .TH ARES_SET_LOCAL_IP6 3 "30 June 2010"
  17. .SH NAME
  18. ares_set_local_ip6 \- Set local IPv6 address outgoing requests.
  19. .SH SYNOPSIS
  20. .nf
  21. .B #include <ares.h>
  22. .PP
  23. .B void ares_set_local_ip6(ares_channel \fIchannel\fP, const unsigned char* \fIlocal_ip6\fP)
  24. .fi
  25. .SH DESCRIPTION
  26. The \fBares_set_local_ip6\fP function sets the IPv6 address for outbound
  27. IPv6 requests. The parameter \fIlocal_ip6\fP is specified in network byte
  28. order. This allows users to specify outbound interfaces when used on
  29. multi-homed systems. The local_ip6 argument must be 16 bytes in length.
  30. .SH SEE ALSO
  31. .BR ares_set_local_ip4 (3)
  32. .SH NOTES
  33. This function was added in c-ares 1.7.4
  34. .SH AUTHOR
  35. Ben Greear