1KRB5_GET_ADDRS(3)        BSD Library Functions Manual        KRB5_GET_ADDRS(3)
2

NAME

4     krb5_get_all_client_addrs, krb5_get_all_server_addrs — return local
5     addresses
6

LIBRARY

8     Kerberos 5 Library (libkrb5, -lkrb5)
9

SYNOPSIS

11     #include <krb5.h>
12
13     krb5_error_code
14     krb5_get_all_client_addrs(krb5_context context, krb5_addresses *addrs);
15
16     krb5_error_code
17     krb5_get_all_server_addrs(krb5_context context, krb5_addresses *addrs);
18

DESCRIPTION

20     These functions return in addrs a list of addresses associated with the
21     local host.
22
23     The server variant returns all configured interface addresses (if possi‐
24     ble), including loop-back addresses. This is useful if you want to create
25     sockets to listen to.
26
27     The client version will also scan local interfaces (can be turned off by
28     setting libdefaults/scan_interfaces to false in krb5.conf), but will not
29     include loop-back addresses, unless there are no other addresses found.
30     It will remove all addresses included in libdefaults/ignore_addresses but
31     will unconditionally include addresses in libdefaults/extra_addresses.
32
33     The returned addresses should be freed by calling krb5_free_addresses().
34

SEE ALSO

36     krb5_free_addresses(3)
37
38HEIMDAL                          July 1, 2001                          HEIMDAL
Impressum