FossilOrigin-Name: cc01b9d81e72d713d6739d318f5e8b022685f71ffd6c084b85da542a1e6fa34bbsdmakefiles
commit
8f12f61dbd
@ -0,0 +1,107 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<CodeLite_Project Name="mod_capwap80211" InternalType=""> |
||||
<VirtualDirectory Name="src"> |
||||
<VirtualDirectory Name="mod"> |
||||
<VirtualDirectory Name="capwap80211"> |
||||
<File Name="src/mod/capwap80211/mod_capwap80211_wtp.c"/> |
||||
<File Name="src/mod/capwap80211/mod_capwap80211_ac.c"/> |
||||
<File Name="src/mod/capwap80211/mod_capwap80211.h"/> |
||||
<File Name="src/mod/capwap80211/capwap80211_actions_wtp.c"/> |
||||
<File Name="src/mod/capwap80211/capwap80211_out_wtp_radio_cfg.c"/> |
||||
<File Name="src/mod/capwap80211/capwap80211_actions_ac.c"/> |
||||
</VirtualDirectory> |
||||
</VirtualDirectory> |
||||
</VirtualDirectory> |
||||
<Description/> |
||||
<Dependencies/> |
||||
<Settings Type="Dynamic Library"> |
||||
<GlobalSettings> |
||||
<Compiler Options="" C_Options="" Assembler=""> |
||||
<IncludePath Value="."/> |
||||
</Compiler> |
||||
<Linker Options=""> |
||||
<LibraryPath Value="."/> |
||||
</Linker> |
||||
<ResourceCompiler Options=""/> |
||||
</GlobalSettings> |
||||
<Configuration Name="Debug" CompilerType="GCC" DebuggerType="GNU gdb debugger" Type="Dynamic Library" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append"> |
||||
<Compiler Options="-g" C_Options="-g" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0"> |
||||
<IncludePath Value="."/> |
||||
</Compiler> |
||||
<Linker Options="" Required="yes"/> |
||||
<ResourceCompiler Options="" Required="no"/> |
||||
<General OutputFile="" IntermediateDirectory="./Debug" Command="" CommandArguments="" UseSeparateDebugArgs="no" DebugArguments="" WorkingDirectory="$(IntermediateDirectory)" PauseExecWhenProcTerminates="yes" IsGUIProgram="no" IsEnabled="yes"/> |
||||
<Environment EnvVarSetName="<Use Defaults>" DbgSetName="<Use Defaults>"> |
||||
<![CDATA[]]> |
||||
</Environment> |
||||
<Debugger IsRemote="no" RemoteHostName="" RemoteHostPort="" DebuggerPath="" IsExtended="no"> |
||||
<DebuggerSearchPaths/> |
||||
<PostConnectCommands/> |
||||
<StartupCommands/> |
||||
</Debugger> |
||||
<PreBuild/> |
||||
<PostBuild/> |
||||
<CustomBuild Enabled="yes"> |
||||
<RebuildCommand>make clean && make |
||||
</RebuildCommand> |
||||
<CleanCommand>make clean</CleanCommand> |
||||
<BuildCommand>make</BuildCommand> |
||||
<PreprocessFileCommand/> |
||||
<SingleFileCommand/> |
||||
<MakefileGenerationCommand/> |
||||
<ThirdPartyToolName>None</ThirdPartyToolName> |
||||
<WorkingDirectory>$(WorkspacePath)/src/mod/capwap80211/</WorkingDirectory> |
||||
</CustomBuild> |
||||
<AdditionalRules> |
||||
<CustomPostBuild/> |
||||
<CustomPreBuild/> |
||||
</AdditionalRules> |
||||
<Completion EnableCpp11="no" EnableCpp14="no"> |
||||
<ClangCmpFlagsC/> |
||||
<ClangCmpFlags/> |
||||
<ClangPP/> |
||||
<SearchPaths/> |
||||
</Completion> |
||||
</Configuration> |
||||
<Configuration Name="Release" CompilerType="GCC" DebuggerType="GNU gdb debugger" Type="Dynamic Library" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append"> |
||||
<Compiler Options="" C_Options="" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0"> |
||||
<IncludePath Value="."/> |
||||
</Compiler> |
||||
<Linker Options="-O2" Required="yes"/> |
||||
<ResourceCompiler Options="" Required="no"/> |
||||
<General OutputFile="" IntermediateDirectory="./Release" Command="" CommandArguments="" UseSeparateDebugArgs="no" DebugArguments="" WorkingDirectory="$(IntermediateDirectory)" PauseExecWhenProcTerminates="yes" IsGUIProgram="no" IsEnabled="yes"/> |
||||
<Environment EnvVarSetName="<Use Defaults>" DbgSetName="<Use Defaults>"> |
||||
<![CDATA[]]> |
||||
</Environment> |
||||
<Debugger IsRemote="no" RemoteHostName="" RemoteHostPort="" DebuggerPath="" IsExtended="no"> |
||||
<DebuggerSearchPaths/> |
||||
<PostConnectCommands/> |
||||
<StartupCommands/> |
||||
</Debugger> |
||||
<PreBuild/> |
||||
<PostBuild/> |
||||
<CustomBuild Enabled="yes"> |
||||
<RebuildCommand/> |
||||
<CleanCommand>make clean</CleanCommand> |
||||
<BuildCommand>make</BuildCommand> |
||||
<PreprocessFileCommand/> |
||||
<SingleFileCommand/> |
||||
<MakefileGenerationCommand/> |
||||
<ThirdPartyToolName>None</ThirdPartyToolName> |
||||
<WorkingDirectory>$(WorkspacePath)</WorkingDirectory> |
||||
</CustomBuild> |
||||
<AdditionalRules> |
||||
<CustomPostBuild/> |
||||
<CustomPreBuild/> |
||||
</AdditionalRules> |
||||
<Completion EnableCpp11="no" EnableCpp14="no"> |
||||
<ClangCmpFlagsC/> |
||||
<ClangCmpFlags/> |
||||
<ClangPP/> |
||||
<SearchPaths/> |
||||
</Completion> |
||||
</Configuration> |
||||
</Settings> |
||||
<Dependencies Name="Debug"/> |
||||
<Dependencies Name="Release"/> |
||||
</CodeLite_Project> |
@ -0,0 +1,104 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<CodeLite_Project Name="mod_fortinet" InternalType=""> |
||||
<VirtualDirectory Name="src"> |
||||
<VirtualDirectory Name="mod"> |
||||
<VirtualDirectory Name="fortinet"> |
||||
<File Name="src/mod/fortinet/mod_fortinet_ac.c"/> |
||||
<File Name="src/mod/fortinet/mod_fortinet_wtp.c"/> |
||||
<File Name="src/mod/fortinet/fortinet.h"/> |
||||
<File Name="src/mod/fortinet/fortinet_actions_ac.c"/> |
||||
<File Name="src/mod/fortinet/fortinet_actions_wtp.c"/> |
||||
<File Name="src/mod/fortinet/mod_fortinet.h"/> |
||||
</VirtualDirectory> |
||||
</VirtualDirectory> |
||||
</VirtualDirectory> |
||||
<Description/> |
||||
<Dependencies/> |
||||
<Settings Type="Dynamic Library"> |
||||
<GlobalSettings> |
||||
<Compiler Options="" C_Options="" Assembler=""> |
||||
<IncludePath Value="."/> |
||||
</Compiler> |
||||
<Linker Options=""> |
||||
<LibraryPath Value="."/> |
||||
</Linker> |
||||
<ResourceCompiler Options=""/> |
||||
</GlobalSettings> |
||||
<Configuration Name="Debug" CompilerType="GCC" DebuggerType="GNU gdb debugger" Type="Dynamic Library" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append"> |
||||
<Compiler Options="-g" C_Options="-g" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0"> |
||||
<IncludePath Value="."/> |
||||
</Compiler> |
||||
<Linker Options="" Required="yes"/> |
||||
<ResourceCompiler Options="" Required="no"/> |
||||
<General OutputFile="" IntermediateDirectory="./Debug" Command="" CommandArguments="" UseSeparateDebugArgs="no" DebugArguments="" WorkingDirectory="$(IntermediateDirectory)" PauseExecWhenProcTerminates="yes" IsGUIProgram="no" IsEnabled="yes"/> |
||||
<Environment EnvVarSetName="<Use Defaults>" DbgSetName="<Use Defaults>"> |
||||
<![CDATA[]]> |
||||
</Environment> |
||||
<Debugger IsRemote="no" RemoteHostName="" RemoteHostPort="" DebuggerPath="" IsExtended="no"> |
||||
<DebuggerSearchPaths/> |
||||
<PostConnectCommands/> |
||||
<StartupCommands/> |
||||
</Debugger> |
||||
<PreBuild/> |
||||
<PostBuild/> |
||||
<CustomBuild Enabled="yes"> |
||||
<RebuildCommand>make clean && make</RebuildCommand> |
||||
<CleanCommand>make clean</CleanCommand> |
||||
<BuildCommand>make</BuildCommand> |
||||
<PreprocessFileCommand/> |
||||
<SingleFileCommand/> |
||||
<MakefileGenerationCommand/> |
||||
<ThirdPartyToolName>None</ThirdPartyToolName> |
||||
<WorkingDirectory>$(WorkspacePath)/src/mod/fortinet</WorkingDirectory> |
||||
</CustomBuild> |
||||
<AdditionalRules> |
||||
<CustomPostBuild/> |
||||
<CustomPreBuild/> |
||||
</AdditionalRules> |
||||
<Completion EnableCpp11="no" EnableCpp14="no"> |
||||
<ClangCmpFlagsC/> |
||||
<ClangCmpFlags/> |
||||
<ClangPP/> |
||||
<SearchPaths/> |
||||
</Completion> |
||||
</Configuration> |
||||
<Configuration Name="Release" CompilerType="GCC" DebuggerType="GNU gdb debugger" Type="Dynamic Library" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append"> |
||||
<Compiler Options="" C_Options="" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0"> |
||||
<IncludePath Value="."/> |
||||
</Compiler> |
||||
<Linker Options="-O2" Required="yes"/> |
||||
<ResourceCompiler Options="" Required="no"/> |
||||
<General OutputFile="" IntermediateDirectory="./Release" Command="" CommandArguments="" UseSeparateDebugArgs="no" DebugArguments="" WorkingDirectory="$(IntermediateDirectory)" PauseExecWhenProcTerminates="yes" IsGUIProgram="no" IsEnabled="yes"/> |
||||
<Environment EnvVarSetName="<Use Defaults>" DbgSetName="<Use Defaults>"> |
||||
<![CDATA[]]> |
||||
</Environment> |
||||
<Debugger IsRemote="no" RemoteHostName="" RemoteHostPort="" DebuggerPath="" IsExtended="no"> |
||||
<DebuggerSearchPaths/> |
||||
<PostConnectCommands/> |
||||
<StartupCommands/> |
||||
</Debugger> |
||||
<PreBuild/> |
||||
<PostBuild/> |
||||
<CustomBuild Enabled="yes"> |
||||
<RebuildCommand/> |
||||
<CleanCommand>make clean</CleanCommand> |
||||
<BuildCommand>make</BuildCommand> |
||||
<PreprocessFileCommand/> |
||||
<SingleFileCommand/> |
||||
<MakefileGenerationCommand/> |
||||
<ThirdPartyToolName>None</ThirdPartyToolName> |
||||
<WorkingDirectory>$(WorkspacePath)</WorkingDirectory> |
||||
</CustomBuild> |
||||
<AdditionalRules> |
||||
<CustomPostBuild/> |
||||
<CustomPreBuild/> |
||||
</AdditionalRules> |
||||
<Completion EnableCpp11="no" EnableCpp14="no"> |
||||
<ClangCmpFlagsC/> |
||||
<ClangCmpFlags/> |
||||
<ClangPP/> |
||||
<SearchPaths/> |
||||
</Completion> |
||||
</Configuration> |
||||
</Settings> |
||||
</CodeLite_Project> |
@ -1,8 +1,7 @@ |
||||
include ../Config.mak |
||||
|
||||
#Define SSL Library: OPENSSL or GNUTLS
|
||||
#SSL_LIBRARY=OPENSSL
|
||||
SSL_LIBRARY=GNUTLS
|
||||
|
||||
# Define SSL Library: OPENSSL or GNUTLS
|
||||
# SSL_LIBRARY=OPENSSL
|
||||
|
||||
SSL_LIBRARY=OPENSSL
|
||||
|
||||
|
@ -1,25 +1,37 @@ |
||||
|
||||
#
|
||||
# OpenSSL definitions
|
||||
#
|
||||
#OPENSSL_VERSION=openssl-1.0.1l # doesn't work
|
||||
#OPENSSL_VERSION=openssl-1.0.2 # doesn't work
|
||||
OPENSSL_VERSION=openssl-1.0.1i
|
||||
# OPENSSL_VERSION=openssl-1.0.1i
|
||||
USE_CONTRIB_OPENSSL=0
|
||||
|
||||
# GnuTLS definitions
|
||||
GNUTLS_VERSION=3.3.9
|
||||
# GNUTLS_VERSION=3.3.9
|
||||
|
||||
USE_CONTRIB_GNUTLS=0
|
||||
|
||||
# Compiler to use
|
||||
CC=clang
|
||||
#CC=gcc
|
||||
#CC=mips-openwrt-linux-uclibc-gcc
|
||||
#LD=mips-openwrt-linux-uclibc-ld
|
||||
#AR=mips-openwrt-linux-uclibc-ar
|
||||
|
||||
|
||||
# CC=clang
|
||||
# CC=mips-openwrt-linux-uclibc-gcc
|
||||
# LD=mips-openwrt-linux-uclibc-ld
|
||||
# AR=mips-openwrt-linux-uclibc-ar
|
||||
# CC=clang
|
||||
|
||||
COMPDEFS=-DWITH_CW_LOG
|
||||
COMPDEFS+=-DWITH_CW_LOG_DEBUG
|
||||
|
||||
|
||||
# LIBCW settings
|
||||
|
||||
# WITH_GNUTLS
|
||||
# compile in support for GnuTLS
|
||||
#
|
||||
WITH_GNUTLS=1
|
||||
|
||||
# Compile in openssl support
|
||||
WITH_OPENSSL=1
|
||||
|
||||
#
|
||||
#
|
||||
LIBDIR=lib
|
||||
|
||||
|
||||
|
@ -1,78 +0,0 @@ |
||||
|
||||
/**
|
||||
* @file |
||||
* @breif defines acinfo_print function |
||||
*/ |
||||
|
||||
#include <string.h> |
||||
#include <stdio.h> |
||||
|
||||
#include "capwap.h" |
||||
#include "sock.h" |
||||
|
||||
#include "acinfo.h" |
||||
|
||||
#include "cw_util.h" |
||||
|
||||
|
||||
/**
|
||||
* Formats an acinfo object. |
||||
* |
||||
*/
|
||||
int acinfo_print(char *str,const struct ac_info *acinfo) |
||||
{ |
||||
char *s = str; |
||||
|
||||
s+=sprintf(s,"\tAC name: %s\n",acinfo->ac_name); |
||||
|
||||
s+=sprintf(s,"\tHardware version: "); |
||||
s+=cw_format_version(s,acinfo->hardware_version,0,"-"); |
||||
s+=sprintf(s,"\n"); |
||||
|
||||
s+=sprintf(s,"\tSoftware version: "); |
||||
s+=cw_format_version(s,acinfo->software_version,0,"-"); |
||||
s+=sprintf(s,"\n"); |
||||
|
||||
s+=sprintf(s,"\tStations: %i\n",acinfo->stations); |
||||
s+=sprintf(s,"\tSation limit: %i\n",acinfo->limit); |
||||
s+=sprintf(s,"\tActive WTPs: %i\n",acinfo->active_wtps); |
||||
s+=sprintf(s,"\tMax WTPs: %i\n",acinfo->max_wtps); |
||||
char help[64]; |
||||
sock_addrtostr((struct sockaddr*)&acinfo->local_ip,help,64); |
||||
s+=sprintf(s,"\tLocal IP: %s\n",help); |
||||
s+=sprintf(s,"\tECN support: %s\n",acinfo->ecn_support==0 ? "limited" : "full"); |
||||
s+=sprintf(s,"\tRMAC support: %s\n",acinfo->rmac==1 ? "supported" : "not supported"); |
||||
|
||||
|
||||
help[0]=0; |
||||
if (acinfo->security & AC_SECURITY_S) |
||||
strcpy(help,"psk"); |
||||
if (acinfo->security & AC_SECURITY_X){ |
||||
if (strlen(help)) |
||||
strcat(help,"/"); |
||||
strcat(help,"X.509"); |
||||
} |
||||
if (!strlen(help)) |
||||
strcpy(help,"None"); |
||||
s+=sprintf(s,"\tSecurity: %s\n",help); |
||||
|
||||
help[0]=0; |
||||
/* if (acinfo->dtls_policy & AC_DTLS_POLICY_D){
|
||||
strcpy(help,"dtls"); |
||||
} |
||||
if (acinfo->dtls_policy & AC_DTLS_POLICY_C){ |
||||
if(strlen(help)) |
||||
strcat(help,"/"); |
||||
strcat(help,"clear"); |
||||
} |
||||
*/ if (!strlen(help)) |
||||
strcpy(help,"Not set"); |
||||
|
||||
s+=sprintf(s,"\tDTLS policy: %s\n",help); |
||||
|
||||
|
||||
return s-str; |
||||
} |
||||
|
||||
|
||||
|
@ -1,69 +0,0 @@ |
||||
/*
|
||||
This file is part of libcapwap. |
||||
|
||||
libcapwap is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
libcapwap is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with Foobar. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
*/ |
||||
|
||||
/**
|
||||
*@file
|
||||
*@brief Implementation of avliter_next |
||||
*/ |
||||
|
||||
#include "avltree.h" |
||||
|
||||
/**
|
||||
* Get the next element within an AVL Tree. |
||||
* @param i pointer to AVL Iterator |
||||
* @return the element or NULL if there is no next elemeent. |
||||
*/
|
||||
void * avliter_next(avliter_t *i) |
||||
{ |
||||
|
||||
while ( i->stack_ptr) { |
||||
i->stack_ptr--; |
||||
i->cur=i->stack[i->stack_ptr]; |
||||
|
||||
if (!i->cur) |
||||
continue; |
||||
|
||||
if ((i->stack_ptr)&1) { |
||||
return i->cur->data; |
||||
} |
||||
break;
|
||||
|
||||
} |
||||
|
||||
|
||||
if (!i->cur){ |
||||
return NULL; |
||||
} |
||||
|
||||
while(i->cur->left) { |
||||
/* push right branch */ |
||||
i->stack[i->stack_ptr++]=i->cur->right; |
||||
|
||||
/* push node */ |
||||
i->stack[i->stack_ptr++]=i->cur; |
||||
|
||||
i->cur=i->cur->left; |
||||
|
||||
} |
||||
|
||||
i->stack[i->stack_ptr++]=i->cur->right; |
||||
|
||||
return i->cur->data; |
||||
} |
||||
|
||||
|
@ -1,66 +0,0 @@ |
||||
/*
|
||||
This file is part of libcapwap. |
||||
|
||||
libcapwap is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
libcapwap is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with Foobar. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
*/ |
||||
|
||||
/**
|
||||
*@file |
||||
*@brief Implementation of avliter_seek |
||||
*/ |
||||
|
||||
|
||||
#include "avltree.h" |
||||
|
||||
/**
|
||||
* Set an AVL Iterator to a specific position. |
||||
* @param i AVL Iterator |
||||
* @param d element to search for |
||||
* @return element found or NULL if not found |
||||
*/ |
||||
void * avliter_seek(avliter_t *i,void *d) |
||||
{ |
||||
if (!i->root) |
||||
return NULL; |
||||
|
||||
i->cur=i->root; |
||||
i->stack_ptr=0; |
||||
|
||||
int rc; |
||||
while(i->cur) { |
||||
|
||||
rc = i->cmp(d,i->cur->data); |
||||
if (rc==0){ |
||||
i->stack[i->stack_ptr++]=i->cur->right; |
||||
i->stack[i->stack_ptr++]=i->cur; |
||||
return avliter_next(i); |
||||
} |
||||
|
||||
if (rc<0) { |
||||
i->stack[i->stack_ptr++]=i->cur->right; |
||||
i->stack[i->stack_ptr++]=i->cur; |
||||
|
||||
i->cur=i->cur->left; |
||||
|
||||
} |
||||
if (rc>0) { |
||||
|
||||
i->cur=i->cur->right; |
||||
} |
||||
} |
||||
return NULL; |
||||
} |
||||
|
||||
|
@ -1,39 +0,0 @@ |
||||
/*
|
||||
This file is part of libcapwap. |
||||
|
||||
libcapwap is free software: you can redistribute it and/or modify |
||||
|