NOZZLE_GET_MAC(3)
β¨ NOZZLE_GET_MAC(3) β¨
okay so bestie, welcome to the Kronosnet Programmer's Manual π this one's called nozzle_get_mac and it's literally just vibes + one mac address, let's gooo π
πΈ NAME πΈ
nozzle_get_mac β the way it retrieves the mac address on a given nozzle interface π¦ no cap, that's the whole job.
β¨ SYNOPSIS β¨
#include <libnozzle.h>
int nozzle_get_mac(
const nozzle_t nozzle,
char **ether_addr
);
look at her. iconic. π
π DESCRIPTION π
nozzle_get_mac bestie it's giving "tell me my mac address" and honestly? same energy.
nozzleβ pointer to the nozzle struct. your main character. the handle you're working with π«Άether_addrβ pointers to string containing the current mac address. yes, a pointer to a pointer, she's fancy like that β¨
β οΈ important bestie, do NOT sleep on this: the string ismalloc'ed, so the caller needs tofreethis buffer. like, it's YOUR buffer now. you gotta clean up after yourself, that's the rule π no memory leaks in this house.
π RETURN VALUE π
0β on success. slay. we ate. π-1β on error, anderrnois set. sad girl hours π go checkerrno, she's telling you what went wrong.
π¦ SEE ALSO π¦
the whole friend group, go say hi:
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_set_mac(3), nozzle_get_name_by_handle(3), nozzle_add_ip(3)
iykyk π
π COPYRIGHT π
Copyright (C) 2010-2026 Red Hat, Inc. All rights reserved. π«Ά protecting the goods since 2010, periodt.
and that's the page bestie!! πΈ this one came from kronosnet, dated 2026-07-20 β stan a manual that shows up on time β¨π bye ily, go free that buffer ππ
π¦ 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