.\" Automatically generated man page, do not edit .TH NOZZLE_GET_MAC 3 2023-09-27 "kronosnet" "Kronosnet Programmer's Manual" .SH NAME nozzle_get_mac \- retrieve mac address on a given nozzle interface .SH SYNOPSIS .nf .B #include .sp \fBint nozzle_get_mac\fP( \fBconst nozzle_t \fP\fInozzle\fP, \fBchar **\fP\fIether_addr\fP ); .fi .SH DESCRIPTION .PP nozzle_get_mac .PP nozzle - pointer to the nozzle struct .PP ether_addr - pointers to string containing the current mac address. The string is malloc'ed, the caller needs to free this buffer. .RE .SH RETURN VALUE .PP 0 on success. -1 on error and errno is set. .PP .SH SEE ALSO .PP .nh .ad l \fInozzle_close\fR(3), \fInozzle_set_mtu\fR(3), \fInozzle_get_fd\fR(3), \fInozzle_get_mtu\fR(3), \fInozzle_reset_mtu\fR(3), \fInozzle_set_up\fR(3), \fInozzle_get_ips\fR(3), \fInozzle_set_down\fR(3), \fInozzle_reset_mac\fR(3), \fInozzle_get_handle_by_name\fR(3), \fInozzle_run_updown\fR(3), \fInozzle_open\fR(3), \fInozzle_del_ip\fR(3), \fInozzle_set_mac\fR(3), \fInozzle_get_name_by_handle\fR(3), \fInozzle_add_ip\fR(3) .ad .hy .SH "COPYRIGHT" .PP Copyright (C) 2010-2023 Red Hat, Inc. All rights reserved.