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:-1means something went wrong anderrnogot 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:
nozzle_close(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)nozzle_add_ip(3)
π COPYRIGHT π
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
- 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