NOZZLE_ADD_IP(3)
π NOZZLE_ADD_IP π
okay so bestie, welcome to nozzle_add_ip from the Kronosnet Programmer's Manual β section 3, the library-calls girlies β¨. She's literally the equivalent of ip addr or ifconfig <ipaddress/prefix>, but make it a function call π
β¨ NAME β¨
nozzle_add_ip β the equivalent of ip addr or ifconfig <ipaddress/prefix> π
πΈ SYNOPSIS πΈ
#include <libnozzle.h>
int nozzle_add_ip(
nozzle_t nozzle,
const char *ipaddr,
const char *prefix
);
π¦ DESCRIPTION π¦
nozzle_add_ip β¨
nozzleβ a pointer to the nozzle struct. she's the main character, obviously πipaddrβ a string holding either an IPv4 or an IPv6 address. okay so IMPORTANT thing, no cap: Linux will automatically remove any IPv6 addresses from an interface with MTU < 1280 π. but don't panic, because libnozzle will cache those IPs and re-instate them when MTU is > 1280 π«Ά. also, MTU must be set vianozzle_set_mtufor the IPv6 to be re-instated β like, that's the only way, periodt πprefixβ24,64, or literally any valid network prefix for the address you asked for π
β RETURN VALUE β
0on success π-1on error, anderrnogets set π
π SEE ALSO π
she runs with a whole crew, go say hi to all of them:
nozzle_close(3)nozzle_set_mtu(3)nozzle_get_fd(3)nozzle_get_mtu(3)nozzle_reset_mtu(3)nozzle_set_up(3)nozzle_get_ips(3)nozzle_set_down(3)nozzle_reset_mac(3)nozzle_get_handle_by_name(3)nozzle_run_updown(3)nozzle_open(3)nozzle_del_ip(3)nozzle_get_mac(3)nozzle_set_mac(3)nozzle_get_name_by_handle(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Red Hat, Inc. All rights reserved.
and that's the whole page bestie, you ate that π β¨
mwah, this was the kronosnet crew, 2026-07-20, page NOZZLE_ADD_IP(3) β byeee, go add some IPs, ily π«ΆππΈ
π¦ where this page comes from
- fedora 43: libnozzle1-devel 1.35-1.fc43 Β· LGPL-2.1-or-later
- fedora 43: libnozzle1-devel 1.35-1.fc43 Β· LGPL-2.1-or-later
- fedora 44: libnozzle1-devel 1.35-1.fc44 Β· LGPL-2.1-or-later
- fedora 44: libnozzle1-devel 1.35-1.fc44 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms