1NOZZLE_GET_IPS(3) Kronosnet Programmer's Manual NOZZLE_GET_IPS(3)
2
3
4
6 nozzle_get_ips - retrieve the list of all configured ips for a given
7 interface
8
10 #include <libnozzle.h>
11
12 int nozzle_get_ips(
13 const nozzle_t nozzle,
14 struct nozzle_ip **nozzle_ip
15 );
16
18 nozzle_get_ips
19
20 nozzle - pointer to the nozzle struct
21
22 nozzle_ip - pointer to the head of a list of nozzle_ip structs. The
23 last IP will have next = NULL. nozzle_ip can be NULL if there are no IP
24 addresses associated with this nozzle device. DO NOT free those structs
25 as they are used internally for IP address tracking.
26
28 struct nozzle_ip {
29 char ipaddr[IPADDR_CHAR_MAX+1];
30 char prefix[PREFIX_CHAR_MAX+1];
31 int domain;
32 struct next;
33 };
34
36 0 on success -1 on error and errno is set.
37
39 nozzle_close(3), nozzle_set_mtu(3), nozzle_get_fd(3),
40 nozzle_get_mtu(3), nozzle_reset_mtu(3), nozzle_set_up(3),
41 nozzle_set_down(3), nozzle_reset_mac(3), nozzle_get_handle_by_name(3),
42 nozzle_run_updown(3), nozzle_open(3), nozzle_del_ip(3),
43 nozzle_get_mac(3), nozzle_set_mac(3), nozzle_get_name_by_handle(3),
44 nozzle_add_ip(3)
45
47 Copyright (C) 2010-2020 Red Hat, Inc. All rights reserved.
48
49
50
51kronosnet 2020-10-19 NOZZLE_GET_IPS(3)