1nozzle_set_mac(3)        Kronosnet Programmer's Manual       nozzle_set_mac(3)
2
3
4

NAME

6       nozzle_set_mac - set mac address on a given nozzle interface
7

SYNOPSIS

9       #include <libknet.h>
10
11       int nozzle_set_mac(
12           nozzle_t      nozzle,
13           const char   *ether_addr
14       );
15

DESCRIPTION

17       nozzle_set_mac
18
19       nozzle - pointer to the nozzle struct
20
21       ether_addr - pointers to string containing the new mac address.
22

RETURN VALUE

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

SEE ALSO

27       nozzle_close(3), nozzle_set_mtu(3), nozzle_get_fd(3),
28       nozzle_get_mtu(3), nozzle_reset_mtu(3), nozzle_set_up(3),
29       nozzle_get_ips(3), nozzle_set_down(3), nozzle_reset_mac(3),
30       nozzle_get_handle_by_name(3), nozzle_run_updown(3), nozzle_open(3),
31       nozzle_del_ip(3), nozzle_get_mac(3), nozzle_get_name_by_handle(3),
32       nozzle_add_ip(3)
33
35       Copyright (C) 2010-2020 Red Hat, Inc. All rights reserved.
36
37
38
39kronosnet                         2020-04-23                 nozzle_set_mac(3)
Impressum