NOZZLE_SET_MAC(3)

πŸ’– NOZZLE_SET_MAC(3) πŸ’–

okay so bestie, welcome to the Kronosnet Programmer's Manual β€” this is nozzle_set_mac, and it's literally the glow-up button for a nozzle interface's mac address. let's get into it πŸ¦‹


✨ NAME ✨

nozzle_set_mac β€” set mac address on a given nozzle interface


🌸 SYNOPSIS 🌸

#include <libnozzle.h>

int nozzle_set_mac(
    nozzle_t      nozzle,
    const char   *ether_addr
);

πŸ’… DESCRIPTION πŸ’…

nozzle_set_mac

  • nozzle β€” pointer to the nozzle struct
  • ether_addr β€” pointers to string containing the new mac address.

like, you hand it your nozzle and a lil string with the new mac address and it does the thing. main character energy fr fr πŸ‘‘


πŸŽ€ RETURN VALUE πŸŽ€

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

no cap, if you see that -1, go check errno immediately. she's trying to tell you something 😭

🌈 SEE ALSO 🌈


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


and that's the whole page bestie πŸ’œ this one shipped out with kronosnet on 2026-07-20 β€” go forth and set those macs, you absolute icon 🫢✨

πŸ“¦ where this page comes from