--- libaitio/inc/aitio.h 2013/11/22 12:47:32 1.36.2.8 +++ 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.36.2.8 2013/11/22 12:47:32 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 @@ -163,10 +163,9 @@ int ioUpSocket(sock_t * __restrict s, void *arg, int t * ioUpdTimerSocket() - Update timeout of socket * * @c = Client socket - * @arg = Optional data argument * return: none */ -void ioUpdTimerSocket(sock_cli_t * __restrict c, void *arg); +void ioUpdTimerSocket(sock_cli_t * __restrict c); /* * ioLoopSocket() - Start socket scheduler * @@ -508,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 *