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 via nozzle_set_mtu for 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 ⭐

  • 0 on success πŸŽ‰
  • -1 on error, and errno gets set πŸ˜”

πŸ’œ SEE ALSO πŸ’œ

she runs with a whole crew, go say hi to all of them:


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