Merge branch 'master' of https://github.com/7u83/actube
FossilOrigin-Name: 1e28019d58cf7f72a8b0f54470a86304107a64baab264824501a8363a1996e14
This commit is contained in:
commit
c5376ace5d
14
INSTALL
14
INSTALL
@ -5,25 +5,33 @@ On a fresh Ubuntu 14.04:
|
|||||||
|
|
||||||
apt-get install git
|
apt-get install git
|
||||||
git clone https://github.com/7u83/actube.git
|
git clone https://github.com/7u83/actube.git
|
||||||
apt-get install build-essential
|
apt-get install build-essential clang
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
libcapwap:
|
libcapwap:
|
||||||
|
|
||||||
|
nettle (http://www.lysator.liu.se/~nisse/nettle/)
|
||||||
|
(apt-get install nettle-dev)
|
||||||
gnutls (http://www.gnutls.org/)
|
gnutls (http://www.gnutls.org/)
|
||||||
|
(apt-get install libgnutls28-dev)
|
||||||
openssl (https://www.openssl.org/)
|
openssl (https://www.openssl.org/)
|
||||||
|
(apt-get install libssl-dev)
|
||||||
|
|
||||||
ac:
|
ac:
|
||||||
libconfuse (http://www.nongnu.org/confuse/)
|
libconfuse (http://www.nongnu.org/confuse/)
|
||||||
|
(apt-get install libconfuse-dev)
|
||||||
libsqlite3 (http://www.sqlite.org/)
|
libsqlite3 (http://www.sqlite.org/)
|
||||||
|
(apt-get install libsqlite3-dev)
|
||||||
|
|
||||||
wtp:
|
wtp:
|
||||||
libuci (http://wiki.openwrt.org/doc/techref/uci)
|
libuci (http://wiki.openwrt.org/doc/techref/uci)
|
||||||
|
|
||||||
to build conten of contrib directory:
|
to build conten of contrib directory:
|
||||||
cmake (http://www.cmake.org)
|
cmake (http://www.cmake.org)
|
||||||
|
(apt-get install cmake)
|
||||||
lua (http://www.lua.org/)
|
lua (http://www.lua.org/)
|
||||||
|
(apt-get install lua5.2)
|
||||||
|
libnl3
|
||||||
|
(apt-get install libnl-genl-3-dev)
|
||||||
|
@ -37,6 +37,9 @@ char * sock_get_primary_if(int family)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ifa->ifa_addr == NULL)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (ifa->ifa_addr->sa_family != family)
|
if (ifa->ifa_addr->sa_family != family)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
@ -37,6 +37,9 @@ int sock_getifaddr(const char * ifname,int family, int type,struct sockaddr * sa
|
|||||||
if (strcmp(ifname,ifa->ifa_name))
|
if (strcmp(ifname,ifa->ifa_name))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (ifa->ifa_addr == NULL)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (ifa->ifa_addr->sa_family != family)
|
if (ifa->ifa_addr->sa_family != family)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user