|
Radcli library 1.4.0
A simple radius library
|
Miscellaneous functions. More...
Functions | |
| unsigned short | rc_getport (int type) |
| int | rc_own_hostname (char *hostname, int len) |
| int | rc_get_srcaddr (struct sockaddr *lia, const struct sockaddr *ria) |
| void | rc_own_bind_addr (rc_handle *rh, struct sockaddr_storage *lia) |
| void | rc_openlog (char const *ident) |
Miscellaneous functions.
| int rc_get_srcaddr | ( | struct sockaddr * | lia, |
| const struct sockaddr * | ria ) |
Find outbound interface address for a given destination
Given remote address find local address which the system will use as a source address for sending datagrams to that remote address.
| [out] | lia | local address. |
| [in] | ria | the remote address. |
| unsigned short rc_getport | ( | int | type | ) |
| void rc_openlog | ( | char const * | ident | ) |
Opens system log
This function is a wrapper over openlog() in systems which support it. Don't call it if you already call openlog().
| ident | the name of the program. |
| void rc_own_bind_addr | ( | rc_handle * | rh, |
| struct sockaddr_storage * | lia ) |