ares_set_local_ip4.3 (671B)
1 .\" 2 .\" Copyright 2010 by Ben Greear <greearb@candelatech.com> 3 .\" SPDX-License-Identifier: MIT 4 .\" 5 .TH ARES_SET_LOCAL_IP4 3 "30 June 2010" 6 .SH NAME 7 ares_set_local_ip4 \- Set local IPv4 address outgoing requests. 8 .SH SYNOPSIS 9 .nf 10 #include <ares.h> 11 12 void ares_set_local_ip4(ares_channel_t *\fIchannel\fP, unsigned int \fIlocal_ip\fP) 13 .fi 14 .SH DESCRIPTION 15 The \fBares_set_local_ip4\fP function sets the IP address for outbound 16 requests. The parameter \fIlocal_ip\fP is specified in host byte order. This 17 allows users to specify outbound interfaces when used on multi-homed systems. 18 .SH SEE ALSO 19 .BR ares_set_local_ip6 (3) 20 .SH NOTES 21 This function was added in c-ares 1.7.4