- return local addresses
Kerberos 5 Library (libkrb5, -lkrb5)
Fn krb5_get_all_client_addrs krb5_context context krb5_addresses *addrs
Fn krb5_get_all_server_addrs krb5_context context krb5_addresses *addrs
These functions return in
a list of addresses associated with the local
The server variant returns all configured interface addresses (if
possible), including loop-back addresses. This is useful if you want
to create sockets to listen to.
The client version will also scan local interfaces (can be turned off
to false in
but will not include loop-back addresses, unless there are no other
addresses found. It will remove all addresses included in
but will unconditionally include addresses in
The returned addresses should be freed by calling
Fn krb5_free_addresses .