.\" Automatically generated man page, do not edit .TH nozzle_add_ip 3 2020-04-23 "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. .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_get_ips(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), .ad .hy .SH "COPYRIGHT" .PP Copyright (C) 2010-2020 Red Hat, Inc. All rights reserved.