NOZZLE_SET_MTU(3)

πŸ’… NOZZLE_SET_MTU(3) πŸ’…

ok so bestie, welcome to the Kronosnet Programmer's Manual β€” this is the nozzle_set_mtu page and it's literally the glow-up your nozzle interface has been waiting for ✨


🌸 NAME 🌸

nozzle_set_mtu β€” set mtu on a given nozzle interface

like. that's it. that's the job. setting the MTU. on a nozzle. we love a function with clear boundaries 🫢


✨ SYNOPSIS ✨

#include <libnozzle.h>

int nozzle_set_mtu(
    nozzle_t   nozzle,
    const int  mtu
);

so you include <libnozzle.h>, you hand it a nozzle_t and an int, and you get an int back. iconic signature tbh πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

nozzle_set_mtu β€” bestie this is the whole vibe:

  • nozzle β€” pointer to the nozzle struct πŸŽ€ (yes, the actual struct, the real one, not a copy)
  • mtu β€” new MTU value ⭐ (that's the number you're setting it to, no cap)

that's the entire description and honestly? it ate. no notes.


πŸ’– RETURN VALUE πŸ’–

0 on success, -1 on error and errno is set. 😭

so like, check your return value. if it's 0 you're slaying, if it's -1 go read errno because she's trying to tell you something fr fr.

lowkey important: -1 means something went wrong and errno got set β€” don't just ignore her, she's the main character of your debugging session πŸ’€

🌈 SEE ALSO 🌈

the whole friend group, all invited to the group chat:


Copyright (C) 2010-2026 Red Hat, Inc. All rights reserved.


ok that's the whole page bestie, go forth and set that MTU πŸ’…βœ¨

kronosnet Β· 2026-07-20 Β· NOZZLE_SET_MTU(3) β€” mwah, sending you off with a kiss and a working errno πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from