.\" Automatically generated man page, do not edit .TH nozzle_get_ips 3 2020-04-23 "kronosnet" "Kronosnet Programmer's Manual" .SH NAME nozzle_get_ips \- retrieve the list of all configured ips for a given interface .SH SYNOPSIS .nf .B #include .sp \fBint nozzle_get_ips\fP( \fBconst nozzle_t \fP\fInozzle\fP, \fBstruct nozzle_ip **\fP\fInozzle_ip\fP ); .fi .SH DESCRIPTION .PP nozzle_get_ips .PP nozzle - pointer to the nozzle struct .PP nozzle_ip - pointer to the head of a list of nozzle_ip structs. The last IP will have next = NULL. nozzle_ip can be NULL if there are no IP addresses associated with this nozzle device. .PP \fBDO NOT\fR free those structs as they are used internally for IP address tracking. .SH STRUCTURES .nf \fB struct nozzle_ip { char \fIipaddr[IPADDR_CHAR_MAX+1]\fP; char \fIprefix[PREFIX_CHAR_MAX+1]\fP; int \fIdomain\fP; struct \fInext\fP; }; \fP .fi .RE .SH RETURN VALUE .PP 0 on success -1 on error and errno is set. .SH SEE ALSO .PP .nh .ad l \fInozzle_close(3), \fInozzle_set_mtu(3), \fInozzle_get_fd(3), \fInozzle_get_mtu(3), \fInozzle_reset_mtu(3), \fInozzle_set_up(3), \fInozzle_set_down(3), \fInozzle_reset_mac(3), \fInozzle_get_handle_by_name(3), \fInozzle_run_updown(3), \fInozzle_open(3), \fInozzle_del_ip(3), \fInozzle_get_mac(3), \fInozzle_set_mac(3), \fInozzle_get_name_by_handle(3), \fInozzle_add_ip(3) .ad .hy .SH "COPYRIGHT" .PP Copyright (C) 2010-2020 Red Hat, Inc. All rights reserved.