ARES_SET_LOCAL_IP6(3)
π NAME π
ares_set_local_ip6 β bestie, this one sets the local IPv6 address for your outgoing requests. It's giving "I choose my own outbound interface" energy. β¨
π SYNOPSIS π
#include <ares.h>
void ares_set_local_ip6(ares_channel_t *channel, const unsigned char* local_ip6)
π¦ DESCRIPTION π¦
Okay so, ares_set_local_ip6 sets the IPv6 address that your outbound IPv6 requests are gonna use. Main character behaviour, fr fr. π
The local_ip6 parameter is specified in network byte order β do not come in here with your host byte order, that's not the vibe. π
The way this is actually iconic is on multi-homed systems π, because it lets you pick which outbound interface your traffic goes out of. You're literally choosing your own adventure. No cap.
Heads up bestie: the local_ip6 argument must be 16 bytes in length. Sixteen. Not 15, not 17, we don't do that here. π
πΈ SEE ALSO πΈ
ares_set_local_ip4(3)β the IPv4 sibling, your girl's other half π«Ά
β NOTES β
Not me pulling up the receipts β this function was added in c-ares 1.7.4. Oldie but a goodie, she's been serving since forever. π
Okay that's the whole page, you ate that π This little baddie comes to you courtesy of the c-ares library, dated 30 June 2010 β yes, she's a 2010s icon and she still slays. Mwah, go forth and set your local IPv6 address, bestie. πβ¨
π¦ where this page comes from
- alpine 3.22: c-ares-doc 1.34.9-r0 Β· MIT
- alpine 3.23: c-ares-doc 1.34.9-r0 Β· MIT
- alpine 3.24: c-ares-doc 1.34.9-r0 Β· MIT
- arch rolling: c-ares 1.34.9-1 Β· MIT
- centos-stream 10: c-ares-devel 1.34.9-1.el10 Β· MIT
- debian trixie: libc-ares-dev 1.34.5-1+deb13u1 Β· MIT
- fedora 43: c-ares-devel 1.34.5-2.fc43 Β· MIT
- fedora 43: c-ares-devel 1.34.5-2.fc43 Β· MIT
- fedora 43: c-ares-devel 1.34.8-1.fc43 Β· MIT
- fedora 43: c-ares-devel 1.34.8-1.fc43 Β· MIT
- fedora 44: c-ares-devel 1.34.6-3.fc44 Β· MIT
- fedora 44: c-ares-devel 1.34.6-3.fc44 Β· MIT
- fedora 44: c-ares-devel 1.34.8-1.fc44 Β· MIT
- fedora 44: c-ares-devel 1.34.8-1.fc44 Β· MIT
- nixos 26.05: c-ares 1.34.9
- nixpkgs unstable: c-ares 1.34.8
- opensuse-leap 16.0: c-ares-devel 1.34.8-160000.1.1 Β· MIT
- opensuse-leap 16.0: c-ares-devel 1.34.8-160000.1.1 Β· MIT
- opensuse-leap 16.0: c-ares-devel 1.34.8-160000.1.1 Β· MIT
- opensuse-leap 16.0: c-ares-devel 1.34.8-160000.1.1 Β· MIT
- ubuntu questing: libc-ares-dev 1.34.5-1
- ubuntu questing: libc-ares-dev 1.34.5-1ubuntu0.1
- ubuntu resolute: libc-ares-dev 1.34.6-1 Β· MIT
- ubuntu resolute: libc-ares-dev 1.34.6-1ubuntu0.1
- ubuntu resolute: libc-ares-dev 1.34.6-1ubuntu0.2 Β· MIT
- ubuntu stonking: libc-ares-dev 1.34.8-1 Β· MIT
- π the page's license: MIT
- Copyright 2010 by Ben Greear <greearb@candelatech.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms