--- libaitio/inc/aitio.h 2013/11/21 18:59:49 1.36.2.6 +++ 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.6 2013/11/21 18:59:49 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 @@ -87,6 +87,7 @@ struct tagCliSock { sockaddr_t cli_addr; char cli_name[64]; char cli_cmdline[PATH_MAX]; + pid_t cli_pid; sched_task_func_t cli_func; @@ -506,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 *