rc_get_srcaddr - Man Page
Find outbound interface address for a given destination.
Synopsis
#include <radcli/>
int rc_get_srcaddr(
struct sockaddr *lia,
const struct sockaddr *ria
);Description
Given remote address find local address which the system will use as a source address for sending datagrams to that remote address.
Parameters
- lia
local address.
- ria
the remote address.
Return Value
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.
See Also
rc_getport(3), rc_openlog(3), rc_own_hostname(3), rc_setdebug(3)
Referenced By
radcli.h(3), rc_getport(3), rc_openlog(3), rc_own_hostname(3), rc_setdebug(3).
2026-08-19 radcli Radius client library