.\" File automatically generated by doxy2man0.3 .\" Generation date: Wed Aug 19 2026 .TH rc_get_srcaddr 3 2026-08-19 "radcli" "Radius client library" .SH "NAME" rc_get_srcaddr \- Find outbound interface address for a given destination. .SH SYNOPSIS .nf .B #include .sp \fBint rc_get_srcaddr\fP( \fBstruct sockaddr *\fP\fIlia\fP, \fBconst struct sockaddr *\fP\fIria\fP ); .fi .SH DESCRIPTION .PP Given remote address find local address which the system will use as a source address for sending datagrams to that remote address. .SH PARAMETERS .TP .B lia local address. .TP .B ria the remote address. .SH RETURN VALUE .PP OK_RC on success. NETUNREACH_RC if network is unreachable (i.e. no route to destination). ERROR_RC for all other failures. Address is filled into the first argument. .SH SEE ALSO .PP .nh .ad l \fIrc_getport\fP(3), \fIrc_openlog\fP(3), \fIrc_own_hostname\fP(3), \fIrc_setdebug\fP(3) .ad .hy