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       struct nozzle_ip {
30           char     ipaddr[IPADDR_CHAR_MAX+1];
31           char     prefix[PREFIX_CHAR_MAX+1];
32           int      domain;
33           struct   next;
34       };
35

RETURN VALUE

37       0 on success -1 on error and errno is set.
38

SEE ALSO

40       nozzle_close(3), nozzle_set_mtu(3), nozzle_get_fd(3),
41       nozzle_get_mtu(3), nozzle_reset_mtu(3), nozzle_set_up(3),
42       nozzle_set_down(3), nozzle_reset_mac(3), nozzle_get_handle_by_name(3),
43       nozzle_run_updown(3), nozzle_open(3), nozzle_del_ip(3),
44       nozzle_get_mac(3), nozzle_set_mac(3), nozzle_get_name_by_handle(3),
45       nozzle_add_ip(3)
46
48       Copyright (C) 2010-2020 Red Hat, Inc. All rights reserved.
49
50
51
52kronosnet                         2020-10-19                 NOZZLE_GET_IPS(3)
Impressum