1NOZZLE_GET_MAC(3) Kronosnet Programmer's Manual NOZZLE_GET_MAC(3)
2
3
4
6 nozzle_get_mac - retrieve mac address on a given nozzle interface
7
8
10 #include <libnozzle.h>
11
12 int nozzle_get_mac(
13 const nozzle_t nozzle,
14 char **ether_addr
15 );
16
18 nozzle_get_mac
19
20 nozzle - pointer to the nozzle struct
21
22 ether_addr - pointers to string containing the current mac address. The
23 string is malloc'ed, the caller needs to free this buffer.
24
26 0 on success. -1 on error and errno is set.
27
29 nozzle_close(3), nozzle_set_mtu(3), nozzle_get_fd(3),
30 nozzle_get_mtu(3), nozzle_reset_mtu(3), nozzle_set_up(3),
31 nozzle_get_ips(3), nozzle_set_down(3), nozzle_reset_mac(3),
32 nozzle_get_handle_by_name(3), nozzle_run_updown(3), nozzle_open(3),
33 nozzle_del_ip(3), nozzle_set_mac(3), nozzle_get_name_by_handle(3),
34 nozzle_add_ip(3)
35
37 Copyright (C) 2010-2020 Red Hat, Inc. All rights reserved.
38
39
40
41kronosnet 2020-10-19 NOZZLE_GET_MAC(3)