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 <libknet.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.
25
26 DO NOT free those structs as they are used internally for IP address
27 tracking.
28
30 struct nozzle_ip {
31 char ipaddr[IPADDR_CHAR_MAX+1];
32 char prefix[PREFIX_CHAR_MAX+1];
33 int domain;
34 struct next;
35 };
36
38 0 on success -1 on error and errno is set.
39
41 nozzle_close(3), nozzle_set_mtu(3), nozzle_get_fd(3),
42 nozzle_get_mtu(3), nozzle_reset_mtu(3), nozzle_set_up(3),
43 nozzle_set_down(3), nozzle_reset_mac(3), nozzle_get_handle_by_name(3),
44 nozzle_run_updown(3), nozzle_open(3), nozzle_del_ip(3),
45 nozzle_get_mac(3), nozzle_set_mac(3), nozzle_get_name_by_handle(3),
46 nozzle_add_ip(3)
47
49 Copyright (C) 2010-2019 Red Hat, Inc. All rights reserved.
50
51
52
53kronosnet 2019-10-16 nozzle_get_ips(3)