--- libaitio/inc/aitio.h 2013/11/22 15:09:17 1.38 +++ libaitio/inc/aitio.h 2013/12/04 10:08:40 1.38.10.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.h,v 1.38 2013/11/22 15:09:17 misho Exp $ +* $Id: aitio.h,v 1.38.10.1 2013/12/04 10:08:40 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -507,6 +507,14 @@ int io_dumbFile(const char *csFile, int mode, off_t si * return: -1 error or 0 ok */ int io_get1stiface(char *szIface, int iflen); +/* + * io_getmaciface() - Get MAC address from interface name + * + * @csIface = interface name + * @ea = ethernet address + * return: -1 error, 0 ok or 1 not found + */ +int io_getmaciface(const char *csIface, ether_addr_t * __restrict ea); /* * io_etherOpen() - Open BPF interface to device *