1NOZZLE_GET_IPS(3)        Kronosnet Programmer's Manual       NOZZLE_GET_IPS(3)
2
3
4

NAME

6       nozzle_get_ips  -  retrieve  the list of all configured ips for a given
7       interface
8
9

SYNOPSIS

11       #include <libnozzle.h>
12
13       int nozzle_get_ips(
14           const nozzle_t       nozzle,
15           struct nozzle_ip   **nozzle_ip
16       );
17

DESCRIPTION

19       nozzle_get_ips
20
21       nozzle - pointer to the nozzle struct
22
23       nozzle_ip - pointer to the head of a list  of  nozzle_ip  structs.  The
24       last IP will have next = NULL. nozzle_ip can be NULL if there are no IP
25       addresses associated with this nozzle device. DO NOT free those structs
26       as they are used internally for IP address tracking.
27

STRUCTURES

29       Info about an IP address on a nozzle interface as returned from nozzle_get_ips
30
31       struct nozzle_ip {
32           char     ipaddr[IPADDR_CHAR_MAX+1];
33           char     prefix[PREFIX_CHAR_MAX+1];
34           int      domain;
35           struct   next;
36       };
37

RETURN VALUE

39       0 on success -1 on error and errno is set.
40

SEE ALSO

42       nozzle_close(3), nozzle_set_mtu(3), nozzle_get_fd(3),
43       nozzle_get_mtu(3), nozzle_reset_mtu(3), nozzle_set_up(3),
44       nozzle_set_down(3), nozzle_reset_mac(3), nozzle_get_handle_by_name(3),
45       nozzle_run_updown(3), nozzle_open(3), nozzle_del_ip(3),
46       nozzle_get_mac(3), nozzle_set_mac(3), nozzle_get_name_by_handle(3),
47       nozzle_add_ip(3)
48
50       Copyright (C) 2010-2021 Red Hat, Inc. All rights reserved.
51
52
53
54kronosnet                         2021-11-15                 NOZZLE_GET_IPS(3)
Impressum