.\" Automatically generated man page, do not edit .TH NOZZLE_ADD_IP 3 2023-01-04 "kronosnet" "Kronosnet Programmer's Manual" .SH NAME nozzle_add_ip \- equivalent of ip addr or ifconfig .SH SYNOPSIS .nf .B #include .sp \fBint nozzle_add_ip\fP( \fBnozzle_t \fP\fInozzle\fP, \fBconst char *\fP\fIipaddr\fP, \fBconst char *\fP\fIprefix\fP ); .fi .SH DESCRIPTION .PP nozzle_add_ip .PP nozzle - pointer to the nozzle struct .PP ipaddr - string containing either an IPv4 or an IPv6 address. Please note that Linux will automatically remove any IPv6 addresses from an interface with MTU < 1280. libnozzle will cache those IPs and re-instate them when MTU is > 1280. MTU must be set via nozzle_set_mtu for IPv6 to be re-instated. .PP prefix - 24, 64 or any valid network prefix for the requested address. .RE .SH RETURN VALUE .PP 0 on success -1 on error and errno is set. .PP .SH SEE ALSO .PP .nh .ad l \fInozzle_close\fR(3), \fInozzle_set_mtu\fR(3), \fInozzle_get_fd\fR(3), \fInozzle_get_mtu\fR(3), \fInozzle_reset_mtu\fR(3), \fInozzle_set_up\fR(3), \fInozzle_get_ips\fR(3), \fInozzle_set_down\fR(3), \fInozzle_reset_mac\fR(3), \fInozzle_get_handle_by_name\fR(3), \fInozzle_run_updown\fR(3), \fInozzle_open\fR(3), \fInozzle_del_ip\fR(3), \fInozzle_get_mac\fR(3), \fInozzle_set_mac\fR(3), \fInozzle_get_name_by_handle\fR(3), .ad .hy .SH "COPYRIGHT" .PP Copyright (C) 2010-2023 Red Hat, Inc. All rights reserved.