--- libaitio/src/bpf.c 2014/11/17 22:33:14 1.6.6.2 +++ libaitio/src/bpf.c 2016/08/10 13:59:44 1.7.2.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: bpf.c,v 1.6.6.2 2014/11/17 22:33:14 misho Exp $ +* $Id: bpf.c,v 1.7.2.1 2016/08/10 13:59:44 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004 - 2014 +Copyright 2004 - 2016 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -150,7 +150,7 @@ io_etherOpen(const char *csIface, int flags, u_int whd if (csIface) strlcpy(szStr, csIface, sizeof szStr); - else if (io_get1stiface(szStr, sizeof szStr) == -1) { + else if (e_get1stiface(szStr, sizeof szStr) == -1) { close(eth); return -1; } @@ -352,6 +352,7 @@ io_etherRecv(int eth, void * __restrict buf, size_t bu return rlen; } +#ifndef __linux__ /* * io_etherFilter() - BPF filter routine * @@ -398,3 +399,4 @@ io_etherFilter(int eth, int io, struct bpf_insn * __re LOGERR; return ret; } +#endif