nozzle_get_mac - Man Page

retrieve mac address on a given nozzle interface

Synopsis

#include <libnozzle.h>

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

Description

nozzle_get_mac

nozzle - pointer to the nozzle struct

ether_addr - pointers to string containing the current mac address. The string is malloc'ed, the caller needs to free this buffer.

Return Value

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

See Also

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)

Referenced By

nozzle_add_ip(3), nozzle_close(3), nozzle_del_ip(3), nozzle_get_fd(3), nozzle_get_handle_by_name(3), nozzle_get_ips(3), nozzle_get_mtu(3), nozzle_get_name_by_handle(3), nozzle_open(3), nozzle_reset_mac(3), nozzle_reset_mtu(3), nozzle_run_updown(3), nozzle_set_down(3), nozzle_set_mac(3), nozzle_set_mtu(3), nozzle_set_up(3).

2024-12-02 Kronosnet Programmer's Manual